Autosave for D6
madhusudancs - March 14, 2008 - 14:59
| Project: | Autosave |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi all,
I am a beginner in terms of my Code Contributions to Drupal. I am very much fascinated about this module. Why aren't there efforts to upgrade this module for D6? If someone is ready to guide me, I will take this task. I have done a small work in this direction for the code I have checked out from CVS. Please guide me if you are interested in Upgrading this module for D6. I am a bit stuck in Form API and Javascript changes that I have to do to upgrade to D6. The menu part and admin part are nearly done.
Thanks one and all.
Thanks and regards,
Madhusudan.C.S

#1
hey Madhusudan,
autosave is a bit out of sync at the moment imho. Edmund's old version 5.1 was replaced by his 5.2 version which is completely different method (stores forms rather than revs). I re-wrote a lot of his 5.2 version to fix a few bugs and add features. At the moment my changes have not been committed; i simply attached a zip file to issue regarding all of this.
This all being said i think my version is the defacto "release" at the moment but didnt' want to take over Edmund's project (plus i dont have the time).
Anyway, if you are porting to 6 that is great - hopefully your port will be with my latest release - which i can send you if this is the one your are porting.
Also, haven't looked at dr 6 conversion too much yet but i wouldn't think much to do as far as JS.. hopefully not since there is a fair bit in the module
#2
Hi Peter,
Nice to listen from you. Can you please link me to your updated zip file? Even I don't want to take over Edmund's project. This is to know in what direction this module is or will be moving. Also thanks for supporting me, but your lines, "Anyway, if you are porting to 6 that is great - hopefully your port will be with my latest release - which i can send you if this is the one your are porting" has confused me a bit. Can you kindly tell me what you meant?
As you said there is not much to convert in terms of JS or other APIs, but for a beginner like me there are simply too many changes in FormAPI. I am having a tough time understanding the differences between 5.x's and 6.x's FormAPIs. I badly want some help here.
Thanks and regards,
Madhusudan.C.S
#3
My latest rev of autosave is attached.
Not sure what part of my comment you were confused about - all i was saying was that if you were going to make the effort to convert the autosave module over to Drupal 6; that i hoped you were doing it on my version of the module since i think it is the most stable version at the moment.
I am sorry i likely don't have too much time to spend on the port to 6 for this module as my client isn't switching over to 6 for some time yet (very few modules have been ported so hard to make the move). When we do decide to move any of our sites over to 6 this would be one of the first to be converted (if someone else hasn't done so yet).
#4
I've been using the autosave version off the project page but it does not work for me on the edit form. I was about to submit a support request when I saw your zip attachment. I just tried it, but now I get this error:
user warning: Table 'ideasite.autosaved_forms' doesn't exist query: SELECT form_id, serialized, timestamp FROM autosaved_forms WHERE form_id = 'idea_node_form' AND path = 'node/48/edit' AND uid = 7 in C:\xampp\htdocs\ideasite\includes\database.mysqli.inc on line 151.
Any ideas?
#5
what version give the error? 5.x-3.x is only valid version at the moment - it can be pulled from releases off project page - i will get around to doing official release at some point. maybe even this week???
#6
I could REALLY use this module for Drupal 6....
Subscribing. =)
#7
not sure how far madhusudancs got on his port to Dr6 - but i personally won't have time for a while to do any work on the Dr6 port of this. Although it is a pretty small module; suspect someone could rattle it off pretty quick.
#8
subscribe
#9
I am also very keen for a D6 version of this module, if someone can port it. Afraid I am not a developer, but I could offer a small chip in.
#10
* subscribing.
Want this wonderful module also for Dr6
#11
Created d6 port based off the autosave-5.x-3.2 branch.
Looks like small issue with js in returning the data to the form, it saves properly.
Will trouble shoot tomorrow on that unless someone else can find it before then.
Attached are the three patches for the module, info and install files.
They are diffs against the branch.
#12
Hey Darren,
I am not entirely sure how to add a new release off Drupal 6 and still maintain the Drupal 5 release; but if you get the JS issue you mention sorted out i will give it a shot to get this committed to CVS.
Thanks for helping out.
#13
Peter, yeah the cvs is definitely confusing, i am not 100% sure on that either, will be looking at the js issue today and will see how to fix the problem. Once it is done will update the patches above. Thanks.
#14
Issue turned out to be with the jquery.field.js patch. I went and updated it to the latest version and it worked fine. So i have attached the patch for that latest version but it can also be downloaded at http://www.pengoworks.com/workshop/jquery/field/jquery.field.js
So as it stands this is a port of the d5 autosave-5.x-3.2 branch, no additional functionaly was added to the module, it is a pure port.
#15
Thanks for the work on this Darren.
Peter, the branching and tagging docs should help out there. I think basically you need to check out DRUPAL-5--3-2, branch it as DRUPAL--6-1, patch the files and then commit the updated copy. You can then create a dev release for it. Hope that helps.
#16
I closed #274085: create a 6.x dev release in relation to this.