I guess mercurial API broke backward compatibility. I will remove the debug flag.
Massimo On Aug 14, 2:39 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > I turned on Mercurial, and when I click the 'versioning' link, I get > the following ticket: > > Error ticket for "admin" > > Ticket 127.0.0.1.2009-08-14.12-36-19.8fb6bdaa-ba42-4638-890b- > c8710622a40e > > Error traceback > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > Traceback (most recent call last): > File "/Users/jlundell/VTC/vpeps-web2py/web2py-vpeps/gluon/ > restricted.py", line 178, in restricted > exec ccode in environment > File "/Users/jlundell/VTC/vpeps-web2py/web2py-vpeps/applications/ > admin/controllers/mercurial.py", line 29, in <module> > File "/Users/jlundell/VTC/vpeps-web2py/web2py-vpeps/gluon/ > globals.py", line 104, in <lambda> > self._caller = lambda f: f() > File "/Users/jlundell/VTC/vpeps-web2py/web2py-vpeps/applications/ > admin/controllers/mercurial.py", line 6, in commit > uio = ui.ui(debug=True,verbose=True) > TypeError: __init__() got an unexpected keyword argument 'debug' > > In file: /Users/jlundell/VTC/vpeps-web2py/web2py-vpeps/applications/ > admin/controllers/mercurial.py > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > 17. > 18. > 19. > 20. > 21. > 22. > 23. > 24. > 25. > 26. > 27. > 28. > 29. > 30. > def commit(): > > app = request.args[0] > path = apath(app, r=request) > > uio = ui.ui(debug=True,verbose=True) > try: > r = hg.repository(ui=uio, path=path) > except: > r = hg.repository(ui=uio, path=path, create=True) > form = > FORM('Comment:',INPUT(_name='comment',requires=IS_NOT_EMPTY()), > INPUT(_type='submit',_value='Commit')) > if form.accepts(request.vars,session): > files = listdir(apath('%s/' % app, r=request), '^ABOUT$', 0) > files += listdir(apath('%s/' % app, r=request), '^LICENSE$', 0) > files += listdir(apath('%s/models/' % app, r=request), '^.* > \.py$', 0) > files += listdir(apath('%s/controllers/' % app, r=request), > '^.*\.py$', 0) > files += listdir(apath('%s/views/' % app, r=request), '^.* > \.html$', 0) > files += listdir(apath('%s/languages/' % app, r=request), '^.* > \.py$', 0) > files += listdir(apath('%s/modules/' % app, r=request), '^.* > \.py$', 0) > files += listdir(apath('%s/static/' % app, r=request), '.*', 0) > files = [f[len(path)+1:] for f in files] > r.add(files) > r.commit(text=form.vars.comment) > else: > files=[] > return dict(form=form,files=TABLE(*[TR(file) for file in > files]),repo=r) > > response._vars=response._caller(commit) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---