Advanced Homegrown Auth

2009-02-18 Thread menshikoval...@gmail.com
Hello. Can you help me to provide Advanced Homegrown Auth with mysql md5 support (passwords in users.password table). Probably sources or etc... i'm beginner in pylons and can't understand way to build using this article http://wiki.pylonshq.com/display/pylonscookbook/Advanced+Homegrown+Auth Bes

Re: Advanced Homegrown Auth

2009-02-18 Thread menshikoval...@gmail.com
Thank you for your answers. I have experience in php about md5. In your article there are parts of auth-program code with comments. I don't khow where to edit. For example class BaseController (WSGIController): refers to ../lib/base.py another def current_url (): in which file to use

Re: Advanced Homegrown Auth

2009-02-19 Thread menshikoval...@gmail.com
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/HashProperty How to use it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.co

MySQL auth

2009-02-20 Thread menshikoval...@gmail.com
Hi I'm looking for autorization based at mysql. As I see authkit nornally support only sqlite and postgres. I'm newby in Pylons and can't to understand how to use this http://wiki.pylonshq.com/display/pylonscookbook/Advanced+Homegrown+Auth and how to change LDAP to MySQL. Any another blogs, exam

Re: MySQL auth

2009-02-22 Thread menshikoval...@gmail.com
Thanks, I hope to make it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to py

AuthKit groups and roles

2009-02-24 Thread menshikoval...@gmail.com
What difference between Authkit Roles and Groups? Looking the SimpleSite (chap 3 in pylonsbook) I'v see users, roles, users_roles, groups tables in DB structure. roles join to users by users_roles.user_uid to users_roles.role_uid. How to connect groups to users? What is Groups? Is it combine of

Authkit password check

2009-02-25 Thread menshikoval...@gmail.com
Hello! Authkit has encrypt method of authenticate with this settings authkit.form.authenticate.user.encrypt = authkit.users:md5 authkit.form.authenticate.user.encrypt.secret = MySecret authkit write password field in md5 format such as "8743bcab778fc1316792e820e28c7be2" also if I disable this m

webhelpers.html.tags.select

2009-03-02 Thread menshikoval...@gmail.com
Hello I'm beginner... How to get DB Sqlalchemy table values to webhelpers.html.tags select? My controller account.py def register(self): return render('/account/register.html') @validate(schema=RegisterForm(), form="register") def create(self): response.charset = 'u

Codepage, UTF-8

2009-03-02 Thread menshikoval...@gmail.com
I use webhelpers in my templates. Names in cyrillic has non readable format (i have add to controller ## -- codepage: utf-8 --) "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f" How to make it readable? ${h.submit("create", "Регистрация")} --~--~-~--~~--

Re: Codepage, UTF-8

2009-03-02 Thread menshikoval...@gmail.com
Thanks, Piotr! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss

Re: Codepage, UTF-8

2009-03-02 Thread menshikoval...@gmail.com
Another one... In my controller I use flash('Регистрация'), then in sends to template form in "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f" How to use "u" prefix here? Alexy --~--~-~--~~~---~--~~ You received this message because you are su

authkit render template error

2009-03-03 Thread menshikoval...@gmail.com
I'v use authkit and sqlalchemy with mysql When I try to change template of signin screen (written in http://pylonsbook.com/alpha1/simplesite_part_3 Styling the Sign In Screen) I have following error TypeError: not all arguments converted during string formatting /lib/auth.py def render_signin(

Re: Codepage, UTF-8

2009-03-03 Thread menshikoval...@gmail.com
No =( Regards, Alexy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-

Re: authkit render template error

2009-03-04 Thread menshikoval...@gmail.com
Hello. I have this error-mesage both ways =( TypeError: not all arguments converted during string formatting Alexy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send

request to template

2009-03-05 Thread menshikoval...@gmail.com
Hello I have ${h.select('name', value=1, options=[("1", "name1"), ("2", "name2")]} In controller i'v use request.POST("name") to get name1 or name2. But i need to get value of selected. How to do it? Alexy --~--~-~--~~~---~--~~ You received this message because y

Javascript in template

2009-03-06 Thread menshikoval...@gmail.com
Hello. How to use JavaScript in template form? I'v add http://www.dhtmlgoodies.com/index.html?page=calendarScripts Alexy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this

Re: Javascript in template

2009-03-07 Thread menshikoval...@gmail.com
Jerry, script from the example in .html works in FF, IE, Konqueror... http://yourserver/js/calendar.js this url show my script (mysite/ mysite/public/js/calendar.js) in Pylons i'v read that (type="text/javascript") is unnecessary. I try to use webhelpers ${h.javascript_link('/js/calendar.js')}

sqlalchemy to list of dicts

2009-03-20 Thread menshikoval...@gmail.com
How to get sqlalchemy query to list of dicts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group

options h.select in webhelpers

2009-04-04 Thread menshikoval...@gmail.com
Hello How to make dynamicly range of 01..99 in options ${h.select("val", "01", options=[("01", "01"), ("02", "02").("99", "99")] )} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post

Re: options h.select in webhelpers

2009-04-04 Thread menshikoval...@gmail.com
options=range(1, 100) This one generates 1,2,3,4...99 but I need 01,02,03..99 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups

Re: options h.select in webhelpers

2009-04-04 Thread menshikoval...@gmail.com
options=[('%02i' % i, '%02i' % i) for i in xrange(1,100)] this works fine, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googleg

webhelpers

2009-04-05 Thread menshikoval...@gmail.com
Hello How to connect it to another elements on template? ${h.select("select1", "1", options=[("1", "FirstSection"), ("2", "SecondSection"), ("3", "ThirdSection")])} for example checkbox cheked value if "SecondSection" selected of visible of block block if "FirstSection" selected Thanks --~