[web2py] Re: Django vs web2py pain points

2011-02-07 Thread cjrh
On Feb 6, 5:36 pm, Luther Goh Lu Feng elf...@yahoo.com wrote: I am about to have a constructive discussion about web2py vs django with a team member of mine before we decide whether to implement a project. He is an expert with django while I consider myself an intermediate web2py user. A

[web2py] Re: Can anyone recommend a good python forum in google groups or elsewhere?

2011-02-07 Thread cjrh
On Feb 7, 6:31 am, Rupesh Pradhan rupeshkrprad...@gmail.com wrote: Can anyone recommend a good python forum in google groups or elsewhere? http://groups.google.com/group/comp.lang.python/topics

[web2py] web2py on IIS7.5, Windows Server 2008.

2011-02-07 Thread Panupat
A couple question. Running web2py on Windows Server 2008 R2, IIS7.5. Following the official online book I got the site working with 127.0.0.1:8000. But I want to add the website to IIS service so I can access it with subdomain.mydomain.com (got other sites running this way already) 1. IIS

[web2py] Re: Problem with DAL and Postgres

2011-02-07 Thread Bernardo
Sure Massimo, here it goes: db.define_table(auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('username', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password',

[web2py] Re: Django vs web2py pain points

2011-02-07 Thread Dane
In my opinion, the only advantages Django has are its admin interface and the perks of a bigger and more established community, including more stable documentation, better results when you google, a big community on stack overflow, more name recognition (people won't hesitate to let you do their

[web2py] facebook insights

2011-02-07 Thread b0j3
Hi! I'd like to use Facebook's insights in web2py, but after adding the meta tag for the domain to the layout.html, the only thing I get is No admin data found.. Did anybody successfully added Insights to web2py? Boštjan

Re: [web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2011-02-07 Thread Tom Atkins
On 6 February 2011 15:51, Massimo Di Pierro massimo.dipie...@gmail.comwrote: The least comment in the issue thread says it is fixed after deleting the pyc. Is that not correct? Yes - fixed after dal.pyc was recreated with new version.

[web2py] Re: web2py on IIS7.5, Windows Server 2008.

2011-02-07 Thread Anthony
On Monday, February 7, 2011 3:48:22 AM UTC-5, Panupat wrote: 3. The online book mentioned options.py but I don't seem to have that file anywhere in my web2py directory http://web2py.com/book/default/chapter/11#Start-as-Windows-Service You should find a file called 'options_std.py' in the

[web2py] password reset does not work

2011-02-07 Thread selecta
Traceback (most recent call last): File /home/fkrause/Dev/web2py/gluon/restricted.py, line 188, in restricted exec ccode in environment File /home/fkrause/Dev/web2py/applications/pyMantis/controllers/ default.py, line 101, in module File /home/fkrause/Dev/web2py/gluon/globals.py, line

[web2py] plugin_datatable

2011-02-07 Thread Neveen Adel
Hello, Am using to plugin_datatable and i want to go to the update form from displayed table. E.x: The table display a list of records ,Is there a way on clicking on a record the update form is displayed? Is there a way to do that ? if not , is there any idea can lead me to the target?

Re: [web2py] plugin_datatable

2011-02-07 Thread Bruno Rocha
It is all about JavasCRIPT. To get selected row and perform an action i.e (javascript window.location('') ) http://datatables.net/examples/api/select_single_row.html http://datatables.net/examples/api/select_single_row.htmlTo show/hide columns http://datatables.net/examples/api/show_hide.html

[web2py] Model with 2 fields were one field is required

2011-02-07 Thread grezly
i have a table with 3 fields: title start end For some reason i want to have the following; the title has to be filled in always, but for the start and end field belongs a rule to the fields; only 1 of the two fields can be filledin, They also can't be either empty or filled in. It's up to the

[web2py] Updating computed fields

2011-02-07 Thread Johann Spies
If I have a table and add a computed field - how do I update existing records? I am speaking of tables with many thousands of records. Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything

[web2py] Re: SQLFORM and read-only references

2011-02-07 Thread Juan Antonio
I have db.define_table('article', Field('name'),,format='%(name)s') db.define_table('lote', Field('name'),, Field('article', db.article) db.lote.article.requires = IS_IN_DB(db, db.article.id, '%(name)s') And SQLFORM(db.lote,..,readonly=True) shows 'None' in field articulo I think it is

[web2py] Need help setting up a composite key

2011-02-07 Thread Mark Hayes
I'm new to web2py and can't seem to find out how to create a composite key. Specifically I'm trying to create the following tables: db.define_table('volunteer', Field('first_name', 'string', length=30, notnull=True), Field('last_name', 'string', length=30, notnull=True),

[web2py] Routing service with query args

2011-02-07 Thread Gabriel
Hi, I have this json service: app/default.py ... @service.json def create(model, fields): return dict(id=get_model_or_404(model).insert(**json.loads(fields))) and I am trying to map this: routes_in = ( ('/service/$model/create', '/app/default/call/json/create?model= $model'), ) With this

[web2py] Re: Need help setting up a composite key

2011-02-07 Thread dederocks
Hi! Check this thread: http://groups.google.com/group/web2py/browse_thread/thread/caaf68de3fbc0baf/b9812b04ac70ba8b?lnk=gstq=Multiple+constraint#b9812b04ac70ba8b In summary, you want to create a computed combined field, and require that it is unique. A bit odd, but that's what you need to be able

Re: [web2py] Updating computed fields

2011-02-07 Thread Bruno Rocha
I did it before, something like: ### rows = db(db.table).select() for row in rows: row.update_record(mycomputedfield=lambda r:function(r)) ### where function(r) is the same function I used for

Re: [web2py] Updating computed fields

2011-02-07 Thread Johann Spies
Thanks! Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything we need for life and godliness through the full knowledge of the one who called us by his own glory and excellence.

[web2py] weird slash problem

2011-02-07 Thread rāma
Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 188, in restricted exec ccode in environment File C:\web2py\applications\beta/views\default/user.html, line 136, in module TypeError: 'str' object does not support item assignment Posting this because it started

Re: [web2py] Updating computed fields

2011-02-07 Thread Bruno Rocha
I just found a better way, you can point to the defined function for compute. rows = db(db.table).select() for row in rows: row.update_record( mycomputedfield = db.mytable.mycomputefield.compute(row) ) ### I made a test now

[web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Massimo Di Pierro
If you are in mode 3 (code allowed) you can do ``{{=response.title}} ``:template On Feb 7, 12:29 am, Plumo richar...@gmail.com wrote: I also made this change to set the page title. How can I access the page title from within a wiki page? response.title is empty

[web2py] Re: Deleting a cookie

2011-02-07 Thread Massimo Di Pierro
http://msdn.microsoft.com/en-us/library/ms178195.aspx You cannot directly delete a cookie on a user's computer. However, you can direct the user's browser to delete the cookie by setting the cookie's expiration date to a past date. The next time a user makes a request to a page within the domain

[web2py] [Mysql] global name 'driver' is not defined

2011-02-07 Thread Martín Mulone
I'm trying to connect to mysql, with trunk. global name 'driver' is not defined Martin. -- Pablo Martín Mulone (mar...@tecnodoc.com.ar) http://www.tecnodoc.com.ar/ Paraná, Entre Ríos, Argentina (CP 3100). My blog: http://martin.tecnodoc.com.ar Expert4Solution Profile:

[web2py] Re: Problem with DAL and Postgres

2011-02-07 Thread Massimo Di Pierro
I am very puzzled. In gluon/dal.py there is this line: field.length = min(field.length,self._db and self._db._adapter.maxcharlength or INFINITY) can you print field.length before and field.length after this statement? Massimo On Feb 7, 3:06 am, Bernardo estem...@gmail.com wrote: Sure

[web2py] Re: password reset does not work

2011-02-07 Thread Massimo Di Pierro
Looks like you have a custom auth_user table that misses the field reset_password_key Massimo On Feb 7, 5:29 am, selecta gr...@delarue-berlin.de wrote: Traceback (most recent call last):   File /home/fkrause/Dev/web2py/gluon/restricted.py, line 188, in restricted     exec ccode in

[web2py] Re: Model with 2 fields were one field is required

2011-02-07 Thread Massimo Di Pierro
first of all start and end and sql keywords you should choose another name. I suggest db.define_table('event',Field('title'),Field('start_time'),Field('end_time')) def exclusive(form): if form.vars.start_time and form.vars.end_time: form.errors.end_time = 'you already filled start

[web2py] Re: SQLFORM and read-only references

2011-02-07 Thread Massimo Di Pierro
Should be fixed in trunk already. Try the nightly built. On Feb 7, 4:46 am, Juan Antonio juanr...@gmail.com wrote: I have db.define_table('article', Field('name'),,format='%(name)s') db.define_table('lote', Field('name'),, Field('article', db.article) db.lote.article.requires =

[web2py] Re: SQLFORM.factory bug for field type = password

2011-02-07 Thread ionel
Done. On 6 fév, 23:10, Massimo Di Pierro massimo.dipie...@gmail.com wrote: can you please open an issue in googlecode? On Feb 6, 7:06 pm, ionel ionelanton...@gmail.com wrote: Hello, In the controller I have a custom form that contains a password: form = SQLFORM.factory(Field('afield',

[web2py] Security question: cookie manipulation stealing cookies

2011-02-07 Thread devGS
I saw many explanations about web2py's built-in security, but does it have some implemented security against cookie manipulation and stealing cookies attacks? -For cases when the attacker is the user, and when the attacker is not the user. If not, can someone provide some recommendations for a

[web2py] seems like a little mistake in book

2011-02-07 Thread LightOfMooN
auth.settings.long_expiration = 3600*30 # one month maybe 3600*30*24?

[web2py] boolean in crud.read = Nice, what about crud.select

2011-02-07 Thread Richard Vézina
Hello, I am happy to see that writeable false icons have been added for boolean field in crud.read... I am wondering to know if I should expected the same for crud.select?? Now I am having the unwriteable icons in crud.read, but not in crud.select Thank you. Richard

[web2py] Re: Security question: cookie manipulation stealing cookies

2011-02-07 Thread devGS
And one more question, how to change session ID after user login? On Feb 7, 5:13 pm, devGS vitali@geniestills.com wrote: I saw many explanations about web2py's built-in security, but does it have some implemented security against cookie manipulation and stealing cookies attacks? -For cases

Re: [web2py] drop support for python 2.4?

2011-02-07 Thread Vinicius Assef
Neither did I. On Sat, Feb 5, 2011 at 10:30 AM, Vasile Ermicioi elff...@gmail.com wrote: never used python2.4

Re: [web2py] drop support for python 2.4?

2011-02-07 Thread Richard Vézina
Gohead! Richard On Mon, Feb 7, 2011 at 10:30 AM, Vinicius Assef vinicius...@gmail.comwrote: Neither did I. On Sat, Feb 5, 2011 at 10:30 AM, Vasile Ermicioi elff...@gmail.com wrote: never used python2.4

[web2py] Re: drop support for python 2.4?

2011-02-07 Thread Oleg
+1 for dropping support for python 2.4..

[web2py] Cloud hosting company

2011-02-07 Thread stargate
Does anybody know of a hosting company that will run web2py in a cloud hosting environment?

Re: [web2py] [Mysql] global name 'driver' is not defined

2011-02-07 Thread Jonathan Lundell
On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote: I'm trying to connect to mysql, with trunk. global name 'driver' is not defined On dal.py line 1462, try changing driver to self.driver.

Re: [web2py] Cloud hosting company

2011-02-07 Thread Bruno Rocha
I am running in dotcloud (but it is in beta) http://www.web2py.dotcloud.com/ http://www.web2py.dotcloud.com/also Pydra is announcing they will run web2py very soon. For now, I know only Google App Engine and Amazon ECM running well on a cloud. Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Cloud hosting company

2011-02-07 Thread contatogilson...@gmail.com
How to the plan? $$$ _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/2/7 Bruno Rocha rochacbr...@gmail.com I am running in dotcloud (but it is in beta) http://www.web2py.dotcloud.com/ http://www.web2py.dotcloud.com/also Pydra is

Re: [web2py] [Mysql] global name 'driver' is not defined

2011-02-07 Thread Martín Mulone
affirmative, this is the bug. Line 1462 . Have to be self.driver instead of driver. 2011/2/7 Jonathan Lundell jlund...@pobox.com On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote: I'm trying to connect to mysql, with trunk. global name 'driver' is not defined On dal.py line 1462, try

Re: [web2py] Routing service with query args

2011-02-07 Thread Jonathan Lundell
On Feb 6, 2011, at 4:47 PM, Gabriel wrote: Hi, I have this json service: app/default.py ... @service.json def create(model, fields): return dict(id=get_model_or_404(model).insert(**json.loads(fields))) and I am trying to map this: routes_in = ( ('/service/$model/create',

[web2py] Re: Security question: cookie manipulation stealing cookies

2011-02-07 Thread Massimo Di Pierro
We do not have a simple mechanism yet to do it. I can add it, please open an issue on google code. On Feb 7, 9:28 am, devGS vitali@geniestills.com wrote: And one more question, how to change session ID after user login? On Feb 7, 5:13 pm, devGS vitali@geniestills.com wrote: I

[web2py] Re: Cloud hosting company

2011-02-07 Thread stargate
Where is the prices on hosting? On Feb 7, 11:10 am, Bruno Rocha rochacbr...@gmail.com wrote: I am running in dotcloud (but it is in beta) http://www.web2py.dotcloud.com/  http://www.web2py.dotcloud.com/also Pydra is announcing they will run web2py very soon. For now, I know only Google

[web2py] Re: [Mysql] global name 'driver' is not defined

2011-02-07 Thread Massimo Di Pierro
oops. sorry. Will fix it tonight. On Feb 7, 10:17 am, Martín Mulone mulone.mar...@gmail.com wrote: affirmative, this is the bug. Line 1462 . Have to be self.driver instead of driver. 2011/2/7 Jonathan Lundell jlund...@pobox.com On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote: I'm

Re: [web2py] Re: Cloud hosting company

2011-02-07 Thread David J.
You can run on Rackspace cloud as well; On 2/7/11 11:32 AM, stargate wrote: Where is the prices on hosting? On Feb 7, 11:10 am, Bruno Rocharochacbr...@gmail.com wrote: I am running in dotcloud (but it is in beta) http://www.web2py.dotcloud.com/ http://www.web2py.dotcloud.com/also Pydra

[web2py] Re: Security question: cookie manipulation stealing cookies

2011-02-07 Thread devGS
Thanks for your reply, I will do so. On Feb 7, 6:31 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: We do not have a simple mechanism yet to do it. I can add it, please open an issue on google code. On Feb 7, 9:28 am, devGS vitali@geniestills.com wrote: And one more

[web2py] Re: Cloud hosting company

2011-02-07 Thread John-Kim Murphy
Deploy Web2py on Amazon elastic computing infrastructure: http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 You can get a free instance for a year: http://aws.amazon.com/free/ On Feb 8, 12:50 am, stargate kyoukh...@gmail.com wrote: Does anybody know of a hosting company that

Re: [web2py] Routing service with query args

2011-02-07 Thread Gabriel Carmona
Hi Jonathan. It was a typo. It'd be service instead of app: curl --data-urlencode 'fields={name: test}' http://localhost:8000/service/person/create; Thanks anyway. On Mon, Feb 7, 2011 at 1:21 PM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 6, 2011, at 4:47 PM, Gabriel wrote: Hi, I have

[web2py] Re: Redirect after GAE authorization.

2011-02-07 Thread howesc
i suspect there is, but i have not spent the time to make it work yet. i assume you are using google accounts on GAE for authorization?

[web2py] Re: GAE Query

2011-02-07 Thread howesc
yes you have to set your GAE app on a subdomain. but that is the *only* supported configuration that i know of. google does not allow mapping of naked domains as they call it to a GAE app.

[web2py] Re: Few general questions

2011-02-07 Thread howesc
about the sample entries: you must have some code (probably in one of your models files) that adds sample entries when an empty database is detected. not sure though without looking at the application. your view error is provided in the traceback (though perhaps cryptic). something in

[web2py] book typo

2011-02-07 Thread Richard Vézina
Hello, , is missing : db.define_table('dog', Field http://web2py.com/book/default/docstring/Field('small_image', 'upload'), # here Field http://web2py.com/book/default/docstring/Field('large_image', 'upload')) In this page : http://web2py.com/book/default/chapter/08?search=shell Search

[web2py] Re: Cloud hosting company

2011-02-07 Thread Art Zemon
Yes, we do (Hen's Teeth Network). Web2py is running great using mod_wsgi in our Cirrus plans. I have not tried to make it work in a Stratus plan, yet. See http://www.hens-teeth.net/html/hosting/ for details. For proof, visit http://web2py.hens-teeth.net/ which is an internal RD site. We have

[web2py] Re: Deleting a cookie

2011-02-07 Thread Dane
Thanks. On Feb 7, 9:28 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://msdn.microsoft.com/en-us/library/ms178195.aspx You cannot directly delete a cookie on a user's computer. However, you can direct the user's browser to delete the cookie by setting the cookie's expiration

Re: [web2py] Routing service with query args

2011-02-07 Thread Jonathan Lundell
On Feb 7, 2011, at 8:49 AM, Gabriel Carmona wrote: Hi Jonathan. It was a typo. It'd be service instead of app: curl --data-urlencode 'fields={name: test}' http://localhost:8000/service/person/create; Thanks anyway. The URL rewrite logic isn't handling the case of appending a query

Re: [web2py] Routing service with query args

2011-02-07 Thread Gabriel Carmona
I'm using Version 1.91.6 (2011-01-03 17:55:14) On Mon, Feb 7, 2011 at 2:50 PM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 7, 2011, at 8:49 AM, Gabriel Carmona wrote: Hi Jonathan. It was a typo. It'd be service instead of app: curl --data-urlencode 'fields={name: test}'

[web2py] Re: Problem with DAL and Postgres

2011-02-07 Thread ron_m
Why is this line Field('password', 'password', '''length=512, ''', readable=False, label='Password'), should be Field('password', 'password', length=512, readable=False, label='Password'),

[web2py] Re: Django vs web2py pain points

2011-02-07 Thread Luther Goh Lu Feng
Thanks for the feedback everyone. I am happy to hear balanced view points. For the record, we have decided to go along with django for now, doing paired programming. My current impression of django is that it does seem much more verbose than web2py. I also miss the fact that I do not need to

[web2py] Re: Nice Error Screens

2011-02-07 Thread Tito Garrido
Nobody? :-/ On Sat, Feb 5, 2011 at 12:08 PM, Tito Garrido titogarr...@gmail.com wrote: Hi Folks, Is there a way to configure the error ticket screen to have a good looking? Today it just appears a white screen with the ticket number and a link... also, can I change the invalid function

Re: [web2py] Routing service with query args

2011-02-07 Thread Jonathan Lundell
On Feb 7, 2011, at 10:02 AM, Gabriel Carmona wrote: I'm using Version 1.91.6 (2011-01-03 17:55:14) Thanks. I've got a working patch that hopefully we'll have time to get into 1.92. In the current version, you'll need to avoid rewrites that add a query string; that's broken. On Mon, Feb

[web2py] Overriding the Default verify_email

2011-02-07 Thread David J.
I was wondering how I can execute a custom action on verify_email I have an external system that I want to notify once a user has confirmed their email address; Thanks.

[web2py] Re: Deleting a cookie

2011-02-07 Thread Dane
Ok, now I'm using this code: for r in [request, response]: if r.cookies.has_key('user'): r.cookies['user']['expires'] = datetime.datetime.strftime(datetime.datetime(2011,1,1,0,0), %a, %d-%b- %Y %H:%M:%S GMT) print 'remove %s user cookie' % ('request' if r ==

Re: [web2py] Re: Django vs web2py pain points

2011-02-07 Thread Albert Abril
@Luther Goh Lu Feng : Keep us informed. ;) On Mon, Feb 7, 2011 at 7:37 PM, Luther Goh Lu Feng elf...@yahoo.com wrote: Thanks for the feedback everyone. I am happy to hear balanced view points. For the record, we have decided to go along with django for now, doing paired programming. My

Re: [web2py] Re: Nice Error Screens

2011-02-07 Thread Bruno Rocha
You can define a better HTML for error ticket message in routes.py: http://code.google.com/p/web2py/source/browse/routes.example.py#73 2011/2/7 Tito Garrido titogarr...@gmail.com Nobody? :-/ On Sat, Feb 5, 2011 at 12:08 PM, Tito Garrido titogarr...@gmail.comwrote: Hi Folks, Is there a

[web2py] Re: Django vs web2py pain points

2011-02-07 Thread Luther Goh Lu Feng
Actually, I also have a friend using Rails who wants to do pair programming with me so that both of us can do a thorough and objective comparison. Need to squeeze out time for that . There are too many things to learn in web and mobile development . Of course, I will still continue to use web2py

[web2py] Re: Cloud hosting company

2011-02-07 Thread Anthony
On Monday, February 7, 2011 11:32:28 AM UTC-5, stargate wrote: Where is the prices on hosting? They're still in beta and haven't finalized their pricing yet: http://docs.dotcloud.com/static/faq/#what-s-your-pricing Other new options specifically for Python/WSGI hosting still in beta are:

Re: [web2py] Re: Problem with DAL and Postgres

2011-02-07 Thread Bernardo Botella Corbí
Dear Massimo, I've been busy today. I'll post it as soon as possible. thanks for your help, Bernardo 2011/2/7 Massimo Di Pierro massimo.dipie...@gmail.com I am very puzzled. In gluon/dal.py there is this line: field.length = min(field.length,self._db and self._db._adapter.maxcharlength

[web2py] Upload file default

2011-02-07 Thread Bernardo
Dear all, is there a way to use a default file in an upload field? Something like: Field('whatever', 'upload', 'default=...') Which one is the best way to do this? thanks a lot for your help, Bernardo

[web2py] Google Chrome 9 crashes

2011-02-07 Thread Bernd Rothert
Today all of a sudden Google Chrome (9.0.597.84-r72991) hung loading a simple web2py page. It couldn't even render the welcome page any more. Even a blank new profile didn't work. It just hung and reported a crashed web page after a while (the sad dialog). Then I tried chromium - same behaviour,

[web2py] Re: Upload file default

2011-02-07 Thread Massimo Di Pierro
If you have an uploaded file (with name given by web2py) you can set default='' its filename without path. Did you try it? On Feb 7, 1:40 pm, Bernardo estem...@gmail.com wrote: Dear all, is there a way to use a default file in an upload field? Something like: Field('whatever', 'upload',

[web2py] Re: Google Chrome 9 crashes

2011-02-07 Thread Massimo Di Pierro
I am using 9.0.597.84 beta on Mac with WebGL on and everything works for me. Which os are you using? Massimo On Feb 7, 2:40 pm, Bernd Rothert roth...@googlemail.com wrote: Today all of a sudden Google Chrome (9.0.597.84-r72991) hung loading a simple web2py page. It couldn't even render the

[web2py] onaccept

2011-02-07 Thread David J.
Is there an example of how to use onaccept handler? I tried auth.settings.verify_email_onaccept = lambda f:_create_account(f) def _create_account(f): session.account = f return I tried on my index page to display {{= session.account }} But I dont think it worked. Thanks.

[web2py] Re: Google Chrome 9 crashes

2011-02-07 Thread Bernd Rothert
On 7 Feb., 21:50, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I am using 9.0.597.84 beta on Mac with WebGL on and everything works for me. Which os are you using? It's Chrome on Ubuntu 10.10 (Maverick Meerkat)! Bug reports refer to Windows XP as well. Maybe it depends on the graphics

[web2py] Re: Few general questions

2011-02-07 Thread devGS
Thank you! The sample table is populated by db_wizard_populate.py module. For those who had similar issue: comment all the lines in the above file on deployment. Your pointed me to the line that causes the view error: in user.html- the default one, there is a line with

[web2py] Re: GAE Query

2011-02-07 Thread bee
So if using GAE on a subdomain for a homepage would use redirect users to the subdomain? I think i am even more confused now1 On Feb 7, 4:57 pm, howesc how...@umich.edu wrote: yes you have to set your GAE app on a subdomain.  but that is the *only* supported configuration that i know of.  

[web2py] Re: Can anyone recommend a good python forum in google groups or elsewhere?

2011-02-07 Thread Plumo
http://stackoverflow.com/questions/tagged/python If you are after a forum written in Python: http://pyforum.org/

[web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Plumo
yes mode 3, but as mentioned response.title is empty (None). Where do I need to define response.title for the plugin to use it? I tried models/menu.py and controllers/plugin_wiki.py without success. views/layout.html is able to use response.title.

[web2py] Re: GAE timeout when wsgihandler.py is missing

2011-02-07 Thread Charles Law
I went to remove wsgihandler.py to check the logs and reloaded the page, but the timeout issue wasn't showing up. I made some changes to the html files to make sure that the changes made it online, and it loaded quickly. Maybe the issue was on the GAE side? Either way, it looks like it's gone.

[web2py] Oh, Reddit :(

2011-02-07 Thread Anthony
http://www.reddit.com/r/Python/comments/fh4by/special_cases_arent_special_enough_to_break_the/

Re: [web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Bruno Rocha
You can do that in meta-code page, create a wiki page called meta-code, this code will be executed before the execution of any page. 2011/2/7 Plumo richar...@gmail.com yes mode 3, but as mentioned response.title is empty (None). Where do I need to define response.title for the plugin to use

[web2py] EuroPython in Florence

2011-02-07 Thread carlo
Massimo, any plans to attend?

[web2py] Re: Oh, Reddit :(

2011-02-07 Thread villas
For those of us who cannot understand the point of this please have an indication as to the 'rules' are that are being broken? Just curious. If the answer would be too verbose and technical, please just put a note saying something like 'for advanced pythonistas only'. Thanks. D

[web2py] Re: EuroPython in Florence

2011-02-07 Thread Massimo Di Pierro
I cannot make, I have another conference at the same time. On Feb 7, 4:50 pm, carlo syseng...@gmail.com wrote: Massimo, any plans to attend?

[web2py] Re: EuroPython in Florence

2011-02-07 Thread Massimo Di Pierro
PS. I would be great is somebody else could make it and give a talk. On Feb 7, 4:50 pm, carlo syseng...@gmail.com wrote: Massimo, any plans to attend?

[web2py] PyPy faster than C ...

2011-02-07 Thread elffikk
I think this is cool http://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-carefully-crafted.html

Re: [web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Plumo
that would require an additional database request and replicating the logic from controllers/plugin_wiki.py - is there no way to reuse the data from the controller?

[web2py] Re: book typo

2011-02-07 Thread villas
Ok I did it. Thanks. D On Feb 7, 5:17 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, , is missing : db.define_table('dog',    Field http://web2py.com/book/default/docstring/Field('small_image', 'upload'), # here    Field

[web2py] Re: Overriding the Default verify_email

2011-02-07 Thread mattynoce
here's what i do: in db.py: auth.settings.verify_email_onaccept = lambda form: __afterVerify(form) def __afterVerify(form): # any custom actions you want, including calling funtions in either the model or the controller # in my case, i log in my user. logInUser(db.auth_user[form.id])

[web2py] Re: seems like a little mistake in book

2011-02-07 Thread villas
Yes, I believe you're right, so I've changed it. Thanks, D On Feb 7, 3:14 pm, LightOfMooN vladsale...@yandex.ru wrote: auth.settings.long_expiration = 3600*30 # one month maybe 3600*30*24?

[web2py] Re: Oh, Reddit :(

2011-02-07 Thread Massimo Di Pierro
No rule is being broken. The guy just does not understand what the code is for. I posted my response there. On Feb 7, 5:05 pm, villas villa...@gmail.com wrote: For those of us who cannot understand the point of this please have an indication as to the 'rules' are that are being broken? Just

[web2py] Trying to use a plugin_wiki page as default for a web2py site

2011-02-07 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm trying to use plugin_wiki as my first approach to having a functional web2py site and using it to publish easily some info. I tried also Instant Press but it doesn't installed because a time out error a got no feedback on the Spanish or

Re: [web2py] Trying to use a plugin_wiki page as default for a web2py site

2011-02-07 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi again, I have an error: El 07/02/11 19:58, Offray Vladimir Luna Cárdenas escribió: [] --- default_application = 'welcome'# ordinarily set in base routes.py default_controller = 'plugin_wiki' # ordinarily set in app-specific

[web2py] Question about 0.py

2011-02-07 Thread devGS
I saw that object 'settings' is defined at 0.py, but I didn't see any usage of 'settings'. For instance, in db.py, instead of reusing the 0.py's 'settings', the stings are redefined, even though realize about some modules that use 'settings' instead of db.py set variables. Can this point be

[web2py] Database data in layout?

2011-02-07 Thread pbreit
How can I insert data from my controller to layout.html? From what I can tell, layout.html does not have access to the dict returned from a controller. Do I need to or can I put it in globals, response, flash? It seems like a block could work except that it requires that the {{include}} be

[web2py] Re: Question about 0.py

2011-02-07 Thread Massimo Di Pierro
0.py is not a web2py file. It is created by the wizard. If a variable is not used is a bug in the wizard. Massimo On Feb 7, 7:21 pm, devGS vitali@geniestills.com wrote: I saw that object 'settings' is defined at 0.py, but I didn't see any usage of 'settings'. For instance, in db.py,

Re: [web2py] Re: Oh, Reddit :(

2011-02-07 Thread Lars Hansson
But what exactly is his complaint? Would it have hurt for him to actually, you know, explain? --- Lars

[web2py] Re: Oh, Reddit :(

2011-02-07 Thread Vidul Petrov
It's a nice evidence, that Web2py does matter. Otherwise the idiots won't care to bark against this splendid technology. On Feb 8, 12:15 am, Anthony abasta...@gmail.com wrote: http://www.reddit.com/r/Python/comments/fh4by/special_cases_arent_spe...

[web2py] Re: Database data in layout?

2011-02-07 Thread pbreit
Any ideas?

[web2py] Re: Database data in layout?

2011-02-07 Thread pbreit
Yet again, I am mistaken. It does indeed look like templates all get jammed together before the code is executed. I was getting some unexpected errors which caused me to wonder.

  1   2   >