[web2py] running in troubles with w2p_run

2013-06-08 Thread Jorge Araya Navarro
Hello, I have this problem when I want to start web2py with w2p_run command: jorge [~] ~> w2p_run WARNING:root:Unable to import plural rules: No module named plural_rules Traceback (most recent call last): File "/usr/bin/w2p_run", line 5, in pkg_resources.run_script( 'web2py==2.5.1-stable-

[web2py] exception when trying to run w2p_run command!

2013-06-08 Thread Jorge Araya Navarro
Hello, I'm new to web2py, I installed the stable version on my system and ran w2p_run but something goes wrong: jorge [~] ~> w2p_run WARNING:root:Unable to import plural rules: No module named plural_rules Traceback (most recent call last): File "/usr/bin/w2p_run", line 5, in pkg_resource

[web2py] help with examples

2013-06-08 Thread Herman
Hello, I am new to Web2py and right now i am learning basics of it.I am bit confused that how python code is embeded in HTML.The database related programming and all other examples seems confusing to me.Can someone provide me some links or something to get more understanding of these examples.

[web2py] Re: exception when trying to run w2p_run command!

2013-06-08 Thread Niphlod
doesn't the standard ./web2py.py work ? who prepared w2p_run, w2p_clone and w2p_apps left in a hurry and no docs. sincerely, right now all three of them can safely be treated as non-existant. On Saturday, June 8, 2013 7:42:54 AM UTC+2, Jorge Araya Navarro wrote: > > Hello, I'm new to web2py, I i

Re: [web2py] Re: where is the json data when using GWT's RequestBuilder() ?

2013-06-08 Thread Niphlod
independantly from the headers, whatever is sent is inside request.body.read() . if it's empty, you GWT isn't sending any data . On Friday, June 7, 2013 10:54:38 PM UTC+2, Carl wrote: > > thanks. both request.vars and response.body.read() are empty. > > I'm calling my function: http://127.0.0.1:8

[web2py] Re: web2py_component with helper A(cid=request.cid) and LOAD()

2013-06-08 Thread Niphlod
it works if you remove the mask call. given that you don't have the mask plugin in the app, it goes into exception and all code after that doesn't get executed. On Friday, June 7, 2013 10:33:02 PM UTC+2, Charles Levesque wrote: > > It's working on your side? I'll be damned =P. I'll download anot

[web2py] Re: changing class of a custom form not working

2013-06-08 Thread Niphlod
any css rule is hardly a bug. it's just the css included in the scaffolding app. you can use your own or override it with your css, making sure that is appended AFTER web2py.css. On Friday, June 7, 2013 10:09:33 PM UTC+2, André Kablu wrote: > > found, in web2py.css there is a code: > > input[typ

[web2py] Question on EMTE and websockets

2013-06-08 Thread george3825
Hello, I have been trying to get the EMTE engine up and running. So far I have gotten the matchingserver, robottrader, and the log parsers to work and even into a MySQL DB. I have been stuck on getting the trading data to display in a browser. When any browser (IE, FF, Chrome) connects to the

[web2py] Re: Passing Smartgrid vars to Factory

2013-06-08 Thread Alex Glaros
Any one able to create a small working example? If the concept is feasible and a sound programming practice, I will post a tutorial on it on Slices if I get help with this. thanks, Alex On Friday, June 7, 2013 10:48:40 AM UTC-7, Alex Glaros wrote: > > Is it good programming, and is there a way

[web2py] web2canvas looks nice

2013-06-08 Thread Massimo Di Pierro
http://web2canvas.agenciax4.com.br/ -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://gr

[web2py] Re: exception when trying to run w2p_run command!

2013-06-08 Thread Massimo Di Pierro
w2p_run is not the standard way to start web2py. On Saturday, 8 June 2013 08:43:47 UTC-5, Niphlod wrote: > > doesn't the standard ./web2py.py work. In fact it is confusing and the > file should be removed. > who prepared w2p_run, w2p_clone and w2p_apps left in a hurry and no docs. > sinc

[web2py] Automatically creating entry in another table when an entry is created in db.auth_user

2013-06-08 Thread Jim T.
Hi. I have a table like this: db.define_table('table1', Field(userid, ...) ... other fields ... auth.signature ) I'd like a new row to be created in table1 with the 'userid' set to the new user's 'id' when a new user is created. Is there a way to implement this in the models? -- --- You r

[web2py] Re: web2py in education

2013-06-08 Thread Alan Etkin
> > Do you use web2py in a class? > I did What is your name? > Alan Etkin What is your position (teacher, student, etc.)? > student What is the instructor name (if not you)? > Mariano Reingart > How was web2py uses (to do a project, as teaching tool, etc.)? > For teaching Python and w

[web2py] Re: MongoDB and list:reference?

2013-06-08 Thread Alan Etkin
I created an issue so we can fix this http://code.google.com/p/web2py/issues/detail?id=1519 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubsc

[web2py] authorization - wrong email not validated

2013-06-08 Thread lesssugar
I use the piece of code below to generate a login form: def login(): auth.settings.formstyle = 'divs' login_form = auth.login(next=URL('default', 'test')) return dict(login_form=login_form) The form is called in the view and works great. I can login using correct data. If the p

[web2py] Re: changing class of a custom form not working

2013-06-08 Thread Anthony
On the other hand, maybe we could make it so web2py.css doesn't prevent usage of standard Bootstrap classes: https://groups.google.com/d/msg/web2py-developers/WaHw-83DT1w/zbs2fh-tWRoJ Anthony On Saturday, June 8, 2013 9:48:50 AM UTC-4, Niphlod wrote: > > any css rule is hardly a bug. it's just

[web2py] Re: help with examples

2013-06-08 Thread Anthony
There are a number of resources linked from the website: http://www.web2py.com/init/default/documentation, including http://killer-web-development.com/ and http://www.youtube.com/playlist?list=PL5E2E223FE3777851. If that doesn't do it for you, come back with some specific questions. Anthony O

[web2py] Re: Automatically creating entry in another table when an entry is created in db.auth_user

2013-06-08 Thread Anthony
You can use an _after_insert callback: http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks. Anthony On Saturday, June 8, 2013 10:37:37 AM UTC-4, Jim T. wrote: > > Hi. I have a table like this: > > db.define_table('table1', > > Field('userid', ...), > > ... other fields ...,

[web2py] Re: authorization - wrong email not validated

2013-06-08 Thread Anthony
Using your code, with either a wrong password or a wrong email, I get a flash message saying "Invalid login". On Saturday, June 8, 2013 11:46:49 AM UTC-4, lesssugar wrote: > > I use the piece of code below to generate a login form: > > def login(): > auth.settings.formstyle = 'divs' > >

[web2py] mod_rewrite problems on Apache

2013-06-08 Thread thinkwell
Hello everyone, I'm trying to rewrite URLs because I can't install web2py on Apache root. I'm using web2py 2.0.9 apps on CentOS 5 & 6 servers. I've fighting this thing for hours... I'm open to using routes.py or getting correct apache syntax. Anything to get a solution. Below is my apache file

[web2py] Re: Automatically creating entry in another table when an entry is created in db.auth_user

2013-06-08 Thread Jim T.
Thank you very much! On Saturday, June 8, 2013 12:33:08 PM UTC-5, Anthony wrote: > > You can use an _after_insert callback: > http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks. > > Anthony > > On Saturday, June 8, 2013 10:37:37 AM UTC-4, Jim T. wrote: >> >> Hi. I have a tab

Re: [web2py] web2py in education

2013-06-08 Thread Ovidio Marinho
Hello Massimo, Use web2py to teach users use the frame and develop their applications. My name is Ovidio Marinho I am a web developer Have academic and professional projects I will make a new class on 01/07/2013 http://stoodos.com/c/web2py/478?s_v=2&utm_expid=43885913-12 language course Portuguese

[web2py] Re: authorization - wrong email not validated

2013-06-08 Thread lesssugar
Well, I haven't had this in my layout.html: {{=response.flash or ''}} I just didn't need the flash messages until you wrote "Invalid login" error is displayed with a flash.. On Saturday, June 8, 2013 7:37:16 PM UTC+2, Anthony wrote: > > Using your code, with either a wrong password or a wrong

[web2py] Re: authorization - wrong email not validated

2013-06-08 Thread Anthony
What error message did you get with a correct password and incorrect email -- because I get the flash message in that case as well? Anthony On Saturday, June 8, 2013 4:04:39 PM UTC-4, lesssugar wrote: > > Well, I haven't had this in my layout.html: > > {{=response.flash or ''}} > > I just didn't

[web2py] Re: authorization - wrong email not validated

2013-06-08 Thread lesssugar
The error messages work now, just the stupid mstake of mine which I covered above. On Saturday, June 8, 2013 10:08:08 PM UTC+2, Anthony wrote: > > What error message did you get with a correct password and incorrect email > -- because I get the flash message in that case as well? > > Anthony > >

[web2py] Re: web2canvas looks nice

2013-06-08 Thread samuel bonilla
wowww. nice LOL El sábado, 8 de junio de 2013 09:11:58 UTC-5, Massimo Di Pierro escribió: > > http://web2canvas.agenciax4.com.br/ > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving

[web2py] MENU helper and bootstrap

2013-06-08 Thread Tim Richardson
I've manually built a bootstrap menu for use in SQLFORM.grid. Apart from having to make the links column wider with CSS, it works well. "manually" means assembled with DIV, UL, LI, A and B helpers. I used data-toggle which means a click to expand the menu and a click to close it again, which is

[web2py] Re: MENU helper and bootstrap

2013-06-08 Thread Tim Richardson
Oh, the menu seems to get reborn in layout.html {{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}} so I'll try copying that approach -- --- You received this message because you are subscribed to

[web2py] Re: MongoDB and list:reference?

2013-06-08 Thread Massimo Di Pierro
Thanks Alan. On Saturday, 8 June 2013 10:22:35 UTC-5, Alan Etkin wrote: > > I created an issue so we can fix this > > http://code.google.com/p/web2py/issues/detail?id=1519 > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe

[web2py] Re: changing class of a custom form not working

2013-06-08 Thread Massimo Di Pierro
This the code currently in web2py.css. input[type=text],input[type=password],select{width:300px; margin-right:5px} How do you propose we change it? On Saturday, 8 June 2013 12:17:21 UTC-5, Anthony wrote: > > On the other hand, maybe we could make it so web2py.css doesn't prevent > usage of stand

[web2py] Re: web2canvas looks nice

2013-06-08 Thread Alan Etkin
> > wowww. nice LOL > Do you like it or it makes you laugh? (or both?) Both is fine, although rare. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [web2py] web2py in education

2013-06-08 Thread Vinicius Assef
Answers follows inline. On Fri, Jun 7, 2013 at 11:34 AM, Massimo Di Pierro wrote: > Can you please help me > > Do you use web2py in a class? Not yet, but I'll in a vacation course. > What is your name? Vinicius Assef > What is your position (teacher, student, etc.)? Teacher > What is the instr

Re: [web2py] Re: web2canvas looks nice

2013-06-08 Thread samuel bonilla
Alan solo me gusta la aplicación, me parece interesante. El 09/06/2013 08:32, "Alan Etkin" escribió: > wowww. nice LOL >> > > Do you like it or it makes you laugh? (or both?) Both is fine, although > rare. > > -- > > --- > You received this message because you are subscribed to a

Re: [web2py] Re: help with examples

2013-06-08 Thread steve . van . christie
For examples u can learn it from web2py appliances too. Sent from my BlackBerry® powered by Sinyal Kuat INDOSAT -Original Message- From: Anthony Sender: web2py@googlegroups.com Date: Sat, 8 Jun 2013 10:29:37 To: Reply-To: web2py@googlegroups.com Subject: [web2py] Re: help with examples