Re: [web2py] MARKMIN clarification

2011-12-30 Thread Albert Abril
I can't test it now, but try to put 4 spaces at the end of the line to force a newline. 2011/12/30 lyn2py lyn...@gmail.com Does MARKMIN have issues with processing newlines? Because I can't use formatting here, everything looks like the same text, but in MARKMIN the formatting is ok, only the

Re: [web2py] Re: Web2py

2011-12-30 Thread Miroslav Gojic
The problem is accessing to file system. I use Kubuntu 11.10 and WeB2Py 1.99.4 from Debina repository. After some time I get to my web2py server work from Console sudo python web2py/web2py.py -a 'password' -i '0.0.0.0' -p '8000' and my sudo pass and it is working I tray to make autostart routine

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thanks Albert, just tried your suggestion, but it didn't create the newlines br. Also, because the intended input will be like a forum post (like bbcode), I doubt I would like MARKMIN to force newlines with spaces (has to be user-friendly, right?) Unless of course MARKMIN is not meant for this

[web2py] Re: Optimizing web2py app for GAE

2011-12-30 Thread Joseph Jude
Let us say I have the below code in db.py under models define_table(db, ) If I change that to, if settings.migrate: define_table(db,...) rest of the queries based on this table doesn't work. I want to skip the definition altogether if the table is already present. Reason: I assume that

[web2py] customized Web2py registration

2011-12-30 Thread ganesh waghmare
Hi, I am new to web2py and I need help... Thanks in advance for your help.!! I want to make application which is having one admin(super user) account.. I want to restrict 'only admin can register user'. So that once Admin logins to app, he will see different menus like 'Home', 'Setting', and

[web2py] Re: redirecting python console output to web browser page

2011-12-30 Thread Alan Etkin
I am not sure if web2py has a feature for that. You can still redirect output to a filelike object during controller processing and on exit return the control to the original handler. That way you could extract the output from the file object to append it to the web2py response Pseudo-code: on

Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
Thanks Anthony. The books seems to be not up-to-date: TypeError: __init__() got multiple values for keyword argument 'signals' I will try the slice 124, but it looks old too. Best Regards, Thomas On Thu, Dec 29, 2011 at 11:53 PM, Anthony abasta...@gmail.com wrote: See Multiple login

Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
Another problem with the slices: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File /windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/restricted.py, line 204, in restricted exec ccode in environment File

[web2py] Re: customized Web2py registration

2011-12-30 Thread Alan Etkin
I'd create a custom form with new user fields, decorate it with @auth.requires_membership(admin group), and on validation, use the auth.get_or_create_user() function passing the collected form data. I have not tested it, and maybe there is a simpler way. I think that there would be good that

Re: [web2py] Re: Janrain Engage OR normal register/login

2011-12-30 Thread Thomas Dall'Agnese
It works if we remove the first parameter (request) in the ExtendedLoginForm: auth.settings.login_form = ExtendedLoginForm(auth, other_form, signals=['token'])

[web2py] small display problem when using wizard

2011-12-30 Thread Khalil KHAMLICHI
please refer to attachement, I was on firefox 9.0.1 attachment: display_problm_web2py_wizard.png

[web2py] Re: small display problem when using wizard

2011-12-30 Thread Paolo Caruccio
fixed in trunk http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a

[web2py] Re: customized Web2py registration

2011-12-30 Thread Anthony
On Friday, December 30, 2011 7:26:31 AM UTC-5, Alan Etkin wrote: I'd create a custom form with new user fields, decorate it with @auth.requires_membership(admin group), and on validation, use the auth.get_or_create_user() function passing the collected form data. I have not tested it, and

Re: [web2py] Re: small display problem when using wizard

2011-12-30 Thread Khalil KHAMLICHI
excellent bug fixing time : 7 minutes. Thanks. On Fri, Dec 30, 2011 at 3:26 PM, Paolo Caruccio paolo.carucci...@gmail.comwrote: fixed in trunk http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a

[web2py] Re: MARKMIN clarification

2011-12-30 Thread Massimo Di Pierro
Two new lines in markmin translate into an end of paragraph in html, a single new line is interpreted as a continuation of the same paragraph. On Dec 30, 1:51 am, lyn2py lyn...@gmail.com wrote: Does MARKMIN have issues with processing newlines? Because I can't use formatting here, everything

[web2py] Re: Optimizing web2py app for GAE

2011-12-30 Thread Anthony
On Friday, December 30, 2011 4:22:29 AM UTC-5, Joseph Jude wrote: Let us say I have the below code in db.py under models define_table(db, ) If I change that to, if settings.migrate: define_table(db,...) rest of the queries based on this table doesn't work. I want to skip the

[web2py] Re: Optimizing web2py app for GAE

2011-12-30 Thread Massimo Di Pierro
You have to do: db.define_table('name',...,migrate=settings.migrate) The table has to be defined because web2py needs to know how to map SQL types into web2py types. The migrate argument, when set to False, will prevent the CREATE TABLE. Anyway, web2py does not CREATE TABLE if it exists already.

Re: [web2py] Re: small display problem when using wizard

2011-12-30 Thread Anthony
It was actually fixed a couple weeks ago (for the second time). :-) On Friday, December 30, 2011 11:20:34 AM UTC-5, Khalil KHAMLICHI wrote: excellent bug fixing time : 7 minutes. Thanks. On Fri, Dec 30, 2011 at 3:26 PM, Paolo Caruccio paolo.ca...@gmail.comwrote: fixed in trunk

[web2py] Re: redirecting python console output to web browser page

2011-12-30 Thread Massimo Di Pierro
There are two ways around it: - hopefully the apt module can be configured to send output to a file - if not, use the python subprocess module to run the code is a separate process. The popen function has the ability to capture the output. On Dec 29, 9:21 pm, blackshirt fatkhulmusli...@gmail.com

[web2py] Re: Optimizing web2py app for GAE

2011-12-30 Thread Anthony
On Friday, December 30, 2011 11:25:51 AM UTC-5, Massimo Di Pierro wrote: You have to do: db.define_table('name',...,migrate=settings.migrate) The table has to be defined because web2py needs to know how to map SQL types into web2py types. The migrate argument, when set to False, will

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thank you Massimo. Happy New Year's Eve :) After fiddling with markmin for hours and reading http://web2py.com/examples/static/markmin.html a few times, I made a suggestion I hope you will consider including: http://code.google.com/p/web2py/issues/detail?id=588 I don't know where I might be able

[web2py] update_or_insert doesn't always return the corresponding row id

2011-12-30 Thread olivier
The insert method returns the id of the inserted row. The update_or_insert method returns the id of the inserted row, but returns None in case of an update... Why is it so? I have a case in which I want to update_or_insert and then further update the corresponding row (to track the status of a

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thanks Massimo. Happy New Year's Eve :) I'm not sure what considerations went into this, that a single new line is not given a br at the end. (it can still be interpreted as a continuation of the same paragraph, regardless) I hope you will consider adding this feature (each new line gets a br in

[web2py] SQLFORM.smartgrid i18n

2011-12-30 Thread Alexandre Andrade
I cant found a way to translate the Submit button and 'Check to delete' using smartgrid. crud.settings doenst work. Any tips? -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

[web2py] Re: SQLFORM.smartgrid i18n

2011-12-30 Thread Massimo Di Pierro
Please open a ticket. Indeed this option is missing. On Dec 30, 12:13 pm, Alexandre Andrade alexandrema...@gmail.com wrote: I cant found a way to translate the Submit button and 'Check to delete' using smartgrid. crud.settings doenst work. Any tips? -- Atenciosamente Alexandre

[web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Ross Peoples
Was recently informed of a problem with plugin_ckeditor that I have been trying to solve for a while now, but I think it may actually be a web2py bug. First of all, here is the widget: def widget(self, field, value, **attributes): To be used with db.table.field.widget to set

Re: [web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Bruno Rocha
I got the same problem, I think I solved it (but I cant remember how) it is working here: http://labs.blouweb.com/movuca3/article/show/3/flying-spaguetti-monster (you can register/login to test) I am using your plugin in comments and also in article creator. The source is in github. On Fri, Dec

Re: [web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Ross Peoples
Thanks Bruno! To solve it, you used CAT() instead of returning a list. I have updated my code and tested. Thanks again for the help!

[web2py] log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
I've been using same log in module with web2pyslices for a long time and it works perfectly, but recently, I got log in issue after I upgrade to 1.99.4(I used to work well on 1.91.6), when you register a new user then log off, when you log in again, there are error information liketype

[web2py] Re: log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
you can download source code from http://www.web2pyslices.com/faq and test on 1.99.4

Re: [web2py] Re: log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Bruno Rocha
I did not updated the current web2pyslices website because I am developing a new one based on my new CMS. recently the registration_id field is now required by Auth but your table does not have it. Simply add to your auth_user table a new field called registration_id, you can do using

[web2py] Re: log in issue with client tools, Mr freeze or anyone can help?

2011-12-30 Thread Frank
I will do it thank you. On Dec 31, 9:15 am, Bruno Rocha rochacbr...@gmail.com wrote: I did not updated the current web2pyslices website because I am developing a new one based on my new CMS. recently the registration_id field is now required by Auth but your table does not have it. Simply

[web2py] appadmin when routing domains

2011-12-30 Thread Plumo
I am using routers for multiple domains like this: routers = dict( BASE = dict( domains = { 'domain1' : 'init', 'domain2' : 'admin', }, ), ) Problem is when accessing domain1/appadmin it redirects me to domain1/admin to login, which does not exist. That app

[web2py] Re: MySql table already exists error

2011-12-30 Thread Thomas Dall'Agnese
But if we change the table definition, for example we add one field, it will not be updated then, isn't it? How can we migrate a MySQL table?

[web2py] Re: MySql table already exists error

2011-12-30 Thread Massimo Di Pierro
There are various scenarios: 1) the table exist in db but were not created by web2py run at least once with migrate=True,fake_migrate=True 2) the table exist in db and where created by web2py (or you run fake_migrate once) it is ok to run with migrate=False 3) web2py is aware of the tables

Re: [web2py] Re: MySql table already exists error

2011-12-30 Thread Thomas Dall'Agnese
Indeed, I am talking about (3), and in that case, running with migrate=True raises an error (table already exists). The table had been created by web2py so of course it exists. In case (3) should I also have fake_migrate=True? On Sat, Dec 31, 2011 at 12:58 PM, Massimo Di Pierro

[web2py] Re: MySql table already exists error

2011-12-30 Thread Massimo Di Pierro
Not quote. First, your model must exactly describe what is in the db. Then you set fake_migrate=True, this will create the metadata. Then you set fake_migrate=False (or remove it) and migrate=True. Not you can change the model and web2py will perform the ALTER TABLE. If web2py does not know what

[web2py] Re: MySql table already exists error

2011-12-30 Thread Thomas Dall'Agnese
I see, thanks for your help! Cheers, Thomas

[web2py] Error creating tables on a MySQL database on DotCloud?

2011-12-30 Thread Thomas Dall'Agnese
Hi, After having errors in PostgreSQL, I moved to MySQL and also got errors. With MySQL, I can't create some tables (but some tables worked!). Error: Traceback (most recent call last): File /home/dotcloud/current/gluon/restricted.py, line 204, in restricted exec ccode in environment

[web2py] Re: Optimizing web2py app for GAE

2011-12-30 Thread dlypka
Perhaps these links will help: http://groups.google.com/group/google-appengine/browse_thread/thread/21478bd9185dcc32/f61b532da5c46588?lnk=gstq=index+reads#f61b532da5c46588

[web2py] Re: Deployment problem on dotcloud with PostgreSQL

2011-12-30 Thread Thomas Dall'Agnese
Sent to your DePaul e-mail address. I am looking forward to a solution to that problem as MySQL doesn't work neither on DotCloud (error creating a table, see other post).