[web2py] slug ???

2011-06-01 Thread 黄祥
hi, did anyone knows what slug is used for? i see in plugins wiki there is slug field on the database table, what is the difference with string field input. thank you.

Re: [web2py] slug ???

2011-06-01 Thread David J
Slug is unique On Jun 1, 2011 6:16 PM, 黄祥 steve.van.chris...@gmail.com wrote: hi, did anyone knows what slug is used for? i see in plugins wiki there is slug field on the database table, what is the difference with string field input. thank you.

Re: [web2py] slug ???

2011-06-01 Thread Bruno Rocha
slug is unique, slug is used as url http://yoursite/plugin_wiki/page/slughere -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento

Re: [web2py] slug ???

2011-06-01 Thread Stifan Kristi
a, i'm quite understand right now, thank you so much for your explaination, all.

Re: [web2py] web2py 1.96.1 is OUT

2011-06-01 Thread Sebastian E. Ovide
WAW ! impressive On Wed, Jun 1, 2011 at 7:25 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I could not wait any longer. We had so many changes that we need to move on. I do not recall any other release with so many new features. Thanks to all those who have contributed with

Re: [web2py] web2py 1.96.1 is OUT

2011-06-01 Thread Stifan Kristi
awesome, great job, everyone, thank you so much

[web2py] Re: slug ???

2011-06-01 Thread pbreit
I create and decode slugs on-the-fly so that my URLs are more descriptive: http://pricetack.com/item/nike-vintage-stripe-polo-shirt-lg-51 same as: http://pricetack.com/item/51 This is the slug: nike-vintage-stripe-polo-shirt-lg-

[web2py] Re: web2py 1.96.1 is OUT

2011-06-01 Thread Massimo Di Pierro
hmmm. I responded already but my response does not show. trying again... On Jun 1, 2:56 pm, Grigory Antonov antono...@gmail.com wrote: Hi, please, give some comments about new features: - from gluon import * imports in every python module a web2py environment (A, DIV,..SQLFORM, DAL,

Re: [web2py] Re: web2py 1.96.1 is OUT

2011-06-01 Thread Pierre Thibault
But there is another cool feature in the trunk. If you look in gluon/ custom_import.py, you will see two new functions: is_tracking_changes and track_changes. Call track_changes with True and web2py will track the changes made to all Python module source files you are using. The new importer will

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
Is 'slug' documented in the book? On 6/1/11 7:08 PM, pbreit wrote: I create and decode slugs on-the-fly so that my URLs are more descriptive: http://pricetack.com/item/nike-vintage-stripe-polo-shirt-lg-51 same as: http://pricetack.com/item/51 This is the slug:

Re: [web2py] Re: slug ???

2011-06-01 Thread Bruno Rocha
On Wed, Jun 1, 2011 at 9:14 PM, David J. da...@styleflare.com wrote: Is 'slug' documented in the book? It is documented here - http://en.wikipedia.org/wiki/Slug_(web_publishing)

Re: [web2py] Re: slug ???

2011-06-01 Thread Stifan Kristi
a, so that's what slug used for, thank you so much for your sharing, pbreit. at first i read in the book, and don't know, what slug is use for. On Thu, Jun 2, 2011 at 6:08 AM, pbreit pbreitenb...@gmail.com wrote: I create and decode slugs on-the-fly so that my URLs are more descriptive:

Re : Re: Re : Re: Re : Re: [web2py] Re: Email invitation

2011-06-01 Thread Dwayne Blind
Brilliant ! Thanks a lot. I followed your advice. This is what I did : def my_auth_processing(form): if db(db.invitation.token==request /examples/global/vars/request.args( 0)): return True else : return False def user(): exposes:

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
Thanks Bruno; Its also Dare I say listed in the Django docs; They have a SlugField also; But I was curious how someone would knew it existed in web2py Also I would imagine that the IS_IN_DB() validator would be on the field? Thanks. On 6/1/11 8:21 PM, Bruno Rocha wrote: On Wed, Jun 1, 2011

Re: [web2py] Re: slug ???

2011-06-01 Thread pbreit
There's a validator if you want to save a slug to the DB: http://web2py.com/book/default/chapter/07?search=IS_SLUG Here's how I do it. I have a computed field for my records: def slug(self): return '%s-%s' % (urlify(self.item.title, max_length=50), self.item.id) And a function to return the

Re: Re : Re: Re : Re: Re : Re: [web2py] Re: Email invitation

2011-06-01 Thread pbreit
Oops. For registration, you use this: http://web2py.com/book/default/chapter/08?search=register_onvalidation

Re: [web2py] Re: slug ???

2011-06-01 Thread Stifan Kristi
pardon me, what urlify is use for? i've already search in the book but return a null. thank you so much. On Thu, Jun 2, 2011 at 7:29 AM, pbreit pbreitenb...@gmail.com wrote: There's a validator if you want to save a slug to the DB: http://web2py.com/book/default/chapter/07?search=IS_SLUG

Re: [web2py] how to upgrade Web2py in Webfaction?

2011-06-01 Thread jorgehrpo
Hmm I got the web2py process killed due to excess memory usage how do i restart it again?

Re: [web2py] how to upgrade Web2py in Webfaction?

2011-06-01 Thread JorgeH
Hmm I got the web2py process killed due to excess memory usage how do i restart it again?

Re: [web2py] how to upgrade Web2py in Webfaction?

2011-06-01 Thread Tito Garrido
Does upgrade button works on webfaction? :-o On Wed, Jun 1, 2011 at 9:53 PM, JorgeH jorgeh...@gmail.com wrote: Hmm I got the web2py process killed due to excess memory usage how do i restart it again? -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__(

[web2py] Re: slug ???

2011-06-01 Thread Massimo Di Pierro
Converts text into a SLUG. On Jun 1, 7:32 pm, Stifan Kristi steve.van.chris...@gmail.com wrote: pardon me, what urlify is use for? i've already search in the book but return a null. thank you so much. On Thu, Jun 2, 2011 at 7:29 AM, pbreit pbreitenb...@gmail.com wrote: There's a

Re : Re: Re : Re: Re : Re: Re : Re: [web2py] Re: Email invitation

2011-06-01 Thread Dwayne Blind
Thank you. So I tried : def my_auth_processing(): if db(db.invitation.token==request /examples/global/vars/request.args( 0)): return True else : return False auth.settings.register_onvalidation = [my_auth_processing] But it does not work. Does my_auth_processing need

Re: [web2py] Re: slug ???

2011-06-01 Thread Stifan Kristi
a, i see, thank you so much for your explaination, massimo. On Thu, Jun 2, 2011 at 7:59 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Converts text into a SLUG. On Jun 1, 7:32 pm, Stifan Kristi steve.van.chris...@gmail.com wrote: pardon me, what urlify is use for? i've already

Re: [web2py] how to upgrade Web2py in Webfaction?

2011-06-01 Thread JorgeH
ok did it following JoeCodeswell 'S tips in other thread: Here are the commands. They seemed to work. $ cd /home/my_acct/webapps/wp/ apache2/bin $ ./stop $ cd /home/my_acct/webapps/wp $ rm web2py_src.zip $ wget -q http://www.web2py.com/examples/static/web2py_src.zip $ unzip -q

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
I Love the fact that there is tons of hidden treasures like this. Thanks. On 6/1/11 8:59 PM, Massimo Di Pierro wrote: Converts text into a SLUG. On Jun 1, 7:32 pm, Stifan Krististeve.van.chris...@gmail.com wrote: pardon me, what urlify is use for? i've already search in the book but return

Re: [web2py] how to upgrade Web2py in Webfaction?

2011-06-01 Thread JorgeH
It didnt for me It went out of memory and the web2py process was killed automatically by the server

Re: [web2py] template in crud

2011-06-01 Thread Richard Vézina
You have typo.. (see quote in red) Why do you want to do that like this? In controller you could go like this : db.tablename.fieldname.readable = True or False If you need to hide field base on user group membership you will have to define the readable/writable field for each group in your

[web2py] Using the REST API with Auth.

2011-06-01 Thread David J.
Is there any good docs on how to use the REST API with Authentication? Thanks.

[web2py] default.py function data() and call()

2011-06-01 Thread 黄祥
hi, did anyone know what default.py function's data() and call() is use for? could you give an example for implement too? thank you so much. def call(): exposes services. for example: http:///[app]/default/call/jsonrpc decorate with @services.jsonrpc the functions to expose

[web2py] Re: sqlite OperationalError: database is locked in a cron job

2011-06-01 Thread dlypka
I had this problem when adding the 2nd record to a table using crud and sqlite3. Then I saw this posting http://groups.google.com/group/web2py/browse_thread/thread/ff93d18db6d4ed53/bc1f44c0cc0f50a3?lnk=gstq=database+is+locked#bc1f44c0cc0f50a3 where Massimo suggests trying db.commit() I put a

Re: [web2py] Re: slug ???

2011-06-01 Thread pbreit
from gluon.contrib.urlify import urlify

Re: [web2py] Re: Cannot register or login a user

2011-06-01 Thread Jon Molesa
Twas a dumb oversight. domain='' in the janrain config isn't referring to the domain web2py is running on, localhost. No no. It's referring to your janrain.com subdomain. So if your janrain url is foo.rpxnow.com then just set domain='foo'. HTH anyone that comes across this. On Wed, Jun 1,

Re: Re : Re: Re : Re: Re : Re: Re : Re: [web2py] Re: Email invitation

2011-06-01 Thread pbreit
This is going to be a bit trickier that I thought. I think the link in the email needs to deliver the uuid/token to a custom registration form. This hack might work. In your user() function in default.py, add this line: if request.args(0): form.vars.token = request.args(0) Then the

<    1   2