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.
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.
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
a, i'm quite understand right now, thank you so much for your explaination,
all.
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
awesome, great job, everyone, thank you so much
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-
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,
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
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:
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)
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:
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:
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
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
Oops. For registration, you use this:
http://web2py.com/book/default/chapter/08?search=register_onvalidation
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
Hmm
I got the web2py process killed due to excess memory usage
how do i restart it again?
Hmm
I got the web2py process killed due to excess memory usage
how do i restart it again?
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
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__(
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
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
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
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
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
It didnt for me
It went out of memory and the web2py process was killed automatically by the
server
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
Is there any good docs on how to use the REST API with Authentication?
Thanks.
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
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
from gluon.contrib.urlify import urlify
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,
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
101 - 133 of 133 matches
Mail list logo