Well I found a way to reproduce, and you're not gonna like it... Take the tarball at http://bluescreen.getmyip.com/agility-drymlgen-bug.tar.bz2 It's a git repo for agility on latest hobo. You'll see that when you extract it, git status shows it's clean (nothing to commit). Now start ./script/server Navigate to projects/show. Make sure you are admin (me). now stop the server. nothing changed (git status). now start the server again, but this time with -u (debug mode). refresh the page. Stop the server. git status => changes!
Now, I don't think the error is really caused by debug mode, since I only started debug-mode to start investigating this. I'm pretty sure I saw the files changing a few times before, but since they were minor field-order thingies I didn't pay attention. Just use git's log to see the changes to pages and cards occurred earlier also (field order on related stuff). Also I committed part7 (membership) and started playing around a bit (without debug-mode). Then I wanted to move on to part8(branch) but noticed the dryml stuff changed, so I did an extra commit. At that point I got thinking about the issue and mailed hobo-users. Is there a way to force regeneration by the way? I noticed that when I disabled the index action in projects, the word 'Products' was still in the navbar (no link though). I restarted the server, no changes. Then I manually removed it from pages.dryml (I know this should not be touched normally). I was affraid it would return but it didn't, so probably the next time the generator ran, it picked up on projects#index not being available. So it would be nice to be able to force this in case it doesn't get triggered by default. Mathijs On 2 sep, 13:03, Tom Locke <[EMAIL PROTECTED]> wrote: > eek! : ) > > I think I'll delay the 0.8 final until this gets sorted, as the DRYML > generator concept is both new and important, and we don't want it to > fall on its face on it's coming out party : ) > > Will investigate today. Some "steps to reproduce" would be very > useful, although I realise it might be difficult to distil these! > > Tom > > On 2 Sep 2008, at 11:33, Mathijs wrote: > > > > > To be more precise: > > > This diff happened after some playing around with the app. > > Some time later (after changing some stuff for testing, and changing > > it back afterwards by git co'ing to where I was before) it changed > > back (using the exact same version). > > That made me loose my 'new story' link. > > I started looking into permissions but couldn't find the cause, but > > while switching back and forward between different users and > > restarting the server a few times, I noticed the auto/rapid pages > > changed from time to time, which caused the error. > > Also the field-list fields in forms.dryml seems so change field order > > from time to time. > > > On 2 sep, 12:26, Mathijs <[EMAIL PROTECTED]> wrote: > >> While running through the agility tutorial with current master > >> 64a2f1e048208a9ee044cead14fa2dd5784364ae > >> I found that the pages that get generated by dryml generator change > >> by > >> themselves sometimes. > >> Most of the time this happens when using the user-switcher in > >> development mode. > > >> I hope this remains readable: > >> @@ -299,9 +299,9 @@ > >> <section param="content-body"> > >> <field-list fields="email_address" param/> > >> <section param="collection-section"> > >> - <h3 param="collection-heading">Project Memberships</h3> > >> + <h3 param="collection-heading">Task Assignments</h3> > > >> - <collection:project_memberships param/> > >> + <collection:task_assignments param/> > >> </section> > >> </section> > >> </content:> > >> @@ -519,9 +519,11 @@ > > >> <section param="content-body"> > >> <section param="collection-section"> > >> - <h3 param="collection-heading">Memberships</h3> > >> + <h3 param="collection-heading">Stories</h3> > > >> - <collection:memberships param/> > >> + <collection:stories param/> > >> + > >> + <a:stories action="new" if="&can_create?" param="new- > >> link">New Story</a> > >> </section> > >> </section> > >> </content:> > > >> It seems hobo is having trouble choosing the primary collection. > >> I didn't look into it atm since the generator stuff is quite new for > >> me. > >> I really like it though, it's a lot clearer what params are available > >> and what to override. > > >> Mathijs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
