On Jul 28, 2009, at 4:23 PM, mdipierro wrote:
I did not write that test and I do not recall what it is supposed to
test.
I think the problem is with the test, not with web2py.
Any idea?
None. Somebody who understands rewrite.rewrite might like to have a
look.
On Jul 28, 12:47 pm,
I was going over Web2Py code, and I noticed that the allowable URLs
are a bit narrow.
As a reference for URL handling, I am using RFC 3986:
http://tools.ietf.org/html/rfc3986
which is has a summary at Wikipedia here:
http://en.wikipedia.org/wiki/Percent-encoding
The default allowable URLs are
Hi Massimo,
Is it ok for you if we use the google code page to create feature request
issues ?
Users can vote and therefore you would have an extra feedback from the
community. In the same time good ideas would not risk of being forgotten in
the mailing list.
Thanks
--
Sebastian E. Ovide
Sorry allowing ~ is a bad idea. It may allow directory traversal
attacks.
Massimo
On Jul 29, 2:35 am, Bottiger bottig...@gmail.com wrote:
I was going over Web2Py code, and I noticed that the allowable URLs
are a bit narrow.
As a reference for URL handling, I am using RFC
OK with me. Is this something I need to setup?
Massimo
On Jul 29, 6:06 am, Sebastian E. Ovide sebastianov...@gmail.com
wrote:
Hi Massimo,
Is it ok for you if we use the google code page to create feature request
issues ?
Users can vote and therefore you would have an extra feedback from
The following trick I used with WingIDE (with other modules)...might
work also for your IDE.
Instead of
import rpdb2; rpdb2.start_embedded_debugger('any_password')
use
if 0:
import rpdb2; rpdb2.start_embedded_debugger('any_password')
In production (not using WingIDE) the if will
great..
you need to go to administer tab of google code page, then to issue
tracking sub tab and in the new issues template section create a template
for feature request which has a proper label (for example
Type-Enhancement). It needs to be enabled also to people that do not belong
to the
While working through the tutorial I am trying get the following error
message and I cannot see what the problem is:
Error traceback
Traceback (most recent call last):
File /usr/local/web2py/gluon/restricted.py, line 174, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer,
Hi.
Problem is in line:
db.Field(password, ‘password’,readable=False, label=Password),
It's the ‘ which isn't a real apostrophe. ' this is. It looks like it, but
when I copy/pasted your code, syntax highlighting didn't mark it as a string.
Try replacing it.
regards
mmlado
On Wednesday 29
Thanks for all of the replies This is a very responsive group!
I'm still not clear on how to replicate some of the Django
functionality here but at least I think I understand how many-to-many
works in web2py.
I had seen the tagging example before but something about that method
bothers me. It
thanks for the replies.
sorry for the delay in replying.
i am having 8 different lookup tables which contains the master list
of all the materials.(endmills, gauging instruments, drills,tooling
systems, etc).these contain the material name and respective product
id's.
there is another table
You can still use these URL you just have to remap them using
routes.py
On Jul 29, 10:34 am, Yarko Tymciurak yark...@gmail.com wrote:
I mean, note the URL:
On Wed, Jul 29, 2009 at 10:33 AM, Yarko Tymciurak yark...@gmail.com wrote:
Note:
oops, thanks
On Jul 29, 10:36 am, Alexey Nezhdanov snak...@gmail.com wrote:
Hello Massimo.
'role based access control' is linked
tohttp://web2py.com/{=URL(r=request,f='tools',anchor='authorization')}}
I.e. one left { is missing
--
Sincerely yours
Alexey Nezhdanov
hi,
I'm using auth for my authentication.
I have two types of users: buyers and students.
Each user type fills in a different (overlapping) set of fields when
they register.
One user type may, at a future point, register as an additional type.
Can I use web2py auth to offer differnt
On Jul 29, 5:51 pm, Carl carl.ro...@gmail.com wrote:
I'm using auth for my authentication.
I have two types of users: buyers and students.
Each user type fills in a different (overlapping) set of fields when
they register.
One user type may, at a future point, register as an additional type.
In the django example, they create a customer query that limits the
range selected to time range defined in the today() function. This
gets 'attached' to the model with EventManager and then applied
automatically when ever an Event object is saved. It only updates the
latest column when all of
On Jul 29, 3:14 pm, phneoix neo.stea...@gmail.com wrote:
i hope iam not confusing you guys.
No, this is very clear makes sense.
My first thought would be to merge all the lookup tables into 1 add
a 'type' column, but I guess you can't do that?
Temporary tables aren't always recommended:
On Jul 29, 6:51 pm, __future__ wrigh...@gmail.com wrote:
So can I create a custom filter like the EventQuerySet in the example
and then apply it in the controller? I assume I will have to use this
anywhere an event might get an update? Can I use it with crud?
I don't quite follow the
Thanks a lot Fran!
It works!
On Tue, Jul 28, 2009 at 7:06 PM, Fran francisb...@googlemail.com wrote:
On Jul 28, 9:27 pm, Tito Garrido titogarr...@gmail.com wrote:
I'm using the generic data... is there a way to set it?
If you're happy for the same class for all tables, then:
def data():
thanks for the reply Fran; and the suggestions.
it feels like I'm fighting against the framework on this one so I'm
adopting a JIT philosophy for data collection. I'll collect the very
basics on registration and then ask for more when users want the
additional services.
for the future: being
Is there a way to change the linkto parameter on data/select ?
It's pointing to data/read I'd like to use data/update
Another question regarding this table... is there a way to add a new column
there?
Thanks!
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
On Jul 29, 8:13 pm, Carl carl.ro...@gmail.com wrote:
for the future: being able to set my own form for register() would be
real nice. at present I can do that only if I want to pull in a remote
authentication system.
You can have extra fields on the register() form very easily - the
form is
I don't see how allowing ~ is a bad idea while allowing ../ in the
query string is allowed.
IE. index?a=../../etc/passwd
This is at the level where if a tilde isn't secure, then neither
should periods, which is of course a bit ridiculous.
On Jul 29, 4:25 am, mdipierro mdipie...@cs.depaul.edu
On Jul 29, 8:44 pm, Tito Garrido titogarr...@gmail.com wrote:
Is there a way to change the linkto parameter on data/select ?
It's pointing to data/read I'd like to use data/update
I have to modify the linkto in my app.
I extend the SQLTABLE() class for this call my modified version by
an
On Jul 29, 8:59 pm, Fran francisb...@googlemail.com wrote:
I have to modify the linkto in my app.
I extend the SQLTABLE() class for this call my modified version by
an extended Crud() class.
You can see this here:
http://trac.sahanapy.org/browser/modules/sahana.py
Posted too early ;)
F
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I have this code:
from gluon.tools import Mail, Auth, Recaptcha
mail=Mail()
mail.settings.server='mail.mydomain.net:25'
mail.settings.sender='ad...@mydomain.net'
mail.settings.login=None
auth = Auth(globals(), db)
auth.define_tables()
Thanks Fran for your quickly reply!
Isn't there an easy way to edit this linkto or add a new column customizing
the form variable?
Something like you did on:
def data():
form = crud()
if request.args(0) == 'select':
try:
form['_class'] = 'flexme'
except:
Hi,
how do I permit my users to capture their email address during
registration
but disallow them to change it when they are updating their auth()
profile,
please?
Regards,
HC
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
I am just trying to implement CasAuth to plug openID (oID) into auth
().
I've got a simple oID server/consumer app using the Janrain
Python oID lib.
The login_methods.gae example included in the login_methods folder
seems to fit (too) well, as all external calls are wrapped nicely in
the
Hi,
I'm evaluating web2py along with a couple of other frameworks as a
replacement for our current Zope 2 implementation. Can anyone point
me to some data that shows if and where web2py is gaining any traction
in industry? Any examples, success stories, etc? How well is web2py
being adopted?
Everything is allowed is in the query string because this is supposed
to be validated by validators.
Nether ~ or .. are allowed in the URL path because this is normally
used to access a resource (application, controller, function, table,
record, file).
You can edit routes.py to allow any URL
These are good questions. web2py does not have something like Django
managers and you have to achieve the same goal differently. This is
because of different in design philosophy.
Django has an ORM, web2py has a DAL. In Django a model maps a table
into an object so you can override the methods
You need to add:
auth.settings.registration_requires_verification = False
and customize your email message:
auth.messages.verify_email = \
'Click on the link http://...verify_email/%(key)s to
verify your email'
Massimo
On Jul 29, 3:23 pm, David Zejda d...@atlas.cz wrote:
if request.args(0)=='profile': db.auth_user.email.readable=False
On Jul 29, 4:12 pm, hcvst hcv...@googlemail.com wrote:
Hi,
how do I permit my users to capture their email address during
registration
but disallow them to change it when they are updating their auth()
profile,
please?
I should add that I am attempting to respond to my own complaint in
other threads about web2py not having enough of these kinds of
tutorials around. :)
On Jul 29, 7:44 pm, __future__ wrigh...@gmail.com wrote:
Thank you for the quick reply!
I think this is starting to click a little more for
I have seen this come up in some other thread about people not using
IRC much in this community. Personally, I think this is kind of
tragic since I have seen a lot of good information sharing coming out
of IRC since I have been using it (since the early 90's).
I might not be able to change the
This is an excellent idea and you can count on my help.
One decision you need to make is how close you want to the
translation to be to the original.
- do you need the same actions? (I assume yes)
- can you use joins? (I assume yes, but in this case it will not run
on GAE)
- do you need the same
I would like it to be functionally as similar to the original as
possible (with maybe a couple of enhancements :-) )
I think in the building of it, people will really appreciate a lot of
the things that web2py does for you in the process.. I personally find
seemingly little things like the
I agree that the IRC channel is neglected. When I did benchmarks to
show that the bundled version of flup does not scale for multicore
machines and that the prefork version should be used, no one said
anything. When I mentioned it here, no one has bothered to do anything
about it. And this is
The current topic is http://www.web2py.com - enterprise python
framework || Latest version 1.65.7 || need to paste code use -
http://pastie.textmate.org/ || Google Groups -
http://groups.google.com/group/web2py
|| To get someone's attention just type their name into the channel/
room || Don't
The problem with IRC is that because of my job I cannot be there
often. Moreover even if things gets resolved they are not recorded.
Massimo
On Jul 29, 8:54 pm, ceej cjlaz...@googlemail.com wrote:
The current topic ishttp://www.web2py.com- enterprise python
framework || Latest version 1.65.7
If you build the model, and empty actions which a docstring explaining
what the should do, I can help filling the blanks.
On Jul 29, 8:37 pm, __future__ wrigh...@gmail.com wrote:
I would like it to be functionally as similar to the original as
possible (with maybe a couple of enhancements :-)
I agree with the irc channel not in it's full power. But I love it, and
when I have been there, I have gotten my questions answered.
Bugs shouldn't be recorded there, you are right. But they shouldn't be
scattered all over the mail list either, at least in my opinion.
Regards,
Jason
On Wed,
Armin (mistuhiko),
have you joined the web2py IRC because you are a web2py user or for
the only purpose of discouraging new users?
In this latter case, do you think it is an appropriate behavior?
Massimo
--~--~-~--~~~---~--~~
You received this message because
On Thu, Jul 30, 2009 at 11:23, Massimo Di Pierromdipie...@cs.depaul.edu wrote:
Armin (mistuhiko),
have you joined the web2py IRC because you are a web2py user or for
the only purpose of discouraging new users?
In this latter case, do you think it is an appropriate behavior?
IRC is tooo
As Massimo pointed out, the philosophy and approach w/in django web2py is
different.
You will probably want to step back from the django solution one step - from
here's how it's done in django to what is being accomplished, and how it's
done in django. Then you will more readily get to how
Massimo,
I have a few sugestions to improve the localization of app welcome, so it
will be easier to international users:
1.
Set the labels of registration table :
db.auth_user.first_name.label=T(First Name)
db.auth_user.last_name.label=T(Last Name)
47 matches
Mail list logo