Hi !

  I try add "class" attribute to secure_form like this: ${h.secure_form
('/account/change_password', method='post', class='a')}
 but i get only foloowing backtrace

------------------- backtrace ----------------------
Error !
SyntaxException: (SyntaxError) invalid syntax (, line 1)
("h.secure_form('/account/change_password', method='") in file '/home/
users/matrix/johny/Pylons/zhradmin2/zhradmin2/templates/account/
index.mako' at line: 5 char: 1

2 <%inherit file="/user_template.mako" />
3 <%include file="/user_menu.mako" />
4
5 ${h.secure_form('/account/change_password', method='post',
class='a')}
6 <fieldset>
7 <legend>Zmień hasło</legend>
8 <div><label>Obecne hasło: </label> ${h.password('old_password')}</
div>
9 <div><label>Nowe hasło: </label> ${h.password('new_password')}</div>
10 <div><label>Powtórz nowe hasło: </label> ${h.password
('new_password_confirmation')}</div>
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
pyparser.py, line 37:
raise exceptions.SyntaxException("(%s) %s (%s)" %
(e.__class__.__name__, str(e), repr(code[0:50])), **exception_kwargs)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
ast.py, line 30:
expr = pyparser.parse(code.lstrip(), "exec", **exception_kwargs)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
parsetree.py, line 168:
self.code = ast.PythonCode(text, **self.exception_kwargs)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
lexer.py, line 94:
node = nodecls(*args, **kwargs)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
lexer.py, line 291:
self.append_node(parsetree.Expression, self.escape_code(text),
escapes.strip(), lineno=line, pos=pos)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
lexer.py, line 150:
if self.match_expression():
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
template.py, line 264:
node = lexer.parse()
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
template.py, line 82:
_compile_module_file(self, file(filename).read(), filename, path)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
lookup.py, line 127:
self.__collection[uri] = Template(uri=uri, filename=posixpath.normpath
(filename), lookup=self, module_filename=(self.modulename_callable is
not None and self.modulename_callable(filename, uri) or None),
**self.template_args)
/usr/local/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/
lookup.py, line 85:
return self.__load(srcfile, uri)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
templating.py, line 269:
template = globs['app_globals'].mako_lookup.get_template
(template_name)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
templating.py, line 249:
return render_func()
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
templating.py, line 274:
cache_type=cache_type, cache_expire=cache_expire)
/home/users/matrix/johny/Pylons/zhradmin2/zhradmin2/controllers/
account.py, line 78:
return render('/account/index.mako')
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authorize/pylons_adaptors.py, line 35:
return func(self, *args, **kwargs)
/home/users/matrix/johny/Pylons/zhradmin2/zhradmin2/lib/
permissions.py, line 15:
return app(environ, start_response)
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authorize/pylons_adaptors.py, line 36:
return permission.check(app, request.environ, self.start_response)
, line 2:
None
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
controllers/core.py, line 60:
return func(**args)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
controllers/core.py, line 107:
result = self._perform_call(func, args)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
controllers/core.py, line 172:
response = self._inspect_call(func)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
controllers/core.py, line 221:
response = self._dispatch_call()
/home/users/matrix/johny/Pylons/zhradmin2/zhradmin2/lib/base.py, line
39:
return WSGIController.__call__(self, environ, start_response)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
wsgiapp.py, line 324:
return controller(environ, start_response)
/usr/local/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
wsgiapp.py, line 125:
response = self.dispatch(controller, environ, start_response)
/usr/local/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/
middleware.py, line 130:
response = self.app(environ, start_response)
/usr/local/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/
middleware.py, line 160:
return self.wrap_app(environ, session_start_response)
/usr/local/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/
middleware.py, line 81:
return self.app(environ, start_response)
/usr/local/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/
httpexceptions.py, line 636:
return self.application(environ, start_response)
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authenticate/__init__.py, line 319:
return self.app(environ, start_response)
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authenticate/multi.py, line 55:
return self.default(environ, find)
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authenticate/multi.py, line 87:
app_iter = app(environ, start_response)
/usr/local/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/
authenticate/__init__.py, line 329:
return self.app(environ, start_response)
/usr/local/lib/python2.5/site-packages/WebError-0.10.1-py2.5.egg/
weberror/evalexception.py, line 431:
app_iter = self.application(environ, detect_start_response)
------------------- backtrace ----------------------

 I don't have idea what is that.

Greetings from Poland !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to