Does the edition of the book at lulu talk about authentication? What
what version of web2py does the book end at?
Regards,
Jason Brower
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
Hello web2pyers and Massimo,
I'm testing Auth and all work fine when I use a function called "user"
to return auth().
Well, I speak Portuguese and want to call it "usuario". My
controllers' code is like to:
def usuario():
return dict(meio=auth())
In my app I want to only permit CRUD if user
Hi,
I want a manner to get full GET URL from client, but using a rewrite
in routes_in I can get only a half of. An example:
routes_in = (
('/(?P.+)', '/myapp/default/padrao?\g'),
)
In this case I can get 'full' URL (I say 'full' because I don't get
"http://127.0.0.1:800";) with request.env.q
On Fri, Apr 10, 2009 at 4:12 AM, Jason Brower wrote:
>
> Does the edition of the book at lulu talk about authentication? What
> what version of web2py does the book end at?
> Regards,
> Jason Brower
The free version of the book referer to web2py version 1.37. I think
the full version uses 1.37
I have two function both of which don't execute the way I expect/want
them to execute.
The first one:
def byplace():
form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY(),\
widget=lambda self, value:TAG[''](INPUT
(_id='byplace',_name='plaats',_class='ac_input',_type='text'
On Fri, Apr 10, 2009 at 5:53 AM, annet wrote:
> The second one:
>
> def byzipcode():
> form=form_factory(SQLField('postcoderegio',requires=[IS_LENGTH
> (2),IS_NOT_EMPTY()],\
> widget=lambda self, value:TAG[''](INPUT
> (_id='byzipcode',_name='postcoderegio',_class='ac_input',_type='text'
I have my Auth working properly for now.
I just feel it would be nice to have a reference of all the information
in a book. Weird as it is, being a techy, I love having a book and
supporting the creators/maintainers of open projects.
And yeah, I have used both of those links. Thanks.
Regards,
Ja
You need to customize.
auth.settings.login_url = URL(r=request,f='usuraio', args='login')
The name of this function sounds bad in italian. LOL
Massimo
On Apr 10, 3:06 am, Álvaro Justen [Turicas]
wrote:
> Hello web2pyers and Massimo,
> I'm testing Auth and all work fine when I use a function c
Good point! I can add this.
Massimo
On Apr 10, 3:13 am, Álvaro Justen [Turicas]
wrote:
> Hi,
> I want a manner to get full GET URL from client, but using a rewrite
> in routes_in I can get only a half of. An example:
>
> routes_in = (
> ('/(?P.+)', '/myapp/default/padrao?\g'),
> )
>
> In th
By the summer...
On Apr 10, 6:58 am, Jason Brower wrote:
> I have my Auth working properly for now.
> I just feel it would be nice to have a reference of all the information
> in a book. Weird as it is, being a techy, I love having a book and
> supporting the creators/maintainers of open projec
Hi Annet,
On Apr 10, 1:51 am, jmverm...@xs4all.nl wrote:
> Denes,
>
> > OK but you should check if minmax is not empty first.
>
> I thought this wouldn't be necessary since the input comes from an
> auto-complete or drop-box, and these contain values that are in the
> zipcoderegions table for sur
On Apr 10, 8:38 am, DenesL wrote:
> The auto-complete part was not mentioned in this thread ...
Not explictly but I see the _class='ac_input' now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Frame
You can set the field's requires using IS_EMAIL and IS_IN_DB
validators and on form.accepts (if using FORM or SQLFORM) check if it
is different from the initial setting.
On Apr 10, 1:34 am, waTR wrote:
> I have a field whose value I set to a user's email, from the DB. I
> need to have the field
1 !? what are you trying to do?.
The CGI specification places no limits on the length of the message-
body presented to the script but I am pretty sure that the some of the
components involved in the processing here do set limits.
Besides 7453 seems like an arbitrary limit, so this is probab
On Fri, Apr 10, 2009 at 10:27 AM, mdipierro wrote:
> You need to customize.
>
> auth.settings.login_url = URL(r=request,f='usuraio', args='login')
>
> The name of this function sounds bad in italian. LOL
I don't know italian and Google didn't called me what it means in
Portuguese. :-(
--
Álva
For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com
are down. http://depaul.edu/ is working.
Can someone confirm or is the problem on our network side ?
Hans
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Works for me.
--
Kuba
On Fri, Apr 10, 2009 at 6:41 PM, Hans
wrote:
>
> For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com
> are down. http://depaul.edu/ is working.
>
> Can someone confirm or is the problem on our network side ?
>
> Hans
> >
>
--~--~-~--~~
On Fri, Apr 10, 2009 at 1:41 PM, Hans
wrote:
> For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com
> are down. http://depaul.edu/ is working.
>
> Can someone confirm or is the problem on our network side ?
Yesterday I can't access these sites (they are the same IP, same
mac
it really didn't worked today so it was not just you :)
On Fri, Apr 10, 2009 at 7:16 PM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:
>
> On Fri, Apr 10, 2009 at 1:41 PM, Hans
> wrote:
> > For me it looks like http://mdp.cti.depaul.edu/ and
> http://www.web2py.com
> > are down. http
In italian a "usuraio" is sombody to lends money at a very high and
illegal rate. It is a criminal. Most credit card companies would
qualify.
On Apr 10, 11:17 am, Álvaro Justen [Turicas]
wrote:
> On Fri, Apr 10, 2009 at 10:27 AM, mdipierro wrote:
> > You need to customize.
>
> > auth.settings.l
now for me its working again.
hans
On Apr 10, 7:17 pm, Boris Manojlovic
wrote:
> it really didn't worked today so it was not just you :)
>
> On Fri, Apr 10, 2009 at 7:16 PM, Álvaro Justen [Turicas] <
>
>
>
> alvarojus...@gmail.com> wrote:
>
> > On Fri, Apr 10, 2009 at 1:41 PM, Hans
> > wrote:
Annet,
you are using custom widgets but you are not setting their requires
(which is not easy to see, I will give you that).
On Apr 10, 3:53 am, annet wrote:
> I have two function both of which don't execute the way I expect/want
> them to execute.
>
> The first one:
>
> def byplace():
> fo
I would also like to add my recommendation for this book. I just
purchased it and its a very well written
Mike
On Apr 7, 8:08 pm, mdipierro wrote:
> When I called one year ago they would not publish thebookat all. Now
> we have 10 times more users so it may me worth calling them again. I
> wil
Portuguese for user is "usuário". or "usuario" without the accent.
Massimo, you transliterate as "usuraio".
The correponding for the Italian "usuraio" in Portuguese is "usurário".
Latin languages have similar words with the same meaning!
A. C. Censi
On Fri, Apr 10, 2009 at 2:23 PM, mdipierro
I can't seem to find a clear example of using 'like' in database
selects.
I'd like to do something like...
SELECT * FROM `customers` WHERE customer.name LIKE "%alex%" LIMIT 10;
...but without resorting to executing the query directly via
db.executesql(). The manual says...
"You can build a que
Here's the last of my "pets", I present you with pyForum, the FIRST
message board written exclusively in web2py, basically a forum system
containing many of the goodies of other (php?) message boards out
there.
http://www.pyforum.org/
The "official" release is at:
http://www.pyforum.org/pyforum/
On Fri, Apr 10, 2009 at 6:25 PM, Speedbird wrote:
> Here's the last of my "pets", I present you with pyForum, the FIRST
> message board written exclusively in web2py, basically a forum system
> containing many of the goodies of other (php?) message boards out
> there.
>
> http://www.pyforum.org/
This is a very interesting topic that I'll eventually try to address,
no doubt. Having web2py behind apache was a daunting task to say the
least, since I am now running more than one web2py app under apache in
the same web2py instance, I want to make sure all configuration
settings are correct.
F
Auch. This is all my fault. I misread your original email and
propagated the error. It makes more sense now.
On Apr 10, 2:29 pm, "A. C. Censi" wrote:
> Portuguese for user is "usuário". or "usuario" without the accent.
>
> Massimo, you transliterate as "usuraio".
>
> The correponding for the Ita
db(db.name.like('%alex%)).select()
On Apr 10, 4:04 pm, "web2py <<>> technicalbloke.com"
wrote:
> I can't seem to find a clear example of using 'like' in database
> selects.
>
> I'd like to do something like...
>
> SELECT * FROM `customers` WHERE customer.name LIKE "%alex%" LIMIT 10;
>
> ...but w
Beautiful. I will use this.
Massimo
On Apr 10, 4:25 pm, Speedbird wrote:
> Here's the last of my "pets", I present you with pyForum, the FIRST
> message board written exclusively in web2py, basically a forum system
> containing many of the goodies of other (php?) message boards out
> there.
>
>
For some reason using SQLFORM with a field upload doesn't work, it
submits and adds to the db fine all the other fields but not the
image. When i check the logs I'm getting this error.
/gluon/sql.py:653: Warning: Field 'viewed' doesn't have a default
value
self._execute = lambda *a, **b: self._
It's pretty easy to implement URLs like I talked about. In your controller:
def show_forum():
forum_name = request.get_vars['f']
# ... do something ...
return dict(f=forum_name, ...)
def show_thread():
forum_name = request.get_vars['f']
thread_name = request.get_vars['t']
Ah, you can use hostname matching in routes.py if you're using web2py
>= 1.60. So you can rewrite only pyforum.org requests.
On 4/10/09, Álvaro Justen [Turicas] wrote:
> It's pretty easy to implement URLs like I talked about. In your controller:
>
> def show_forum():
> forum_name = request.g
On Fri, Apr 10, 2009 at 10:28 AM, mdipierro wrote:
> Good point! I can add this.
Thanks. :-)
Another improvement: if routes_out is not defined, I think web2py can
create it directly based on routes_in, like:
routes_out = map(lambda x:(x[1], x[0]), routes_in)
If you do not want this to be defa
I think a central file to record changes for every releases is really
a good idea. For example, maybe I using version 1.4. Now I want to
upgrade to the current version and I want to find out what's change
after 1.4 release. For now, to find out what's changed, there is no
convenient way but search
Never mind, I found it in the readme file. My apology to the list.
On Apr 11, 9:12 am, Jarod Liu wrote:
> I think a central file to record changes for every releases is really
> a good idea. For example, maybe I using version 1.4. Now I want to
> upgrade to the current version and I want to find
You can put this
routes_out = map(lambda x:(x[1], x[0]), routes_in)
yourself in routes. It should not be the default because if people use
regex in routes, this way of doing reversed mapping would not work.
On Apr 10, 6:57 pm, Álvaro Justen [Turicas]
wrote:
> On Fri, Apr 10, 2009 at 10:28 AM,
On Sat, Apr 11, 2009 at 12:14 AM, mdipierro wrote:
> You can put this
> routes_out = map(lambda x:(x[1], x[0]), routes_in)
>
> yourself in routes. It should not be the default because if people use
> regex in routes, this way of doing reversed mapping would not work.
Yes, I have this code in app
I have said this enough times, and am still amazed at these questions.
I will try this one more time: you have no business trying to direct
Massimo's decisions ("give me free xxx..."). If you do then you are
no software engineer for you are committing the same boundry violation
as if you were tr
Allow sub-queries to be performed within the DAL. How? This would be a
good example.
db(db.table.field1==db.tbl2.field2).select(db.tbl2.ALL, db
(db.hola.id==db.massimo.the_id)._select(db.hola.ALL))
The db() within a .select() should perform a subquery when selecting
like that. The system current
> The correponding for the Italian "usuraio" in Portuguese is "usurário".
> Latin languages have similar words with the same meaning!
And many latin words propagated into other languages, hungarian has
almost the same word 'uzsorás' (closer when pronounced than written)
which refers to 'loan shar
Denes,
> The auto-complete part was not mentioned in this thread but it should
> be OK as per your logic, except for the extreme case where the
> selected postcoderegio is deleted while the form is being shown.
I guess it is best to take this extreme case into account, the code
now reads:
if f
43 matches
Mail list logo