P.S. Ideally T4 delete methods should require confirmation like delete in applications/admin/controllers/default.py
On Nov 1, 9:05 am, mdipierro <[email protected]> wrote: > Could you email me your patch. > Please make sure they apply to the latest version I posted yesterday > night. > > Massimo > > On Nov 1, 8:35 am, Júlio Monteiro <[email protected]> wrote: > > > Hi there, > > I just implemented the controller file_delete() to delete files, as it was > > missing too. > > And also fixed the ticket generation error on db.py, it was using > > db.ticket, but it should be db.t_ticket. > > Is there any way that I could commit this files into a branch? > > Thanks alot! > > Julio Monteiro > > Júlio Monteiro wrote:Hi there, > > I realized the database was not empty, I checked it out from launchpad > > along with the code, thats probably why my user was not made admin and the > > main page was not there, by flushing the database that was fixed, but the > > rest of the problems remain, for now. > > Actually, I coded the delete action for the logs, its pretty easy, I guess: > > just add in t4/controllers/default.py:43: > > @auth.requires(auth.is_admin) > > def delete(): > > crud.delete(db.t_page, int(request.args(1)), > > next=URL(r=request,f='logs',args=page_name)) > > Cheers! > > Julio Monteiro > > Júlio Monteiro wrote:Hello there, Massimo! > > I finally had time to check out T4, and it is looking VERY good! > > I know this is early alpha, but I am very interested in using it, so here > > ismy feedback: > > 1) the page 'main' is not created by default, so when entering the app for > > the first time, I got the '404 NOT FOUND' error, specially when I am not > > logged in > > 2) I had to go to database admin and create my user there and add it to the > > "administrator" group, it should do this automatically once I create the > > first user > > 3) If I edit the system page "settings", the first lines with > > response.something doesn't have any effect in the site (even after I > > publish them), however if I change the index controller and add > > response.title="Something", for example, it works. > > 4) When I click logs, then click on a time stamp I get a 404 error, if I > > try to delete a log item, I also get an 'invalid function' error. > > 5) When I click files, I can upload a file alright, but when I click to > > 'delete' them I get an 'invalid function'. Also how can I reference to > > files I uploaded in a page? > > 6) About the menu, I see that you can easily edit the menu file and change > > the menu, but I liked it better when the menu was automatic, it is much > > more user-friendly than editing a config file in my opinion. I would > > suggest adding a dropdown in page editing that would allow me to pick a > > menu item to be a parent of this page, or none to leave it outside the menu. > > Thanks for this wonderful addition! I can barely wait until is is more > > usable, also if there is anything that you would need a hand on coding > > related to T4 TODO list, I could try to help, as it is of my high interest > > to see this done. > > Cheers, > > Julio Monteiro > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

