[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-timestamp.2013.06.06.15.39.19', 'w2p_run')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 505, 
inrun_script
self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1245, 
inrun_script
execfile(script_filename, namespace, namespace)
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/EGG-INFO/scripts/w2p_run"
, line 17, in 
import gluon.widget
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/widget.py"
, line 25, in 
import main
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/main.py"
, line 120, in 
raise RuntimeError("Cannot determine web2py version")
RuntimeError: Cannot determine web2py version
jorge [~] ~> 



any help? :)

-- 

--- 
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://groups.google.com/groups/opt_out.




[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_resources.run_script(
'web2py==2.5.1-stable-timestamp.2013.06.06.15.39.19', 'w2p_run')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 505, 
inrun_script
self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1245, 
inrun_script
execfile(script_filename, namespace, namespace)
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/EGG-INFO/scripts/w2p_run"
, line 17, in 
import gluon.widget
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/widget.py"
, line 25, in 
import main
  File 
"/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/main.py"
, line 120, in 
raise RuntimeError("Cannot determine web2py version")
RuntimeError: Cannot determine web2py version
jorge [~] ~> 

So, I cannot get web2py running :(, any help?



-- 

--- 
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://groups.google.com/groups/opt_out.




[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.
Thanks.

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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_resources.run_script(
> 'web2py==2.5.1-stable-timestamp.2013.06.06.15.39.19', 'w2p_run')
>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 505, 
> inrun_script
> self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1245, 
> inrun_script
> execfile(script_filename, namespace, namespace)
>   File 
> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/EGG-INFO/scripts/w2p_run"
> , line 17, in 
> import gluon.widget
>   File 
> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/widget.py"
> , line 25, in 
> import main
>   File 
> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/main.py"
> , line 120, in 
> raise RuntimeError("Cannot determine web2py version")
> RuntimeError: Cannot determine web2py version
> jorge [~] ~> 
>
> So, I cannot get web2py running :(, any help?
>
>
>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




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:8000/init/default/call.jsp
>
> I think it must be something in my Java GWT app that's not setting 
> something for Web2py to identify that there is json data.
>
>
>
> On 7 June 2013 20:16, Niphlod > wrote:
>
>> if you're using recent web2py releases, that are able to parse POST vars 
>> encoded in json, you should have them in request.vars as usual. Otherwise, 
>> see response.body.read() 
>>
>> On Friday, June 7, 2013 5:24:44 PM UTC+2, Carl wrote:
>>>
>>> From a GWT app I'm calling my Web2py server app.
>>>
>>> String jsonData = "{'example' : 'example data'}";
>>> builder.setHeader("Accept", "application/json");
>>> builder.setHeader("Content-**type", "application/json");
>>> builder.setHeader("Content-**length", Integer.toString(jsonData.**
>>> length()));
>>> builder.sendRequest(jsonData, new RequestCallback() { ... }
>>>
>>> Where in Web2py can I access jsonData?
>>> I've looked thru 'request' but can't locate "example data".
>>>
>>>
>>>
>>>  -- 
>>  
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/VM2rOQqQBmQ/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 another web2py 
> and reinstall my app on it, hopping that it'll work. It must be when I 
> updated web2py before playing with components.
>
> Thanks for your time and support.
>
> Much appreciated.
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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[type="text"], input[type="password"], select {
> margin-right: 5px;
> width: 300px;
> }
>
>
> now the question is:
> if we want to customize fields size do we need to remove this from 
> web2py.css. Is it a bug or the correct behavior of web2py.css?
>
> Thanks!
>
>
>
> Em sexta-feira, 7 de junho de 2013 17h02min25s UTC-3, André Kablu escreveu:
>>
>> one more information...
>> if I put on my html file a html code like this:
>> 
>>
>> it also does not change the css effect to the correct class "input-small"
>>
>>
>> Em sexta-feira, 7 de junho de 2013 16h51min36s UTC-3, André Kablu 
>> escreveu:
>>>
>>> Hi all,
>>>
>>> I am trying to change a class of a field using form.element on my 
>>> user.html view:
>>>
>>> {{=form.custom.begin}}
>>> Name: {{
>>>   form.element('input',_name='first_name')['_class']='input-medium'
>>>   =form.custom.widget.first_name
>>> }}
>>> {{=form.custom.end}}
>>>
>>>
>>> It changes the HTML on the source code:
>>> Name:
>>> >> value="" name="first_name">
>>>
>>> but does not change the page.
>>>
>>> I already tried to remove all classes setting _class to '', and then 
>>> using _size to change the size of the field. Nothing happen too... 
>>>
>>> seems like the web2py default CSS is changing the input{text} css 
>>> patterns and nothing we can do to change field class properties
>>>
>>> Any ideas?
>>>
>>> Thank you very much!
>>>
>>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 
site I see the matchingserver print a client connected message. Also when 
using Wireshark I can see the data being sent to my PC. When I run Chrome 
Dev browser the realtime/ websocket connection just sits on Switching 
protocol "pending". Also the same is if I place an order by clicking on the 
trading GUI.

Any ideas?


-- 

--- 
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://groups.google.com/groups/opt_out.




[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 to pass parameters from 
> Smartgrid to Factory?
>
> I often need a way to have user locate an already-existing record, which 
> works great in Smartgrid, then add children to that one record, which works 
> great in Factory.
>
> Can anyone please offer code samples if it’s possible to copy Smartgrid 
> record vars to Factory?
>
> Thanks,
>
> Alex Glaros
>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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://groups.google.com/groups/opt_out.




[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. 
> 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 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_resources.run_script(
>> 'web2py==2.5.1-stable-timestamp.2013.06.06.15.39.19', 'w2p_run')
>>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 505, 
>> inrun_script
>> self.require(requires)[0].run_script(script_name, ns)
>>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1245, 
>> inrun_script
>> execfile(script_filename, namespace, namespace)
>>   File 
>> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/EGG-INFO/scripts/w2p_run"
>> , line 17, in 
>> import gluon.widget
>>   File 
>> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/widget.py"
>> , line 25, in 
>> import main
>>   File 
>> "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/main.py"
>> , line 120, in 
>> raise RuntimeError("Cannot determine web2py version")
>> RuntimeError: Cannot determine web2py version
>> jorge [~] ~> 
>>
>> So, I cannot get web2py running :(, any help?
>>
>>
>>
>>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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://groups.google.com/groups/opt_out.




[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 web development
 

> Where is the class taught?
>

Asociación Club de Programadores ACP - Buenos Aires - Argentina
 

> When was it taught
>
 
About 2010

What did you like
>

Ease of use and power of Python plus web2py

-- 

--- 
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://groups.google.com/groups/opt_out.




[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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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 password is wrong and the email is right - a proper error is 
displayed.

However, if I use an email which does not exist in auth_user and then 
submit the form - the page reloads and nothing happens. Shouldn't there be 
a built-in error message displayed, saying that such email (user) does not 
exist? Am I doing someting wrong?

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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[type="text"], input[type="password"], select {
>> margin-right: 5px;
>> width: 300px;
>> }
>>
>>
>> now the question is:
>> if we want to customize fields size do we need to remove this from 
>> web2py.css. Is it a bug or the correct behavior of web2py.css?
>>
>> Thanks!
>>
>>
>>
>> Em sexta-feira, 7 de junho de 2013 17h02min25s UTC-3, André Kablu 
>> escreveu:
>>>
>>> one more information...
>>> if I put on my html file a html code like this:
>>> 
>>>
>>> it also does not change the css effect to the correct class "input-small"
>>>
>>>
>>> Em sexta-feira, 7 de junho de 2013 16h51min36s UTC-3, André Kablu 
>>> escreveu:

 Hi all,

 I am trying to change a class of a field using form.element on my 
 user.html view:

 {{=form.custom.begin}}
 Name: {{
   form.element('input',_name='first_name')['_class']='input-medium'
   =form.custom.widget.first_name
 }}
 {{=form.custom.end}}


 It changes the HTML on the source code:
 Name:
 >>> value="" name="first_name">

 but does not change the page.

 I already tried to remove all classes setting _class to '', and then 
 using _size to change the size of the field. Nothing happen too... 

 seems like the web2py default CSS is changing the input{text} css 
 patterns and nothing we can do to change field class properties

 Any ideas?

 Thank you very much!

>>>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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

On Saturday, June 8, 2013 6:05:27 AM UTC-4, Herman wrote:
>
> 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.
> Thanks.
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 ...,
> 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, and all other values to be set 
> to the Fields' default values. Is there a way to implement this in the 
> model?
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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'
> 
> 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 password is wrong and the email is right - a proper error is 
> displayed.
>
> However, if I use an email which does not exist in auth_user and then 
> submit the form - the page reloads and nothing happens. Shouldn't there be 
> a built-in error message displayed, saying that such email (user) does not 
> exist? Am I doing someting wrong?
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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. It works fine on my CentOS 6 servers Apache Server 
version: Apache/2.2.15, but on CentOS 5, Server version: Apache/2.2.3 the 
rewrite rules never fire. I'm totally vexed.

I tried using routes.py,  
routes_out = ((r'/(?P.*)', r'/w2p/\g'),)

but on one page, I'm using the FORM helper and the submit button SID links 
to /reporter/ and so then Apache fires a 404.



NameVirtualHost *:80


  ServerName web2py
  RewriteEngine on
  RewriteLog "/var/log/httpd/rewrite_log"
  RewriteLogLevel 9
  RewriteRule ^/reporter(.*)$ /w2p/reporter$1 [PT,L]
  RewriteRule ^/welcome(.*)$ /w2p/welcome$1 [PT,L]
  WSGIScriptAlias /w2p /opt/sap/www/web2py/wsgihandler.py
  

AllowOverride None
Order Allow,Deny
Deny from all

Allow from all



AliasMatch ^/([^/]+)/static/(.*) \
 /opt/sap/www/web2py/applications/$1/static/$2


Order Allow,Deny
Allow from all



Deny from all



Deny from all



Any suggestions or help for me?

TIA!

Dave

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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, and all other values to be set 
>> to the Fields' default values. Is there a way to implement this in the 
>> model?
>>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




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 - Brazil





 Ovidio Marinho Falcao Neto
  ITJP.NET.BR
 ovidio...@gmail.com
   83   8826 9088 - Oi
   83   9336 3782 - Claro
Brasil



2013/6/7 Massimo Di Pierro 

> Can you please help me
>
> Do you use web2py in a class?
> What is your name?
> What is your position (teacher, student, etc.)?
> What is the instructor name (if not you)?
> How was web2py uses (to do a project, as teaching tool, etc.)?
> Where is the class taught?
> When was is taught (can be a date in the future if you plan to do so)?
> What did you like and what did you not like about the class?
> Will this class be taught again using web2py?
>
>
>  --
>
> ---
> 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://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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'
>> 
>> 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 password is wrong and the email is right - a proper error is 
>> displayed.
>>
>> However, if I use an email which does not exist in auth_user and then 
>> submit the form - the page reloads and nothing happens. Shouldn't there be 
>> a built-in error message displayed, saying that such email (user) does not 
>> exist? Am I doing someting wrong?
>>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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 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'
>>> 
>>> 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 password is wrong and the email is right - a proper 
>>> error is displayed.
>>>
>>> However, if I use an email which does not exist in auth_user and then 
>>> submit the form - the page reloads and nothing happens. Shouldn't there be 
>>> a built-in error message displayed, saying that such email (user) does not 
>>> exist? Am I doing someting wrong?
>>>
>>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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
>
> 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 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 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'
 
 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 password is wrong and the email is right - a proper 
 error is displayed.

 However, if I use an email which does not exist in auth_user and then 
 submit the form - the page reloads and nothing happens. Shouldn't there be 
 a built-in error message displayed, saying that such email (user) does not 
 exist? Am I doing someting wrong?

>>>

-- 

--- 
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://groups.google.com/groups/opt_out.




[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 emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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 ok, but different to the built-in menus which hide when no 
more mouse-over. 

Yet the menus in the app, created with the MENU helper, are bootstrap 
styled. 
How is this done and can I get bootstrap popup menus from MENU?


-- 

--- 
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://groups.google.com/groups/opt_out.




[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 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://groups.google.com/groups/opt_out.




[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 from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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 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 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[type="text"], input[type="password"], select {
>>> margin-right: 5px;
>>> width: 300px;
>>> }
>>>
>>>
>>> now the question is:
>>> if we want to customize fields size do we need to remove this from 
>>> web2py.css. Is it a bug or the correct behavior of web2py.css?
>>>
>>> Thanks!
>>>
>>>
>>>
>>> Em sexta-feira, 7 de junho de 2013 17h02min25s UTC-3, André Kablu 
>>> escreveu:

 one more information...
 if I put on my html file a html code like this:
 

 it also does not change the css effect to the correct class 
 "input-small"


 Em sexta-feira, 7 de junho de 2013 16h51min36s UTC-3, André Kablu 
 escreveu:
>
> Hi all,
>
> I am trying to change a class of a field using form.element on my 
> user.html view:
>
> {{=form.custom.begin}}
> Name: {{
>   form.element('input',_name='first_name')['_class']='input-medium'
>   =form.custom.widget.first_name
> }}
> {{=form.custom.end}}
>
>
> It changes the HTML on the source code:
> Name:
>  value="" name="first_name">
>
> but does not change the page.
>
> I already tried to remove all classes setting _class to '', and then 
> using _size to change the size of the field. Nothing happen too... 
>
> seems like the web2py default CSS is changing the input{text} css 
> patterns and nothing we can do to change field class properties
>
> Any ideas?
>
> Thank you very much!
>


-- 

--- 
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://groups.google.com/groups/opt_out.




[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 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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 instructor name (if not you)?
me

> How was web2py uses (to do a project, as teaching tool, etc.)?
To develop a project and a teaching tool.

> Where is the class taught?
Faculdade São José, Rio de Janeiro, Brazil.

> When was is taught (can be a date in the future if you plan to do so)?
Next July.

> What did you like and what did you not like about the class?

> Will this class be taught again using web2py?
Yes.

-- 

--- 
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://groups.google.com/groups/opt_out.




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 topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/rfyhvXxtGcY/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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://groups.google.com/groups/opt_out.




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

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

On Saturday, June 8, 2013 6:05:27 AM UTC-4, Herman wrote:
>
> 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.
> Thanks.
>

-- 

--- 
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://groups.google.com/groups/opt_out.



-- 

--- 
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://groups.google.com/groups/opt_out.