Closed (fixed)
Project:
ZipCart
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
22 Jan 2011 at 22:57 UTC
Updated:
4 Sep 2012 at 00:01 UTC
Jump to comment: Most recent file
Issue for D7 release.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | zipcart-1036684-drupal-7-port-17.patch | 7.99 KB | timefor |
| #16 | zipcart-1036684-drupal-7-port-16.patch | 21.8 KB | xurizaemon |
| #13 | zipcart-1036684-drupal-7-port.patch | 19.5 KB | xurizaemon |
| #14 | zipcart-1036684-drupal-7-port.patch | 21.13 KB | xurizaemon |
| #3 | 0001-1036684-by-uberhacker.-Initial-D7-commit.patch | 31.98 KB | uberhacker |
Comments
Comment #1
uberhacker commentedHi Chris,
I have ported this module over to D7. How would you like me to submit my code?
Thanks
Comment #2
xurizaemonhttp://drupal.org/project/zipcart/git-instructions has instructions to create a patch (clone this repo, drop your D7 code in, then do "Creating a patch").
If you're not familiar with Git, you can just post your D7 code here as a tarball too. I won't mind much. But give patching a try first if you can :D
Thanks!
Comment #3
uberhacker commentedHi Chris,
I finally got a chance to create the patch from master. Please see attached. Let me know what you think.
Thanks!
Comment #4
PerBrit commentedWill you release a official Drupal 7 version soon?
Comment #5
crimsondryad commentedWe're using this port on a production site and haven't had issues so far.
Comment #6
crimsondryad commented*shameless bump* Marking RTBC. We upgraded to 7.2 and module is still working fine.
Comment #7
timefor commentedBump... Would love to see a D7 build. I could patch it.... but... You know. :)
Comment #8
crimsondryad commentedCan't blame you...it's a pain. We're still not having any issues with this port and we're on D7.4 now. It doesn't have to be a production release....just a dev would make us happy.
Comment #9
xurizaemonThis looks really good, guys. Thanks - and my apologies, I thought I'd already done this.
I'm going to test a re-roll with the shadowbox elements pulled out and commit that to 7.x as I prefer not to tie this module to a particular theme or design implementation; IMO that should be done in the theme layer (and ideally this module should be flexible enough to support that happening).
Should have a release for you in an hour or so :)Sorry ... there's a bit of work to do here yet. I want some of the other ideas introduced here to come in via separate issues.
Comment #10
xurizaemonI reinstated this at the bottom of the README. I think a demo is useful for people. Added a note that the current demo is D6.
Need to add a directory prepare so this dir actually exists.
Huh. I was going to ask what these were doing, but I see they were in there already :P
As per previous comment, I would rather this came in as a separate issue (and I prefer to keep ZipCart theme and design agnostic).
As above. If there are technical limitations to the current method, let's fix them. You should still be able to do fancypants JS as I've done on other sites.
I think "title" is confusing here, as there's already a block title (and that isn't changed when this value is changed).
"width" doesn't belong here. That goes to theme layer - some sites might display ZipCart block in multiple themes.
Comment #11
xurizaemonOK guys - after reviewing the changes here I'm going to ask for a re-roll which introduces minimal (or no) new functionality. The patch in #3 may be a working port, but it adds a bunch of new items as well. These need to come in via their own issues, and not be bundled with D7 port.
The following either belong in separate issues or not in this module -
So - we're back to "needs work" I'm afraid.
Ed (uberhacker), please don't think this undermines your good work - your efforts are appreciated. I'm open to discussing any or all of this. Everyone else - I know, maintainers suck :) ... Consider offering Ed a bounty for re-rolling a bare D7 port.
Comment #12
crimsondryad commentedHrm, I will do what I can to get a re-roll, but uberhacker was working for me and he is no longer with my company. I'm not sure he's able / interested in rolling it again. I might be able to get another dev working on it, but we're pretty slammed right now.
I agree with you about the js parts, removing dependencies is a good thing.
I'll have to look at how we're using the code to see what the file-library path is used for.
Comment #13
xurizaemonOK, here's a re-roll with minimal feature addition.
There are
a couple ofseveral things in this which will go back to 6.x as well.Comment #14
xurizaemonbut that's not all
Comment #15
xurizaemonIf we build the Zip in temporary:// then it doesn't seem to get written to disk, and when we try and serve it there's no file to serve. But file_transfer() won't play if we're not serving from a registered stream. So we give '/tmp/' to ZipArchive to write our temp file, then we serve the file from temporary:// ... this is uberhacker's workaround from #3.
Comment #16
xurizaemonThis restores something like what D6 had in zipcart_filterzip() to prevent download of files that would otherwise be inaccessible to the user.
Comment #17
xurizaemonAdded a 7.x-1.x-dev release for this to facilitate testing.
* #15 - Should rewrite the streamwrapper workaround(s) so they do things "properly". Writing the zip to temporary:// didn't leave us with a file to server; writing the zip to /tmp made file_transfer() angry.
* #16 - The assumption that we will only zip files found in the default stream (eg public://) seems a bit random, but that's what we have in place of 6.x's file_check_location() for now.
http://drupal.org/node/1234538
Comment #18
xurizaemon-
Comment #19
crimsondryad commentedWow, thanks for working on this! As I mentioned, slammed right now, but as soon as I get a chance I'll load this on a sandbox and see how it goes. :)
Comment #20
jordanmagnuson commentedI see the last commit to the 7.x dev branch was made five months ago... are there plans for a stable 7.x release, or is that a low priority at this point?
Comment #21
xurizaemon@davidlerin, thanks for nudging. If you want to contribute then review and testing is the best thing you can do, unless you want to look at the two items in comment #17 above.
Currently I'm focussed on other projects, but happy to engage any progress here or discuss via IRC.
Comment #22
timefor commentedThe ajax wasn't working for me in Drupal 7. I modified the zipcart.js to work with Drupal 7. Sorry I'm not sitting on an environment with patch setup. Attached is my modified JS code based on dev 7.x-1x (oct 11).
Basically I just changed the way ajax was being defined and adjusted the behaviors for the D7 way.
zipcart.js
Comment #23
timefor commentedURI paths aren't working. No error is returned when added to the cart but when the zip file is downloaded the size is 0. Views seems to only wants to return URI paths nowadays so I added support for them here. I've only tested this with public:// paths.
I also included my JS updates from #22 in this patch.
Both links like this will now work:
Comment #24
xurizaemonThanks! Committed, some minor changes - commented out console.log stmts.
Comment #25
xurizaemonMore people are now using 7.x-1.x-dev than 6.x-1.4 so I think we're good to go here :) Will post a release shortly.
Comment #26
xurizaemon