Re: [web2py] Installation

2020-04-05 Thread Val K
as hotfix you can edit gluon/widget.py

# find 'start' at the end of file and add '**kw':
def start(**kw):

also I checked what is `kw` - it is  {cron:True}, i.e. it is not  important 
arg 
   

On Sunday, April 5, 2020 at 1:46:20 PM UTC+3, David Swarbrick wrote:
>
> Thank you so much.
>
> That worked.
>
> On Sunday, 5 April 2020 11:25:46 UTC+1, Kevin Keller wrote:
>>
>> Thanks for reporting this.
>>
>> Maybe there is something wrong with the one click installer at the 
>> moment. 
>>
>> Just download the source version for normal users (py3) extract it and 
>> run python3 web2py.py.
>>
>> That should get you going. 
>>
>>
>>
>> On Sun, 5 Apr 2020, 12:20 David Swarbrick,  wrote:
>>
>>> I also tried the alternative suggestion on the installation page of 
>>> running
>>>
>>> python web2py.py
>>>
>>>  . . but there is of course no such file in the directory. There are 
>>> plenty of .pyd files (what are they?), but no .py files.
>>>
>>> And again - many thanks
>>>
>>>
>>> On Sunday, 5 April 2020 11:08:30 UTC+1, David Swarbrick wrote:

 Many thanks

 That worked so that I could see the error message:

 Traceback (most recent call last):
   File "", line 6, in 
   File "__main__.py", line 128, in 
   File "__main__web2py__.py", line 33, in 
 TypeError: start() takes no arguments (1 given)


 David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel 
 0795 457 9992 / +44(0)1484 380326



 On Sun, 5 Apr 2020 at 08:29, Val K  wrote:

> Try run web2py.exe from cmd/shell to see an error 
>
> -- 
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> --- 
> 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 web...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
> .
>
 -- 
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> --- 
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/320d8cca-881b-4b03-9d7a-6797b0f3b047%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4fdaaef6-eba5-46bd-a90b-ed5ab3fa00f9%40googlegroups.com.


Re: [web2py] Installation

2020-04-05 Thread Nico Zanferrari
Hi,

unfortunately, web2py binaries on the official download page are currently
not working at all.

You can use my updated versions on
https://github.com/nicozanf/web2py-pyinstaller until it'll be fixed.

Nico

Il giorno dom 5 apr 2020 alle ore 12:46 David Swarbrick 
ha scritto:

> Thank you so much.
>
> That worked.
>
> On Sunday, 5 April 2020 11:25:46 UTC+1, Kevin Keller wrote:
>>
>> Thanks for reporting this.
>>
>> Maybe there is something wrong with the one click installer at the
>> moment.
>>
>> Just download the source version for normal users (py3) extract it and
>> run python3 web2py.py.
>>
>> That should get you going.
>>
>>
>>
>> On Sun, 5 Apr 2020, 12:20 David Swarbrick,  wrote:
>>
>>> I also tried the alternative suggestion on the installation page of
>>> running
>>>
>>> python web2py.py
>>>
>>>  . . but there is of course no such file in the directory. There are
>>> plenty of .pyd files (what are they?), but no .py files.
>>>
>>> And again - many thanks
>>>
>>>
>>> On Sunday, 5 April 2020 11:08:30 UTC+1, David Swarbrick wrote:

 Many thanks

 That worked so that I could see the error message:

 Traceback (most recent call last):
   File "", line 6, in 
   File "__main__.py", line 128, in 
   File "__main__web2py__.py", line 33, in 
 TypeError: start() takes no arguments (1 given)


 David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel
 0795 457 9992 / +44(0)1484 380326



 On Sun, 5 Apr 2020 at 08:29, Val K  wrote:

> Try run web2py.exe from cmd/shell to see an error
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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 web...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
> .
>
 --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/320d8cca-881b-4b03-9d7a-6797b0f3b047%40googlegroups.com
>>> 
>>> .
>>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/742ed5af-800c-42e9-a68e-24019febaf2c%40googlegroups.com
> 
> .
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAE8D_ArfOcSSXQLsVhKT9CzHBpkgFpMjL0o1LAe0xWBmgsPag%40mail.gmail.com.


Re: [web2py] Installation

2020-04-05 Thread David Swarbrick
Thank you so much.

That worked.

On Sunday, 5 April 2020 11:25:46 UTC+1, Kevin Keller wrote:
>
> Thanks for reporting this.
>
> Maybe there is something wrong with the one click installer at the moment. 
>
> Just download the source version for normal users (py3) extract it and run 
> python3 web2py.py.
>
> That should get you going. 
>
>
>
> On Sun, 5 Apr 2020, 12:20 David Swarbrick, > 
> wrote:
>
>> I also tried the alternative suggestion on the installation page of 
>> running
>>
>> python web2py.py
>>
>>  . . but there is of course no such file in the directory. There are 
>> plenty of .pyd files (what are they?), but no .py files.
>>
>> And again - many thanks
>>
>>
>> On Sunday, 5 April 2020 11:08:30 UTC+1, David Swarbrick wrote:
>>>
>>> Many thanks
>>>
>>> That worked so that I could see the error message:
>>>
>>> Traceback (most recent call last):
>>>   File "", line 6, in 
>>>   File "__main__.py", line 128, in 
>>>   File "__main__web2py__.py", line 33, in 
>>> TypeError: start() takes no arguments (1 given)
>>>
>>>
>>> David Swarbrick da...@swarb.co.uk  - dsw...@gmail.com 
>>>  - swarb.co.uk Tel 0795 457 9992 / +44(0)1484 380326
>>>
>>>
>>>
>>> On Sun, 5 Apr 2020 at 08:29, Val K > 
>>> wrote:
>>>
 Try run web2py.exe from cmd/shell to see an error 

 -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 --- 
 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 web...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
 .

>>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> 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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/320d8cca-881b-4b03-9d7a-6797b0f3b047%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/742ed5af-800c-42e9-a68e-24019febaf2c%40googlegroups.com.


Re: [web2py] Installation

2020-04-05 Thread Kevin Keller
Thanks for reporting this.

Maybe there is something wrong with the one click installer at the moment.

Just download the source version for normal users (py3) extract it and run
python3 web2py.py.

That should get you going.



On Sun, 5 Apr 2020, 12:20 David Swarbrick,  wrote:

> I also tried the alternative suggestion on the installation page of running
>
> python web2py.py
>
>  . . but there is of course no such file in the directory. There are
> plenty of .pyd files (what are they?), but no .py files.
>
> And again - many thanks
>
>
> On Sunday, 5 April 2020 11:08:30 UTC+1, David Swarbrick wrote:
>>
>> Many thanks
>>
>> That worked so that I could see the error message:
>>
>> Traceback (most recent call last):
>>   File "", line 6, in 
>>   File "__main__.py", line 128, in 
>>   File "__main__web2py__.py", line 33, in 
>> TypeError: start() takes no arguments (1 given)
>>
>>
>> David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel
>> 0795 457 9992 / +44(0)1484 380326
>>
>>
>>
>> On Sun, 5 Apr 2020 at 08:29, Val K  wrote:
>>
>>> Try run web2py.exe from cmd/shell to see an error
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
>>> .
>>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/320d8cca-881b-4b03-9d7a-6797b0f3b047%40googlegroups.com
> 
> .
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CADHCKLSu3Bh1SDCs7RVHBvCK0-kPDaiHXD%3DgBS37%3DE2kr_L1Eg%40mail.gmail.com.


Re: [web2py] Installation

2020-04-05 Thread David Swarbrick
I also tried the alternative suggestion on the installation page of running

python web2py.py

 . . but there is of course no such file in the directory. There are plenty 
of .pyd files (what are they?), but no .py files.

And again - many thanks


On Sunday, 5 April 2020 11:08:30 UTC+1, David Swarbrick wrote:
>
> Many thanks
>
> That worked so that I could see the error message:
>
> Traceback (most recent call last):
>   File "", line 6, in 
>   File "__main__.py", line 128, in 
>   File "__main__web2py__.py", line 33, in 
> TypeError: start() takes no arguments (1 given)
>
>
> David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel 
> 0795 457 9992 / +44(0)1484 380326
>
>
>
> On Sun, 5 Apr 2020 at 08:29, Val K  wrote:
>
>> Try run web2py.exe from cmd/shell to see an error 
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
>> .
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/320d8cca-881b-4b03-9d7a-6797b0f3b047%40googlegroups.com.


Re: [web2py] Installation

2020-04-05 Thread David Swarbrick
Many thanks

That worked so that I could see the error message:

Traceback (most recent call last):
  File "", line 6, in 
  File "__main__.py", line 128, in 
  File "__main__web2py__.py", line 33, in 
TypeError: start() takes no arguments (1 given)


David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel 0795
457 9992 / +44(0)1484 380326



On Sun, 5 Apr 2020 at 08:29, Val K  wrote:

> Try run web2py.exe from cmd/shell to see an error
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com
> .
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CADqNiN0bBDb-f%3DpnDE4Ujq7CoZctC5CCkZqYbikGuHKr995kyQ%40mail.gmail.com.


[web2py] Installation

2020-04-05 Thread Val K
Try run web2py.exe from cmd/shell to see an error 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/607633b4-3628-4800-acdc-246350f6982b%40googlegroups.com.


[web2py] Installation

2020-04-04 Thread David Swarbrick
Seeking to run web2py on a windows 10 machine
I downloaded and extracted all to a directory. I click on web2py.exe in 
that directory. 
It looks like it is throwing up a dos box, but the box just closes and 
exits.

I have python 3.7 installed elsewhere.

Any suggestion (please) where I might start?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/62055a2e-3c94-4c09-8906-c1f633fb3b96%40googlegroups.com.


[web2py] Installation on Linux without Desktop GUI

2017-11-30 Thread Lee P
I would like to install on a Linux Debian Lite distro (a version without 
Desktop GUI).
But this does not work. The manual says:

If you do not provide an administrator password, the administration 
interface is disabled. This is a security measure to prevent publicly 
exposing the admin interface.

The administrative interface, *admin*, is only accessible from localhost 
unless you run web2py behind Apache with mod_proxy. If *admin* detects a 
proxy, the session cookie is set to secure and *admin* login does not work 
unless the communication between the client and the proxy goes over HTTPS; 
this is a security measure. All communications between the client and 
*admin* must always be local or encrypted; otherwise an attacker would be 
able to perform a man-in-the middle attack or a replay attack and execute 
arbitrary code on the server.


Would it work to SSH to the command console and

define password with:

 > python -c "from gluon.main import save_password; 
save_password(raw_input('my password'),443)"
and run with:
 > python web2py.py -a 'my password' -i 127.0.0.1 -p 8000


How should I use the command console to set the admin password and login 
without a GUI?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Re: 2012 R2 web2py installation

2017-01-18 Thread Andrea Fae'
I need to type "python web2py.py -a "password" with double quote!

Il giorno lunedì 16 gennaio 2017 21:04:49 UTC+1, Dave S ha scritto:
>
>
>
> On Monday, January 16, 2017 at 2:48:20 AM UTC-8, Andrea Fae' wrote:
>>
>> Hello, I symply installed:
>> - python 2.7.13
>> - web2py 2.14.6 from source code on Windows 2012 R2 with IIS installed
>>
>> If I type from cmd
>> "python web2py.py" the GUI interface appears, it ask me the admin 
>> password, I type and all is working
>>
>> If I type from cmd
>> "python web2py.py -a 'password' and I started browser at 
>> http://120.0.0.1:8000 and go to the admin interface the system ask me 
>> the password, I type but the system tells me "password invalid".
>> Why?
>>
>
> Is that a typo for http://127.0.0.1:8000?
>
> Check that [web2py dir]/parameters_8000.py exists.
>
> /dps
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Re: 2012 R2 web2py installation

2017-01-16 Thread Dave S


On Monday, January 16, 2017 at 2:48:20 AM UTC-8, Andrea Fae' wrote:
>
> Hello, I symply installed:
> - python 2.7.13
> - web2py 2.14.6 from source code on Windows 2012 R2 with IIS installed
>
> If I type from cmd
> "python web2py.py" the GUI interface appears, it ask me the admin 
> password, I type and all is working
>
> If I type from cmd
> "python web2py.py -a 'password' and I started browser at 
> http://120.0.0.1:8000 and go to the admin interface the system ask me the 
> password, I type but the system tells me "password invalid".
> Why?
>

Is that a typo for http://127.0.0.1:8000?

Check that [web2py dir]/parameters_8000.py exists.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] 2012 R2 web2py installation

2017-01-16 Thread Andrea Fae'
Hello, I symply installed:
- python 2.7.13
- web2py 2.14.6 from source code on Windows 2012 R2 with IIS installed

If I type from cmd
"python web2py.py" the GUI interface appears, it ask me the admin password, 
I type and all is working

If I type from cmd
"python web2py.py -a 'password' and I started browser at 
http://120.0.0.1:8000 and go to the admin interface the system ask me the 
password, I type but the system tells me "password invalid".
Why?


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Installation error

2016-10-21 Thread Ian Penfold
Hi everyone,

I am totally new to python and hence web2py so please make allowances if my 
question is somewhat basic.(No pun intended)

I have unzipped web2py and ran the command  

web2py.exe -S welcome

as per the manual and it was run from the web2py folder.

While I get the console window to load I also get the following error 
message

*WARNING:web2py:import IPython error; use default python shell*

The full screen dump if it helps is 

F:\web2py>web2py.exe -S welcome
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2016
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: psycopg2, pymysql, imaplib, MySQLdb, sqlite3, 
pyodbc
WARNING:web2py:import IPython error; use default python shell
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)

I am running win10 with all updates installed.

Thank you in advance for any insight you may have

regards

Ian Penfold

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


Re: [web2py] w2p_clone broke web2py installation

2015-04-07 Thread Vinicius Assef

> On 7 Apr 2015, at 01:57, Manuele Pesenti  wrote:
> 
> Il 05/04/15 21:23, Gary Cowell ha scritto:
> why not just clone the latest version from github and eventually choose
> a stable tagged version after by doing:
> $ git checkout tags/

That’s exactly what I usually do.

The problem is: we don’t have the “stable branch” concept. So, I:
- choose a version;
- checkout its tag;
- make my local tests;
- deploy using this tag with checkout.

BTW, I’m using the sequential [0] versioning method in my systems with great 
success.

[0] 
https://docs.djangoproject.com/en/1.7/internals/release-process/#official-releases

—
Vinicius

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


Re: [web2py] w2p_clone broke web2py installation

2015-04-07 Thread 黄祥
please check this :
http://www.web2pyslices.com/slice/show/1464/setting-up-web2py-in-a-virtual-environment

another thing is if i'm not wrong, web2py version in pip is a little bit 
late than the github n web2py download web page. 

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


Re: [web2py] w2p_clone broke web2py installation

2015-04-06 Thread Manuele Pesenti
Il 05/04/15 21:23, Gary Cowell ha scritto:
> Hello
>
> I installed web2py from pip, I think it's at 2.1.1
>
> Then ran w2p_clone to bring in latest version.
why not just clone the latest version from github and eventually choose
a stable tagged version after by doing:
$ git checkout tags/

M.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] w2p_clone broke web2py installation

2015-04-05 Thread Gary Cowell

Hello

I installed web2py from pip, I think it's at 2.1.1

Then ran w2p_clone to bring in latest version. On launch I get the 
following error:


Traceb

Traceback (most recent call last):
  File "web2py.py", line 18, in 
import gluon.widget
  File "/home/gary/python/web2py/web2py/gluon/__init__.py", line 37, in 
from sqlhtml import SQLFORM, SQLTABLE
  File "/home/gary/python/web2py/web2py/gluon/sqlhtml.py", line 34, in 
from gluon.dal import _default_validators
ImportError: cannot import name _default_validators



What did I do wrong? I'm working in a virtualenv, wanted to deploy the 
latest version, the pip one is quite the age now it seems.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


Re: [web2py] Installation of an editor plugin in web2py app

2014-12-16 Thread Ramashish Gaurav
I used the first implementation of XML ( where sanitisation is true ), but 
few formatting effects are not working right. 

I solved the problem of underlining the text by including 'u' tag in list 
of permitted tags, but couldn't solve the problem of font size, font 
family, font colour, background colour, text alignment (center, right, 
. )  including a link, uploading an image, and indenting the text. 
Please look into this issue.   
On Tuesday, December 16, 2014 8:35:15 PM UTC+5:30, Andrew wrote:
>
> Web2py has really decent security issue prevention built in, see here: 
> http://web2py.com/books/default/chapter/34/01/introduction#Security
>
>
> *cheers :D
>
>
>  
>
> On Mon, Dec 15, 2014 at 11:49 PM, Ramashish Gaurav  > wrote:
>>
>> Thanks all the way Andrew. This was the perfect solution to my problem, 
>> for which I wasted a day. One more thing, if you wish to, please give me 
>> some info about XSS attack, how can we ignorantly get caught in it and 
>> measures taken to prevent XSS attacks.  
>>
>> On Tuesday, December 16, 2014 1:20:20 AM UTC+5:30, Andrew wrote:
>>>
>>> Hey there if I understand correctly you want to not display html but the 
>>> formatted output. If so then use this in your view and add any html you 
>>> would like to allow.
>>>
>>> {{=XML(row.textfromeditor, sanitize=True, permitted_tags=['a', 'b', 
>>> 'blockquote', 'br', 'i', 'li',
>>>'ol', 'ul', 'p', 'cite', 
>>> 'code', 'pre', 'img'],
>>> allowed_attributes={'a':['href', 'title'],
>>>'img':['src', 'alt'], 
>>> 'blockquote':['type']})}}
>>>
>>>
>>>
>>> or do this which I highly suggest not doing {{=XML(row.textfromeditor, 
>>> sanitize=False)}}
>>>
>>> *cheers
>>>
>>>
>>> On Mon, Dec 15, 2014 at 6:50 AM, Ramashish Gaurav  
>>> wrote:

 Dear Andrew,

 Many thanks for your response and elaborate explanation of installation 
 of ck-editor. However I used another light weight editor nicEdit since the 
 installation was pretty easy as directed at http://nicedit.com/ . 
 However I am in a problem, not related to installation of editors, but in 
 showing of html doc after being saved from the textarea.

 The content from the textarea in HTML used with nicEdit, is in html 
 format. After getting the html coded text from textarea and saving it in 
 database, I need to redisplay it on demand. I tried to use textarea with 
 read only mode to display the html text in formatted form, searched for 
 hours on internet but with no luck. Textarea always showed the raw html 
 code instead of formatted one. Also I read that it can be done via an 
 editor only, not textarea. So used nicEdit again, but don't know to use it 
 in read only mode. stackoverflow had a post related to the similar problem 
 of using nicEdit with disabled edit option, but it did not come to my 
 rescue. I implemented the code posted there in answer, but was not able to 
 set nicEdit in read only mode. Here is the link.

 http://stackoverflow.com/questions/4282446/how-to-set-
 nicedit-uneditable

 If you do know to display the html coded text in formatted way via 
 nicEdit or any other way round, I'd appreciate your help.

 Here is the code I have implemented:

 {{extend 'layout.html'}}
 

 http://js.nicedit.com/nicEdit-latest.js"; 
 type="text/javascript">
 
 bkLib.onDomLoaded(nicEditors.
 allTextAreas);
 http://js.nicedit.com/
 nicEdit-latest.js">
 // 

 

 
 {{for row in rows:}}
 {{=row.textfromeditor}}
 {{pass}}

 


 On Monday, December 15, 2014 6:45:52 AM UTC+5:30, Andrew wrote:
>
> Your error at this point isn't from ckeditor but you are using a 
> reserved sql keyword in your database table/field. I suggest removing 
> this 
> line *check_reserved=['all']* or change the name of one of the 
> fields/tables in question.
>
> As a side reference here is a brief bit of info for implementing 
> ckeditor. 
>
> I haven't used ckeditor in a long time but if the code remains the 
> same then you can do this.
>
> in db.py add:
>
> def advanced_editor(field, value):
> return TEXTAREA(_id = str(field).replace('.','_'), _name=
> field.name, _c

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-16 Thread Maboroshi
Web2py has really decent security issue prevention built in, see here:
http://web2py.com/books/default/chapter/34/01/introduction#Security


*cheers :D




On Mon, Dec 15, 2014 at 11:49 PM, Ramashish Gaurav 
wrote:
>
> Thanks all the way Andrew. This was the perfect solution to my problem,
> for which I wasted a day. One more thing, if you wish to, please give me
> some info about XSS attack, how can we ignorantly get caught in it and
> measures taken to prevent XSS attacks.
>
> On Tuesday, December 16, 2014 1:20:20 AM UTC+5:30, Andrew wrote:
>>
>> Hey there if I understand correctly you want to not display html but the
>> formatted output. If so then use this in your view and add any html you
>> would like to allow.
>>
>> {{=XML(row.textfromeditor, sanitize=True, permitted_tags=['a', 'b',
>> 'blockquote', 'br', 'i', 'li',
>>'ol', 'ul', 'p', 'cite',
>> 'code', 'pre', 'img'],
>> allowed_attributes={'a':['href', 'title'],
>>'img':['src', 'alt'],
>> 'blockquote':['type']})}}
>>
>>
>>
>> or do this which I highly suggest not doing {{=XML(row.textfromeditor,
>> sanitize=False)}}
>>
>> *cheers
>>
>>
>> On Mon, Dec 15, 2014 at 6:50 AM, Ramashish Gaurav 
>> wrote:
>>>
>>> Dear Andrew,
>>>
>>> Many thanks for your response and elaborate explanation of installation
>>> of ck-editor. However I used another light weight editor nicEdit since the
>>> installation was pretty easy as directed at http://nicedit.com/ .
>>> However I am in a problem, not related to installation of editors, but in
>>> showing of html doc after being saved from the textarea.
>>>
>>> The content from the textarea in HTML used with nicEdit, is in html
>>> format. After getting the html coded text from textarea and saving it in
>>> database, I need to redisplay it on demand. I tried to use textarea with
>>> read only mode to display the html text in formatted form, searched for
>>> hours on internet but with no luck. Textarea always showed the raw html
>>> code instead of formatted one. Also I read that it can be done via an
>>> editor only, not textarea. So used nicEdit again, but don't know to use it
>>> in read only mode. stackoverflow had a post related to the similar problem
>>> of using nicEdit with disabled edit option, but it did not come to my
>>> rescue. I implemented the code posted there in answer, but was not able to
>>> set nicEdit in read only mode. Here is the link.
>>>
>>> http://stackoverflow.com/questions/4282446/how-to-set-nicedit-uneditable
>>>
>>> If you do know to display the html coded text in formatted way via
>>> nicEdit or any other way round, I'd appreciate your help.
>>>
>>> Here is the code I have implemented:
>>>
>>> {{extend 'layout.html'}}
>>> 
>>>
>>> http://js.nicedit.com/nicEdit-latest.js";
>>> type="text/javascript">
>>> 
>>> bkLib.onDomLoaded(nicEditors.
>>> allTextAreas);
>>> http://js.nicedit.com/
>>> nicEdit-latest.js">
>>> //>> bkLib.onDomLoaded(funtion(){
>>>   var myNicEditor =
>>> new nicEditor();
>>>
>>> myNicEditor.addInstance("nice");
>>>
>>> nicEditors.findEditor("nice").disable();
>>>});
>>>
>>> //]]> 
>>>
>>> 
>>>
>>> 
>>> {{for row in rows:}}
>>> {{=row.textfromeditor}}
>>> {{pass}}
>>>
>>> 
>>>
>>>
>>> On Monday, December 15, 2014 6:45:52 AM UTC+5:30, Andrew wrote:

 Your error at this point isn't from ckeditor but you are using a
 reserved sql keyword in your database table/field. I suggest removing this
 line *check_reserved=['all']* or change the name of one of the
 fields/tables in question.

 As a side reference here is a brief bit of info for implementing
 ckeditor.

 I haven't used ckeditor in a long time but if the code remains the same
 then you can do this.

 in db.py add:

 def advanced_editor(field, value):
 return TEXTAREA(_id = str(field).replace('.','_'), _name=field.name,
 _class='text ckeditor', value=value, _cols=80, _rows=10)

 For the text field you use this as an example:
 Field('body', 'text', widget=advanced_editor))

 In your template file example layout.html add the path to ckeditor:
 

 Then choose to sanitize or not the input. Depending if other users will
 submit your form then I would choose to sanitize info:

 Example sanitized:
 {{=XML(query.body,sanitize=True,
 permitted_tags=['a', 'b', 'blockquote', 'br', 'i', 'li',
'ol', 'ul', 'p', 'cite',
 'code', 'pre', 'img'],
 allowed_attributes={'a':['href', 'title'],
'img':['src', 'alt'],
 'blockquote':['type']})}}

 Example unsanitized: {{=XML(query.body,sanitize=F

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-15 Thread Ramashish Gaurav
Thanks all the way Andrew. This was the perfect solution to my problem, for 
which I wasted a day. One more thing, if you wish to, please give me some 
info about XSS attack, how can we ignorantly get caught in it and measures 
taken to prevent XSS attacks.  

On Tuesday, December 16, 2014 1:20:20 AM UTC+5:30, Andrew wrote:
>
> Hey there if I understand correctly you want to not display html but the 
> formatted output. If so then use this in your view and add any html you 
> would like to allow.
>
> {{=XML(row.textfromeditor, sanitize=True, permitted_tags=['a', 'b', 
> 'blockquote', 'br', 'i', 'li',
>'ol', 'ul', 'p', 'cite', 
> 'code', 'pre', 'img'],
> allowed_attributes={'a':['href', 'title'],
>'img':['src', 'alt'], 
> 'blockquote':['type']})}}
>
>
>
> or do this which I highly suggest not doing {{=XML(row.textfromeditor, 
> sanitize=False)}}
>
> *cheers
>
>
> On Mon, Dec 15, 2014 at 6:50 AM, Ramashish Gaurav  > wrote:
>>
>> Dear Andrew,
>>
>> Many thanks for your response and elaborate explanation of installation 
>> of ck-editor. However I used another light weight editor nicEdit since the 
>> installation was pretty easy as directed at http://nicedit.com/ . 
>> However I am in a problem, not related to installation of editors, but in 
>> showing of html doc after being saved from the textarea.
>>
>> The content from the textarea in HTML used with nicEdit, is in html 
>> format. After getting the html coded text from textarea and saving it in 
>> database, I need to redisplay it on demand. I tried to use textarea with 
>> read only mode to display the html text in formatted form, searched for 
>> hours on internet but with no luck. Textarea always showed the raw html 
>> code instead of formatted one. Also I read that it can be done via an 
>> editor only, not textarea. So used nicEdit again, but don't know to use it 
>> in read only mode. stackoverflow had a post related to the similar problem 
>> of using nicEdit with disabled edit option, but it did not come to my 
>> rescue. I implemented the code posted there in answer, but was not able to 
>> set nicEdit in read only mode. Here is the link.
>>
>> http://stackoverflow.com/questions/4282446/how-to-set-nicedit-uneditable
>>
>> If you do know to display the html coded text in formatted way via 
>> nicEdit or any other way round, I'd appreciate your help.
>>
>> Here is the code I have implemented:
>>
>> {{extend 'layout.html'}}
>> 
>>
>> http://js.nicedit.com/nicEdit-latest.js"; 
>> type="text/javascript">
>> 
>> > type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);
>> http://js.nicedit.com/nicEdit-latest.js";>
>> //> bkLib.onDomLoaded(funtion(){
>>   var myNicEditor = 
>> new nicEditor();
>>   
>> myNicEditor.addInstance("nice"); 
>>   
>> nicEditors.findEditor("nice").disable();
>>});
>>   
>>   //]]> 
>>
>> 
>>
>> 
>> {{for row in rows:}}
>> {{=row.textfromeditor}}
>> {{pass}}
>>
>> 
>>
>>
>> On Monday, December 15, 2014 6:45:52 AM UTC+5:30, Andrew wrote:
>>>
>>> Your error at this point isn't from ckeditor but you are using a 
>>> reserved sql keyword in your database table/field. I suggest removing this 
>>> line *check_reserved=['all']* or change the name of one of the 
>>> fields/tables in question.
>>>
>>> As a side reference here is a brief bit of info for implementing 
>>> ckeditor. 
>>>
>>> I haven't used ckeditor in a long time but if the code remains the same 
>>> then you can do this.
>>>
>>> in db.py add:
>>>
>>> def advanced_editor(field, value):
>>> return TEXTAREA(_id = str(field).replace('.','_'), _name=field.name, 
>>> _class='text ckeditor', value=value, _cols=80, _rows=10)
>>>
>>> For the text field you use this as an example:
>>> Field('body', 'text', widget=advanced_editor))
>>>
>>> In your template file example layout.html add the path to ckeditor:
>>> 
>>>
>>> Then choose to sanitize or not the input. Depending if other users will 
>>> submit your form then I would choose to sanitize info:
>>>
>>> Example sanitized: 
>>> {{=XML(query.body,sanitize=True, 
>>> permitted_tags=['a', 'b', 'blockquote', 'br', 'i', 'li',
>>>'ol', 'ul', 'p', 'cite', 
>>> 'code', 'pre', 'img'],
>>> allowed_attributes={'a':['href', 'title'],
>>>'img':['src', 'alt'], 
>>> 'blockquote':['type']})}}
>>>
>>> Example unsanitized: {{=XML(query.body,sanitize=False)}}
>>>
>>> you can choose what values you will allow to be displayed for that form 
>>> code in th

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-15 Thread Maboroshi
Hey there if I understand correctly you want to not display html but the
formatted output. If so then use this in your view and add any html you
would like to allow.

{{=XML(row.textfromeditor, sanitize=True, permitted_tags=['a', 'b',
'blockquote', 'br', 'i', 'li',
   'ol', 'ul', 'p', 'cite', 'code',
'pre', 'img'],
allowed_attributes={'a':['href', 'title'],
   'img':['src', 'alt'],
'blockquote':['type']})}}



or do this which I highly suggest not doing {{=XML(row.textfromeditor,
sanitize=False)}}

*cheers


On Mon, Dec 15, 2014 at 6:50 AM, Ramashish Gaurav 
wrote:
>
> Dear Andrew,
>
> Many thanks for your response and elaborate explanation of installation of
> ck-editor. However I used another light weight editor nicEdit since the
> installation was pretty easy as directed at http://nicedit.com/ . However
> I am in a problem, not related to installation of editors, but in showing
> of html doc after being saved from the textarea.
>
> The content from the textarea in HTML used with nicEdit, is in html
> format. After getting the html coded text from textarea and saving it in
> database, I need to redisplay it on demand. I tried to use textarea with
> read only mode to display the html text in formatted form, searched for
> hours on internet but with no luck. Textarea always showed the raw html
> code instead of formatted one. Also I read that it can be done via an
> editor only, not textarea. So used nicEdit again, but don't know to use it
> in read only mode. stackoverflow had a post related to the similar problem
> of using nicEdit with disabled edit option, but it did not come to my
> rescue. I implemented the code posted there in answer, but was not able to
> set nicEdit in read only mode. Here is the link.
>
> http://stackoverflow.com/questions/4282446/how-to-set-nicedit-uneditable
>
> If you do know to display the html coded text in formatted way via nicEdit
> or any other way round, I'd appreciate your help.
>
> Here is the code I have implemented:
>
> {{extend 'layout.html'}}
> 
>
> http://js.nicedit.com/nicEdit-latest.js";
> type="text/javascript">
> 
>  type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);
> http://js.nicedit.com/nicEdit-latest.js";>
> // bkLib.onDomLoaded(funtion(){
>   var myNicEditor =
> new nicEditor();
>
> myNicEditor.addInstance("nice");
>
> nicEditors.findEditor("nice").disable();
>});
>
>   //]]> 
>
> 
>
> 
> {{for row in rows:}}
> {{=row.textfromeditor}}
> {{pass}}
>
> 
>
>
> On Monday, December 15, 2014 6:45:52 AM UTC+5:30, Andrew wrote:
>>
>> Your error at this point isn't from ckeditor but you are using a reserved
>> sql keyword in your database table/field. I suggest removing this line
>> *check_reserved=['all']* or change the name of one of the fields/tables
>> in question.
>>
>> As a side reference here is a brief bit of info for implementing
>> ckeditor.
>>
>> I haven't used ckeditor in a long time but if the code remains the same
>> then you can do this.
>>
>> in db.py add:
>>
>> def advanced_editor(field, value):
>> return TEXTAREA(_id = str(field).replace('.','_'), _name=field.name,
>> _class='text ckeditor', value=value, _cols=80, _rows=10)
>>
>> For the text field you use this as an example:
>> Field('body', 'text', widget=advanced_editor))
>>
>> In your template file example layout.html add the path to ckeditor:
>> 
>>
>> Then choose to sanitize or not the input. Depending if other users will
>> submit your form then I would choose to sanitize info:
>>
>> Example sanitized:
>> {{=XML(query.body,sanitize=True,
>> permitted_tags=['a', 'b', 'blockquote', 'br', 'i', 'li',
>>'ol', 'ul', 'p', 'cite',
>> 'code', 'pre', 'img'],
>> allowed_attributes={'a':['href', 'title'],
>>'img':['src', 'alt'],
>> 'blockquote':['type']})}}
>>
>> Example unsanitized: {{=XML(query.body,sanitize=False)}}
>>
>> you can choose what values you will allow to be displayed for that form
>> code in the ckeditor config. I don't remember if there is anything you need
>> to do in the controller files but looking at code I don't believe so.
>>
>> *cheers!
>>
>> On Wed, Dec 10, 2014 at 10:50 PM, Ramashish Gaurav 
>> wrote:
>>
>>>
>>> Hi all !
>>>
>>> First of all, I am a newbie in web2py.
>>> I am working on a project and need to install an editor plugin in my
>>> web2py app named "editor". After hours of search I got ck_editor4 plugin
>>>  ,
>>> installed it and then made some changes in models and views of my
>>> application. Changes were made in :
>>>
>>> 1:   editor/models/db1.py
>>> Contents are :
>>>
>>> # -*- codin

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-15 Thread Ramashish Gaurav
Dear Andrew,

Many thanks for your response and elaborate explanation of installation of 
ck-editor. However I used another light weight editor nicEdit since the 
installation was pretty easy as directed at http://nicedit.com/ . However I 
am in a problem, not related to installation of editors, but in showing of 
html doc after being saved from the textarea.

The content from the textarea in HTML used with nicEdit, is in html format. 
After getting the html coded text from textarea and saving it in database, 
I need to redisplay it on demand. I tried to use textarea with read only 
mode to display the html text in formatted form, searched for hours on 
internet but with no luck. Textarea always showed the raw html code instead 
of formatted one. Also I read that it can be done via an editor only, not 
textarea. So used nicEdit again, but don't know to use it in read only 
mode. stackoverflow had a post related to the similar problem of using 
nicEdit with disabled edit option, but it did not come to my rescue. I 
implemented the code posted there in answer, but was not able to set 
nicEdit in read only mode. Here is the link.

http://stackoverflow.com/questions/4282446/how-to-set-nicedit-uneditable

If you do know to display the html coded text in formatted way via nicEdit 
or any other way round, I'd appreciate your help.

Here is the code I have implemented:

{{extend 'layout.html'}}


http://js.nicedit.com/nicEdit-latest.js"; 
type="text/javascript">

bkLib.onDomLoaded(nicEditors.allTextAreas);
http://js.nicedit.com/nicEdit-latest.js";>
// 




{{for row in rows:}}
{{=row.textfromeditor}}
{{pass}}




On Monday, December 15, 2014 6:45:52 AM UTC+5:30, Andrew wrote:
>
> Your error at this point isn't from ckeditor but you are using a reserved 
> sql keyword in your database table/field. I suggest removing this line 
> *check_reserved=['all']* or change the name of one of the fields/tables 
> in question.
>
> As a side reference here is a brief bit of info for implementing ckeditor. 
>
> I haven't used ckeditor in a long time but if the code remains the same 
> then you can do this.
>
> in db.py add:
>
> def advanced_editor(field, value):
> return TEXTAREA(_id = str(field).replace('.','_'), _name=field.name, 
> _class='text ckeditor', value=value, _cols=80, _rows=10)
>
> For the text field you use this as an example:
> Field('body', 'text', widget=advanced_editor))
>
> In your template file example layout.html add the path to ckeditor:
>  src="{{=URL(request.application,'static','ckeditor/ckeditor.js')}}">
>
> Then choose to sanitize or not the input. Depending if other users will 
> submit your form then I would choose to sanitize info:
>
> Example sanitized: 
> {{=XML(query.body,sanitize=True, permitted_tags=['a', 
> 'b', 'blockquote', 'br', 'i', 'li',
>'ol', 'ul', 'p', 'cite', 
> 'code', 'pre', 'img'],
> allowed_attributes={'a':['href', 'title'],
>'img':['src', 'alt'], 
> 'blockquote':['type']})}}
>
> Example unsanitized: {{=XML(query.body,sanitize=False)}}
>
> you can choose what values you will allow to be displayed for that form 
> code in the ckeditor config. I don't remember if there is anything you need 
> to do in the controller files but looking at code I don't believe so.
>
> *cheers!
>
> On Wed, Dec 10, 2014 at 10:50 PM, Ramashish Gaurav  > wrote:
>>
>>
>> Hi all !
>>
>> First of all, I am a newbie in web2py. 
>> I am working on a project and need to install an editor plugin in my 
>> web2py app named "editor". After hours of search I got ck_editor4 plugin 
>>  , 
>> installed it and then made some changes in models and views of my 
>> application. Changes were made in :
>>
>> 1:   editor/models/db1.py 
>> Contents are :
>>
>> # -*- coding: utf-8 -*-
>> from plugin_ckeditor import CKEditor
>> ckeditor = CKEditor(db)
>> ckeditor.define_tables()
>>
>> db.define_table('content', Field('title', length=255), 
>> Field('public', 'boolean', default=True), 
>> Field('text', 'text', widget=ckeditor.widget) )
>>
>> 2:   editor/views/default/index.html
>> Contents are:
>>
>> {{=ckeditor.edit_in_place('.editable', URL())}}
>>
>> After opening the index page in browser a ticket was raised which says 
>> this:
>>
>> Traceback (most recent call last):
>>   File "gluon/restricted.py", line 224, in restricted
>>   File "

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-14 Thread Maboroshi
Your error at this point isn't from ckeditor but you are using a reserved
sql keyword in your database table/field. I suggest removing this line
*check_reserved=['all']* or change the name of one of the fields/tables in
question.

As a side reference here is a brief bit of info for implementing ckeditor.

I haven't used ckeditor in a long time but if the code remains the same
then you can do this.

in db.py add:

def advanced_editor(field, value):
return TEXTAREA(_id = str(field).replace('.','_'), _name=field.name,
_class='text ckeditor', value=value, _cols=80, _rows=10)

For the text field you use this as an example:
Field('body', 'text', widget=advanced_editor))

In your template file example layout.html add the path to ckeditor:


Then choose to sanitize or not the input. Depending if other users will
submit your form then I would choose to sanitize info:

Example sanitized:
{{=XML(query.body,sanitize=True, permitted_tags=['a',
'b', 'blockquote', 'br', 'i', 'li',
   'ol', 'ul', 'p', 'cite', 'code',
'pre', 'img'],
allowed_attributes={'a':['href', 'title'],
   'img':['src', 'alt'],
'blockquote':['type']})}}

Example unsanitized: {{=XML(query.body,sanitize=False)}}

you can choose what values you will allow to be displayed for that form
code in the ckeditor config. I don't remember if there is anything you need
to do in the controller files but looking at code I don't believe so.

*cheers!

On Wed, Dec 10, 2014 at 10:50 PM, Ramashish Gaurav 
wrote:
>
>
> Hi all !
>
> First of all, I am a newbie in web2py.
> I am working on a project and need to install an editor plugin in my
> web2py app named "editor". After hours of search I got ck_editor4 plugin
>  ,
> installed it and then made some changes in models and views of my
> application. Changes were made in :
>
> 1:   editor/models/db1.py
> Contents are :
>
> # -*- coding: utf-8 -*-
> from plugin_ckeditor import CKEditor
> ckeditor = CKEditor(db)
> ckeditor.define_tables()
>
> db.define_table('content', Field('title', length=255),
> Field('public', 'boolean', default=True),
> Field('text', 'text', widget=ckeditor.widget) )
>
> 2:   editor/views/default/index.html
> Contents are:
>
> {{=ckeditor.edit_in_place('.editable', URL())}}
>
> After opening the index page in browser a ticket was raised which says
> this:
>
> Traceback (most recent call last):
>   File "gluon/restricted.py", line 224, in restricted
>   File "C:/Users/Ramashish 
> Gaurav/Downloads/web2py_win/web2py/applications/editor/models/db1.py" 
> , line 4, in 
> 
> ckeditor.define_tables()
>   File "applications\editor\modules\plugin_ckeditor.py", line 59, in 
> define_tables
> fake_migrate = fake_migrate,
>   File "gluon/dal.py", line 8414, in define_table
>   File "gluon/dal.py", line 8430, in lazy_define_table
>   File "gluon/dal.py", line 8952, in __init__
>   File "gluon/dal.py", line 8119, in check_reserved_keyword
> SyntaxError: invalid table/column name "length" is a "ALL" reserved SQL/NOSQL 
> keyword
>
> Please help me regarding this issue (May be I am not placing the right
> code at right place).
> (I don't know whether this editor will support programming languages like
> C, C++ etc, so if you have got any new simple programming language based
> editor for web2py app, I'll be happy to install that)
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Installation of an editor plugin in web2py app

2014-12-13 Thread Ramashish Gaurav

Hi all !

First of all, I am a newbie in web2py. 
I am working on a project and need to install an editor plugin in my web2py 
app named "editor". After hours of search I got ck_editor4 plugin 
 , installed 
it and then made some changes in models and views of my application. 
Changes were made in :

1:   editor/models/db1.py 
Contents are :

# -*- coding: utf-8 -*-
from plugin_ckeditor import CKEditor
ckeditor = CKEditor(db)
ckeditor.define_tables()

db.define_table('content', Field('title', length=255), 
Field('public', 'boolean', default=True), 
Field('text', 'text', widget=ckeditor.widget) )

2:   editor/views/default/index.html
Contents are:

{{=ckeditor.edit_in_place('.editable', URL())}}

After opening the index page in browser a ticket was raised which says this:

Traceback (most recent call last):
  File "gluon/restricted.py", line 224, in restricted
  File "C:/Users/Ramashish 
Gaurav/Downloads/web2py_win/web2py/applications/editor/models/db1.py" 
, line 4, in 

ckeditor.define_tables()
  File "applications\editor\modules\plugin_ckeditor.py", line 59, in 
define_tables
fake_migrate = fake_migrate,
  File "gluon/dal.py", line 8414, in define_table
  File "gluon/dal.py", line 8430, in lazy_define_table
  File "gluon/dal.py", line 8952, in __init__
  File "gluon/dal.py", line 8119, in check_reserved_keyword
SyntaxError: invalid table/column name "length" is a "ALL" reserved SQL/NOSQL 
keyword

Please help me regarding this issue (May be I am not placing the right code 
at right place). 
(I don't know whether this editor will support programming languages like 
C, C++ etc, so if you have got any new simple programming language based 
editor for web2py app, I'll be happy to install that)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Installation Error Windows Vista Home

2014-03-28 Thread egigi

Could someone help me about this error?

I'm trying to install the framework just downloaded but something doesn't 
work fine:

C:\web2py>web2py.exe
Traceback (most recent call last):
  File "", line 6, in 
  File "__main__.py", line 128, in 
  File "__main__web2py__.py", line 18, in 
  File "/home/mdipierro/make_web2py/web2py/gluon/__init__.py", line 15, in 

  File "/home/mdipierro/make_web2py/web2py/gluon/globals.py", line 19, in 

  File "/home/mdipierro/make_web2py/web2py/gluon/xmlrpc.py", line 10, in 

  File "SimpleXMLRPCServer.pyc", line 102, in 
  File "xmlrpclib.pyc", line 144, in 
  File "httplib.pyc", line 78, in 
  File "mimetools.pyc", line 6, in 
  File "tempfile.pyc", line 34, in 
  File "random.pyc", line 873, in 
  File "random.pyc", line 96, in __init__
  File "random.pyc", line 110, in seed
WindowsError: [Error -2146893795] Inizializzazione non corretta eseguita da 
una DLL del provider

Any suggest for me please?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.


[web2py] Installation of Firebird Driver not working

2013-10-18 Thread GregD
I'm trying to install the Firebird Driver FDB but not getting very far.

Here's my steps:

1.  Install easy_install [OK]

run easy_install fdb and get the following error:

C:\>easy_install fdb
Searching for fdb
Reading https://pypi.python.org/simple/fdb/
Best match: fdb 1.4
Downloading 
https://pypi.python.org/packages/source/f/fdb/fdb-1.4.tar.gz#md5=a99
34fd8004467ac69682e5b09e272c8
Processing fdb-1.4.tar.gz
Writing 
c:\users\admini~1.loc\appdata\local\temp\4\easy_install-fduyeg\fdb-1.4\s
etup.cfg
Running fdb-1.4\setup.py -q bdist_egg --dist-dir 
c:\users\admini~1.loc\appdata\l
ocal\temp\4\easy_install-fduyeg\fdb-1.4\egg-dist-tmp-qfzl2d
Traceback (most recent call last):
  File "C:\python27\Scripts\easy_install-script.py", line 9, in 
load_entry_point('setuptools==1.1.6', 'console_scripts', 
'easy_install')()
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
1925, in
 main
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
1912, in
 with_ei_usage
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
1929, in
 
  File "C:\python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
  File "C:\python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
  File "C:\python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
374, in
run
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
609, in
easy_install
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
639, in
install_item
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
825, in
install_eggs
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
1031, in
 build_and_install
  File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 
1016, in
 run_setup
  File "build\bdist.win32\egg\setuptools\sandbox.py", line 69, in run_setup
  File "build\bdist.win32\egg\setuptools\sandbox.py", line 120, in run
  File "build\bdist.win32\egg\setuptools\sandbox.py", line 71, in 
  File "setup.py", line 7, in 
  File 
"c:\users\admini~1.loc\appdata\local\temp\4\easy_install-fduyeg\fdb-1.4\f
db\__init__.py", line 23, in 
  File 
"c:\users\admini~1.loc\appdata\local\temp\4\easy_install-fduyeg\fdb-1.4\f
db\fbcore.py", line 34, in 
  File 
"c:\users\admini~1.loc\appdata\local\temp\4\easy_install-fduyeg\fdb-1.4\f
db\ibase.py", line 43, in 
  File "C:\python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: expected string or Unicode object, NoneType found


Any idea what I'm doing wrong?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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] installation

2013-08-01 Thread Loïc
You should find an answer here :

https://groups.google.com/d/msg/web2py/ry8x096dKZQ/eQrnusGVsloJ

And here :

http://www.web2py.com/books/default/chapter/29/03/overview?search=0.0.0.0

-- 

--- 
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] installation

2013-08-01 Thread Vicente Deluca
Hi, I've already installed web2py in my server and I look the wellcome 
webpage well from my localhost, but not from other IP. Did any knows if I 
must to configure some else?

tks

Vicente.

-- 

--- 
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] separate database and web server web2py installation

2013-02-18 Thread Michele Comitini
Rule of thumb

Local) simple queries, single web frontend
Remote) very complex queries/very large dataset, >1 web frontend

Separation is also very useful for maintenance, since upgrading paths
for python and or web2py may diverge from those of the db.
Upgrading the db can be very complex and usually in not security
critical, the reverse is true for the web frontend.

mic

2013/2/18 Derek :
> ssh does encryption, and encryption is a type of minor compression, so you
> may be transmitting less data on the line.
>
>
> On Monday, February 18, 2013 3:15:07 PM UTC-7, Richard wrote:
>>
>> Final result :
>>
>> no_ssh : 32.810 seconds (worst)
>> remote with ssh : 32.010 seconds
>> local : 31.494 seconds
>>
>> These are pretty basic tests, with profiler my dev machine may not be in
>> exact same state (more memory or less for the differents test particularly
>> the last test with no ssh).
>>
>> But it pretty strange that no ssh take even longer then with ssh...
>>
>> Richard
>>
>>
>>
>> Le lundi 18 février 2013 16:49:30 UTC-5, Niphlod a écrit :
>>>
>>> well, it depends.
>>> distinct boxes: more latency for every connection
>>> one-box: less latency but possibly ram,cpu,disk contention
>>> If your app uses a lot of CPU (that doesn't mean "your app do expensive
>>> db queries, that cpu is used by the db process") or a lot of memory or does
>>> a lot of writing/reading from disks, then having it separate can be better
>>> then having all in one box. response.toolbar() holds all the timings of the
>>> last queries, so you can use it to time the difference between a query on
>>> the local db instance and on the remote one.
>>>
>>> PS: ssh encryption on all traffic from/to the database adds another
>>> layer.
>>>
>>> On Monday, February 18, 2013 10:43:24 PM UTC+1, Richard wrote:

 Hello,

 I would like to know if someone has any experience to report here about
 separating web and database server into distinct server (2 linux box for
 example).

 I making some test actually and found no great improvement to do so... I
 access the remote database server through ssh port fowarding, so it may be
 the reason why I have no speed improvement.

 But I read that if web app is making a lot of db request (1000+) it may
 be a bad idea to split web server and database server
 (http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/).
 In web2py "represent=lambda..." trigger a lot of db request, so I wonder if
 web2py represent could be responsible of the no speed improvement.

 I use profiler and the difference between local and remote database is
 pretty small (.5 sec longer with remote db).

 I will try to profile remote database with no ssh to see if I get speed
 improvement and get back here.

 Thanks

 Richard

 PS.: I try to use "performance" as a tag, but I can't add new tag, but I
 think that having a "performance" tag or "speed" tag could be great...




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




Re: [web2py] separate database and web server web2py installation

2013-02-18 Thread Derek
ssh does encryption, and encryption is a type of minor compression, so you 
may be transmitting less data on the line.

On Monday, February 18, 2013 3:15:07 PM UTC-7, Richard wrote:
>
> Final result :
>
> no_ssh : 32.810 seconds (worst)
> remote with ssh : 32.010 seconds
> local : 31.494 seconds
>
> These are pretty basic tests, with profiler my dev machine may not be in 
> exact same state (more memory or less for the differents test particularly 
> the last test with no ssh).
>
> But it pretty strange that no ssh take even longer then with ssh...
>
> Richard
>
>
>
> Le lundi 18 février 2013 16:49:30 UTC-5, Niphlod a écrit :
>>
>> well, it depends.
>> distinct boxes: more latency for every connection
>> one-box: less latency but possibly ram,cpu,disk contention
>> If your app uses a lot of CPU (that doesn't mean "your app do expensive 
>> db queries, that cpu is used by the db process") or a lot of memory or does 
>> a lot of writing/reading from disks, then having it separate can be better 
>> then having all in one box. response.toolbar() holds all the timings of the 
>> last queries, so you can use it to time the difference between a query on 
>> the local db instance and on the remote one.
>>
>> PS: ssh encryption on all traffic from/to the database adds another layer.
>>
>> On Monday, February 18, 2013 10:43:24 PM UTC+1, Richard wrote:
>>>
>>> Hello,
>>>
>>> I would like to know if someone has any experience to report here about 
>>> separating web and database server into distinct server (2 linux box for 
>>> example).
>>>
>>> I making some test actually and found no great improvement to do so... I 
>>> access the remote database server through ssh port fowarding, so it may be 
>>> the reason why I have no speed improvement.
>>>
>>> But I read that if web app is making a lot of db request (1000+) it may 
>>> be a bad idea to split web server and database server (
>>> http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/).
>>>  
>>> In web2py "represent=lambda..." trigger a lot of db request, so I wonder if 
>>> web2py represent could be responsible of the no speed improvement.
>>>
>>> I use profiler and the difference between local and remote database is 
>>> pretty small (.5 sec longer with remote db).
>>>
>>> I will try to profile remote database with no ssh to see if I get speed 
>>> improvement and get back here.
>>>
>>> Thanks
>>>
>>> Richard
>>>
>>> PS.: I try to use "performance" as a tag, but I can't add new tag, but I 
>>> think that having a "performance" tag or "speed" tag could be great...
>>>
>>>
>>>
>>>
>>>

-- 

--- 
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] separate database and web server web2py installation

2013-02-18 Thread Richard
Final result :

no_ssh : 32.810 seconds (worst)
remote with ssh : 32.010 seconds
local : 31.494 seconds

These are pretty basic tests, with profiler my dev machine may not be in 
exact same state (more memory or less for the differents test particularly 
the last test with no ssh).

But it pretty strange that no ssh take even longer then with ssh...

Richard



Le lundi 18 février 2013 16:49:30 UTC-5, Niphlod a écrit :
>
> well, it depends.
> distinct boxes: more latency for every connection
> one-box: less latency but possibly ram,cpu,disk contention
> If your app uses a lot of CPU (that doesn't mean "your app do expensive db 
> queries, that cpu is used by the db process") or a lot of memory or does a 
> lot of writing/reading from disks, then having it separate can be better 
> then having all in one box. response.toolbar() holds all the timings of the 
> last queries, so you can use it to time the difference between a query on 
> the local db instance and on the remote one.
>
> PS: ssh encryption on all traffic from/to the database adds another layer.
>
> On Monday, February 18, 2013 10:43:24 PM UTC+1, Richard wrote:
>>
>> Hello,
>>
>> I would like to know if someone has any experience to report here about 
>> separating web and database server into distinct server (2 linux box for 
>> example).
>>
>> I making some test actually and found no great improvement to do so... I 
>> access the remote database server through ssh port fowarding, so it may be 
>> the reason why I have no speed improvement.
>>
>> But I read that if web app is making a lot of db request (1000+) it may 
>> be a bad idea to split web server and database server (
>> http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/).
>>  
>> In web2py "represent=lambda..." trigger a lot of db request, so I wonder if 
>> web2py represent could be responsible of the no speed improvement.
>>
>> I use profiler and the difference between local and remote database is 
>> pretty small (.5 sec longer with remote db).
>>
>> I will try to profile remote database with no ssh to see if I get speed 
>> improvement and get back here.
>>
>> Thanks
>>
>> Richard
>>
>> PS.: I try to use "performance" as a tag, but I can't add new tag, but I 
>> think that having a "performance" tag or "speed" tag could be great...
>>
>>
>>
>>
>>

-- 

--- 
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] separate database and web server web2py installation

2013-02-18 Thread Niphlod
well, it depends.
distinct boxes: more latency for every connection
one-box: less latency but possibly ram,cpu,disk contention
If your app uses a lot of CPU (that doesn't mean "your app do expensive db 
queries, that cpu is used by the db process") or a lot of memory or does a 
lot of writing/reading from disks, then having it separate can be better 
then having all in one box. response.toolbar() holds all the timings of the 
last queries, so you can use it to time the difference between a query on 
the local db instance and on the remote one.

PS: ssh encryption on all traffic from/to the database adds another layer.

On Monday, February 18, 2013 10:43:24 PM UTC+1, Richard wrote:
>
> Hello,
>
> I would like to know if someone has any experience to report here about 
> separating web and database server into distinct server (2 linux box for 
> example).
>
> I making some test actually and found no great improvement to do so... I 
> access the remote database server through ssh port fowarding, so it may be 
> the reason why I have no speed improvement.
>
> But I read that if web app is making a lot of db request (1000+) it may be 
> a bad idea to split web server and database server (
> http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/).
>  
> In web2py "represent=lambda..." trigger a lot of db request, so I wonder if 
> web2py represent could be responsible of the no speed improvement.
>
> I use profiler and the difference between local and remote database is 
> pretty small (.5 sec longer with remote db).
>
> I will try to profile remote database with no ssh to see if I get speed 
> improvement and get back here.
>
> Thanks
>
> Richard
>
> PS.: I try to use "performance" as a tag, but I can't add new tag, but I 
> think that having a "performance" tag or "speed" tag could be great...
>
>
>
>
>

-- 

--- 
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] separate database and web server web2py installation

2013-02-18 Thread Richard
Hello,

I would like to know if someone has any experience to report here about 
separating web and database server into distinct server (2 linux box for 
example).

I making some test actually and found no great improvement to do so... I 
access the remote database server through ssh port fowarding, so it may be 
the reason why I have no speed improvement.

But I read that if web app is making a lot of db request (1000+) it may be 
a bad idea to split web server and database server (
http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/).
 
In web2py "represent=lambda..." trigger a lot of db request, so I wonder if 
web2py represent could be responsible of the no speed improvement.

I use profiler and the difference between local and remote database is 
pretty small (.5 sec longer with remote db).

I will try to profile remote database with no ssh to see if I get speed 
improvement and get back here.

Thanks

Richard

PS.: I try to use "performance" as a tag, but I can't add new tag, but I 
think that having a "performance" tag or "speed" tag could be great...




-- 

--- 
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: What data should be private (for security) in a standard web2py installation?

2012-09-11 Thread Niphlod
- the dal URI if it contains logins/password/db that is not localhost
- eventually janrain key is to be kept private as well.
PS: Auth.settings_hmac_key in modern scaffolding apps is not written 
"plainly": it is replaced by Auth.get_or_create_key() that reads from 
private/auth.key or it creates a new one (so if you don't ship 
private/auth.key you're fine)

My "normal" environment is having a 0_production.py and a 0_test.py with 
DAL URI, db connection, Auth and mail parameters. In the db.py reside all 
define_table() statements. Publishing 0_test.py to the repo, added 
0_production.py instead to the ignore list. When deploying to production 
server, 0_production.py is already there (or transferred separately), 
0_test.py is renamed to 0_test.py.bak.

Little trick, you can have a 0_Atest.py and a 0_Zproduction.py . As long as 
all the things defined into 0_Atest.py are "redefined" into 
0_Zproduction.py you are fine (models are executed alphabetically). Anyway 
it's not recommended, also for performance issues (ideally you have already 
a "deployment" script and renaming one file shouldn't be so hard ^_^)

On Tuesday, September 11, 2012 9:20:34 PM UTC+2, monotasker wrote:
>
> I'm using github for open-source development of some web2py apps and want 
> to make sure I'm not exposing any data that would be a security risk. As 
> far as I can tell, the sensitive pieces of data in a standard app would be:
>
> - email account information (by default in db.py)
> - any recaptcha keys (by default in db.py)
> - the private/auth.key file
>
> What about the Auth.settings.hmac_key that appears in my db.py? (As you 
> can tell, I'm not familiar with much of how these encryption schemes work.) 
> Anything else that I'm missing? My plan is to have db.py read any sensitive 
> data from a text file on the server, in a folder that isn't shared on 
> github.
>
> Ian
>

-- 





[web2py] What data should be private (for security) in a standard web2py installation?

2012-09-11 Thread monotasker
I'm using github for open-source development of some web2py apps and want 
to make sure I'm not exposing any data that would be a security risk. As 
far as I can tell, the sensitive pieces of data in a standard app would be:

- email account information (by default in db.py)
- any recaptcha keys (by default in db.py)
- the private/auth.key file

What about the Auth.settings.hmac_key that appears in my db.py? (As you can 
tell, I'm not familiar with much of how these encryption schemes work.) 
Anything else that I'm missing? My plan is to have db.py read any sensitive 
data from a text file on the server, in a folder that isn't shared on 
github.

Ian

-- 





Re: [web2py] Re: web2py installation

2011-06-13 Thread José Luis Redrejo Rodríguez
web2py debian packages available in sid work perfectly in squeeze and
Ubuntu Lucid. You can use other manual methods to install web2py, but
using package management has obvious advantages in a Debian
distribution. You can download the packages manually and install them
using dpkg or gdebi.


2011/6/14 Jason Schmidt :
> Just to clarify: I'm after Apache virtualhost config to handle
> multiple domains for web2py apps.
>
> On Jun 13, 10:10 pm, Jason Schmidt  wrote:
>> I know I should change the title of this post.
>>
>> I'm after Apache virtualhost config to handle multiple domains.
>> Googled quite-a-bit, haven't found an ideal solution. Anyone w/ an
>> example?
>>


As I told you in my previous email, you have a detailed description of
how to do it in the README.Debian of the python-web2py package.

Regards.



>> On Jun 13, 3:58 pm, pbreit  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Make sure to update to the latest stable version. At this time that would
>> > be:
>>
>> >      hg update R-1.96.4


[web2py] Re: web2py installation

2011-06-13 Thread Jason Schmidt
Just to clarify: I'm after Apache virtualhost config to handle
multiple domains for web2py apps.

On Jun 13, 10:10 pm, Jason Schmidt  wrote:
> I know I should change the title of this post.
>
> I'm after Apache virtualhost config to handle multiple domains.
> Googled quite-a-bit, haven't found an ideal solution. Anyone w/ an
> example?
>
> On Jun 13, 3:58 pm, pbreit  wrote:
>
>
>
>
>
>
>
> > Make sure to update to the latest stable version. At this time that would
> > be:
>
> >      hg update R-1.96.4


[web2py] Re: web2py installation

2011-06-13 Thread Jason Schmidt
I know I should change the title of this post.

I'm after Apache virtualhost config to handle multiple domains.
Googled quite-a-bit, haven't found an ideal solution. Anyone w/ an
example?

On Jun 13, 3:58 pm, pbreit  wrote:
> Make sure to update to the latest stable version. At this time that would
> be:
>
>      hg update R-1.96.4


[web2py] Re: web2py installation

2011-06-13 Thread pbreit
Make sure to update to the latest stable version. At this time that would 
be:

 hg update R-1.96.4



[web2py] Re: web2py installation

2011-06-13 Thread pbreit
I always recommend installing Web2py from version control:
hg clone https://web2py.googlecode.com/hg/ web2py

That's pretty much all you need to do. That allows for much better control 
over which version of Web2py you are running. Web2py itself requires no 
further setup.

I'm not exactly sure about setting it up for Apache (I use Nginx) but there 
is this script that you can use or at least review:
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh


[web2py] Re: web2py installation

2011-06-13 Thread Jason Schmidt
python-web2py package seems to only available in wheezy and sid. My
current prod servers are running Squeeze and Ubuntu Lucid. So seems
like source is the only way. Anyone has a good installation guide for
Debain Squeeze and/or Ubuntu Lucid? My main concern is to keep the
same directory structure and virtual hosts using Apache w/ WSGI.



On Jun 13, 7:27 am, José Luis Redrejo Rodríguez 
wrote:
> 2011/6/13 Jason Schmidt :
>
> > On my debian server, I have setup Apache + wsgi + django. I've
> > multiple domains hosted. Structure as follows:
>
> > /srv/www/example1.com/public_html/
> > /srv/www/example1.com/application/
>
> > /srv/www/example2.com/public_html/
> > /srv/www/example2.com/application/
>
> > I'm accessing my django projects using Apache virtual host
> > configuration for domain.
> > (i.e) WSGIScriptAlias / /srv/www/example1.com/application/django.wsgi
>
> > I want to play around with web2py. How can I install web2py without
> > changing my directory structure and using Apache virtual host config?
>
> Yes, you can
> Take a look at the /usr/share/doc/python-web2py/README.Debian included
> in python-web2py package in Debian. It described how to set up a
> virtual host with web2py  + Apache + wsgi  or how to make it run in an
> apache subdirectory over a already setup host.
>
> Regards.


Re: [web2py] web2py installation

2011-06-13 Thread José Luis Redrejo Rodríguez
2011/6/13 Jason Schmidt :
> On my debian server, I have setup Apache + wsgi + django. I've
> multiple domains hosted. Structure as follows:
>
> /srv/www/example1.com/public_html/
> /srv/www/example1.com/application/
>
> /srv/www/example2.com/public_html/
> /srv/www/example2.com/application/
>
> I'm accessing my django projects using Apache virtual host
> configuration for domain.
> (i.e) WSGIScriptAlias / /srv/www/example1.com/application/django.wsgi
>
> I want to play around with web2py. How can I install web2py without
> changing my directory structure and using Apache virtual host config?

Yes, you can
Take a look at the /usr/share/doc/python-web2py/README.Debian included
in python-web2py package in Debian. It described how to set up a
virtual host with web2py  + Apache + wsgi  or how to make it run in an
apache subdirectory over a already setup host.

Regards.


[web2py] web2py installation

2011-06-13 Thread Jason Schmidt
On my debian server, I have setup Apache + wsgi + django. I've
multiple domains hosted. Structure as follows:

/srv/www/example1.com/public_html/
/srv/www/example1.com/application/

/srv/www/example2.com/public_html/
/srv/www/example2.com/application/

I'm accessing my django projects using Apache virtual host
configuration for domain.
(i.e) WSGIScriptAlias / /srv/www/example1.com/application/django.wsgi

I want to play around with web2py. How can I install web2py without
changing my directory structure and using Apache virtual host config?


[web2py] Re: [w2py-dev] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-22 Thread Arun K.Rajeevan
I'm using trunk (which I pull in and update almost daily)

[web2py] Re: [w2py-dev] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-22 Thread Arun K.Rajeevan
I use trunk (every day updates)

[web2py] Re: [w2py-dev] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Massimo Di Pierro
Are you using trunk or stable?

On Apr 21, 2011, at 1:56 PM, Arun K.Rajeevan wrote:

> btw., If I change line 224 of  cache.py to "folder = folder or 
> os.path.join(os.path.abspath(request.folder), 'cache')"
> I get following error
> OSError: [Errno 2] No such file or directory: 
> '/home/kra/Works/Python/web2py_projects/trunk/applications/powerpack/cache'
> 
> It should be: 
> '/home/kra/Works/Python/web2py_projects/applications/powerpack/cache'
> 
> obviuosly request.folder that's passed in is incorrect and doesn't consider 
> --folder option that I've used.
> 
> -- 
> mail from:GoogleGroups "web2py-developers" mailing list
> make speech: web2py-develop...@googlegroups.com
> unsubscribe: web2py-developers+unsubscr...@googlegroups.com
> details : http://groups.google.com/group/web2py-developers
> the project: http://code.google.com/p/web2py/
> official : http://www.web2py.com/



[web2py] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Arun K.Rajeevan
btw., If I change line 224 of  cache.py to "folder = folder or 
os.path.join(os.path.abspath(request.folder), 'cache')"
I get following error
OSError: [Errno 2] No such file or directory: 
'/home/kra/Works/Python/web2py_projects/trunk/applications/powerpack/cache'

It should be: 
'/home/kra/Works/Python/web2py_projects/applications/powerpack/cache'

obviuosly request.folder that's passed in is incorrect and doesn't consider 
--folder option that I've used.


[web2py] Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Arun K.Rajeevan
I want to test  Martin Mulone's power pack plug-in.
I can test this in usual way, ie., application is within web2py directory.

But my problem is that I kept all my applications out of web2py installation 
directory.
Now if I run following command, all I get is an error saying "application 
powerpack doesn't exist. want to create(y/n)?" 
and if I say yes it will create an application within application folder 
inside web2py installation directory. 
It never sees the powerpack app within my custom folder where I kept 
applications.  

$> python web2py.py -f /home/kra/Works/Python/web2py_projects -S powerpack 
-M -N -R applications/powerpack/private/groups.py 


If I say no, it gives an error saying that *OSError: [Errno 2] No such file 
or directory: 'applications/powerpack/cache'*, it gives same error even if 
there is a directory "cache"
So I assume it must be the problem with web2py, which doesn't uses 
os.path.abspath()
I had one such issue before I tried different folder set-up, So, please look 
into it. Also I'll try to investigate and fix the problem myself.

For those who're concerned trace-back is included below.

application powerpack does not exist, create (y/n)?n
Traceback (most recent call last):
  File "trunk/web2py.py", line 19, in 
gluon.widget.start(cron=True)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/widget.py", line 
804, in start
import_models=options.import_models, startfile=options.run)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/shell.py", line 
185, in run
_env = env(a, c=c, import_models=import_models)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/shell.py", line 
122, in env
environment = build_environment(request, response, session)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/compileapp.py", 
line 228, in build_environment
environment['cache'] = Cache(request)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/cache.py", line 
365, in __init__
self.disk = CacheOnDisk(request)
  File "/home/kra/Works/Python/web2py_projects/trunk/gluon/cache.py", line 
227, in __init__
os.mkdir(folder)
OSError: [Errno 2] No such file or directory: 'applications/powerpack/cache'



Re: [web2py] Installation on GoDaddy shared server

2011-01-21 Thread Kenneth Lundström

Simplest way is http://web2py.com/book/default/chapter/03

> How do I install web2py on a GoDaddy shared server.

No idea about GoDaddy but,

> Also what are the steps to install it on a regular linux server.

It depends on alot of things, what linux, what is installed on it and so 
on. www.web2pyslices.com has pages for different linux distros, for example:


http://web2pyslices.com/main/slices/take_slice/110 (Web2py + uWSGI + 
Cherokee on Ubuntu 10.04)
http://web2pyslices.com/main/slices/take_slice/98 (Deploy web2py on 
Fedora/CentOS/Red Hat)


Hopefully this helps, The book at http://web2py.com/book/ is very, very 
good. I recommend searching it, the Slices and mailing list archive 
(https://groups.google.com/group/web2py) first, if you can´t anything 
helping forward ask on the list. You´ll usually get a very fast reply.



Kenneth



[web2py] Installation on GoDaddy shared server

2011-01-21 Thread stargate
How do I install web2py on a GoDaddy shared server.  Also what are the
steps to install it on a regular linux server.


[web2py] Installation of a application fails

2010-07-07 Thread Kenneth
Hello,

yesterday I tried to install Editable jqgrid from Eban software but I
get 'unable to install application "testing"'. What I read on the web
about this is that there is somekind of problem with read/write
rights. Trying to solve this I used the chown apache:web2py * -R
command on my web2py directory. I can´t find any logs where I could
read why installation fails.


Kenneth


[web2py] Re: Multiple domains one web2py installation.

2010-06-13 Thread Yarko Tymciurak

On Jun 13, 9:51 am, annet  wrote:
> Hi Vasile,
>
> > please take a look if that is what you 
> > needhttp://groups.google.com/group/web2py/browse_thread/thread/fac136d7e1...
>
> Thanks for pointing me in the right direction. I'll give it a try and
> let you know if it works.
>
> > - webfaction application is a different thing than a web2py application
>
> I know, I installed web2py using their custom install script and named
> the application customweb2py. The web2py applications are located in
> customweb2py/web2py/applications/
>
> Do you know whether there is a limit to the number of applications you
> can have within web2py and routes.py.

Annet -

It might be useful for you to draw a diagram.   You are talking about
two instances of web2py server;
Each server can have many applications;

>From webfaction's perspective - web2py is an "application";

from web2py's perspective - "welcome" is an application;

If you draw a map of client request => dsn-lookup => your apache
instance => wsgi => web2py => application

you can start to see where things happen more clearly.

For example:   your client wants to have _their_  xxx.com  redirect
you annet.com/something/default/index:
Where in your map can this be done?   One is to have xxx.com  (someone
elses server) redirect (that then becomes a new request, i.e. a new
address+parameters set);
Another is to have two dns entries point to the same apache instance -
for example, from panel.webfaction.com,  menu:  Domains/websites >>
Websites, you can set more than one domain to point to your single
web2py installation (  Domain/websites >> Applications) --- ie. you
can have this.foo.com  and www.bar.com both point to (for example)
customweb2py: /my_web2py_app   --- this represents webfaction setting
up (in essence) your apache instance for you (through the panel).

As you start to ask the questions of "what comes in at this point?"
and "what can be done at this level", you will start seeing more
clearly what your possibilities are, and then can start asking
yourself what the various tradeoffs are for redirections etc. at
various points in your map.   There are various tools, command line
and network monitoring that you can get into if you want to see more
details of what is going back and forth, but start by making some
model for yourself of what the path is from that web browser to your
controller.

I hope this is helpful.

Regards,
- Yarko


>
> According to webfaction's support people you cannot install only one
> web2py application in an account, when I install a second web2py
> called secondweb2py, how do customweb2py and secondweb2py know about
> each others existence?
>
> Kind regards,
>
> Annet.


[web2py] Re: Multiple domains one web2py installation.

2010-06-13 Thread annet
Hi Vasile,

> please take a look if that is what you 
> needhttp://groups.google.com/group/web2py/browse_thread/thread/fac136d7e1...

Thanks for pointing me in the right direction. I'll give it a try and
let you know if it works.


> - webfaction application is a different thing than a web2py application

I know, I installed web2py using their custom install script and named
the application customweb2py. The web2py applications are located in
customweb2py/web2py/applications/

Do you know whether there is a limit to the number of applications you
can have within web2py and routes.py.

According to webfaction's support people you cannot install only one
web2py application in an account, when I install a second web2py
called secondweb2py, how do customweb2py and secondweb2py know about
each others existence?


Kind regards,

Annet.


Re: [web2py] Re: Multiple domains one web2py installation.

2010-06-13 Thread Vasile Ermicioi
please take a look if that is what you need
http://groups.google.com/group/web2py/browse_thread/thread/fac136d7e1120166/b9a4f8eb744e29cb

notes:
- I also use webfaction
- webfaction application is a different thing than a web2py application


[web2py] Re: Multiple domains one web2py installation.

2010-06-13 Thread annet
To add to the confusion:

On my follow up question:

So, I would need an installation of web2py for every customer who
would like to have his domain reference a function within my
application? And this also holds true, if I'd install an application
for that customer within web2py?


I received this reply:

You would need a separate application for each separate domain name
that you want to display a different page on, unless the same web2py
application can serve different pages, based on the domain name that
is used - and I am not aware of such a feature. You might want to
check with the web2py developers whether it is possible to serve
different pages based on the domain name that is used in the HTTP
request.

The separate application can be a full fledged web2py installation, or
a redirect to the main URL (e.g.to 
http://www.centralfit.nl/init/homepage/index/443)
, or an iframe page used to mask to actual URL, or a simple HTML copy
of the page(s) your web2py installation generates, or anything that
displays the content you want to see actually.


I guess the feature mentioned is routes.py?

The second part of the reply doesn't ring a bell at all, I hope one of
you can tell me what is being explained here.


Kind regards,

Annet.


[web2py] Multiple domains one web2py installation.

2010-06-13 Thread annet
I posted the following question at WebFaction:

One of my customers asked me whether it would be possible to have his
domain centralfit.nl reference a page within my web2py app. Is this
simply a matter of adding the domain centralfit.nl to the Control
Panel, and creating a website that references this single page, by
entering a website name 'centralfit', selecting the subdomain www.centralfit.nl
which corresponds to the website record and adding a site app where
'customweb2py' is the app and /init/homepage/index/443 is the URL in
which 'init' is the application, 'homepage' is the controller, 'index'
is the function and '443' is the argument. Or isn't it this simple?


There reply reads as follows:

If you do what you described, you would end up with your
"customweb2py" app available through 
http://www.centralfit.nl/init/homepage/index/443;
no page will be displayed at http://www.centralfit.nl though.

You will definitely need a second application if you want 
http://www.centralfit.nl
to show different pages than http://www.fitwise.nl


I wonder whether this is a limitation of WebFaction or a limitation in
general. I built an application that, based on a company_id, exposes a
fully functional web application. If the customers domain cannot
reference this application, this idea is useless.

Is there a way to solve this problem?


Kind regards,

Annet.







[web2py] Multiple domains one web2py installation.

2010-06-13 Thread annet
I posted the following question at WebFaction:

One of my customers asked me whether it would be possible to have his
domain centralfit.nl reference a page within my web2py app. Is this
simply a matter of adding the domain centralfit.nl to the Control
Panel, and creating a website that references this single page, by
entering a website name 'centralfit', selecting the subdomain www.centralfit.nl
which corresponds to the website record and adding a site app where
'customweb2py' is the app and /init/homepage/index/443 is the URL in
which 'init' is the application, 'homepage' is the controller, 'index'
is the function and '443' is the argument. Or isn't it this simple?


There reply reads as follows:

If you do what you described, you would end up with your
"customweb2py" app available through 
http://www.centralfit.nl/init/homepage/index/443;
no page will be displayed at http://www.centralfit.nl though.

You will definitely need a second application if you want 
http://www.centralfit.nl
to show different pages than http://www.fitwise.nl


I wonder whether this is a limitation of WebFaction or a limitation in
general. I built an application that, based on a company_id, exposes a
fully functional web application. If the customers domain cannot
reference this application, this idea is useless.

Is there a way to solve this problem?


Kind regards,

Annet.







[web2py] Re: unable to install app from a dev in a prod web2py installation

2010-06-03 Thread mdipierro

> Can I just copy the all the tree in /applications/myapp from my dev to my
> prod web2py environnement?

yes


[web2py] unable to install app from a dev in a prod web2py installation

2010-06-03 Thread Jean Guy
Hello,

I am unable unpack it in my prod web2py environnement...

Is it a Linux permission issue?

I pack it from my dev web2py

I try to give my app.w2p www-data owner by

sudo chown www-data.www-data myapp.w2p

Before try to install it in my prod web2py installation.

My prod web2py is full fonctionnal as long as the ubuntu installation script
worked just fine and I am able to access it from local and other computers
at http or https by autosigned certificat.

Can I just copy the all the tree in /applications/myapp from my dev to my
prod web2py environnement?

Jonhy


[web2py:14203] Re: Minimal web2py installation on GAE

2008-12-28 Thread sudhakar m
In app.yaml, the section called skip_files lists file patterns that
> appcfg skips when uploading to GAE.
>

Yep. This is a much better approach for doing the same.

For contribution, I have created a dark color scheme for Edit area. I will
put it in another thread, so that it can be easly accessible.

Sudhakar.M

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14192] Re: Minimal web2py installation on GAE

2008-12-28 Thread Robin B

In app.yaml, the section called skip_files lists file patterns that
appcfg skips when uploading to GAE.

http://code.google.com/appengine/docs/configuringanapp.html#Skipping_...

The skip_files patterns currently skip the tar files the admin,
example app etc, since those files are not
used on GAE and any file over 1MB in size cannot be uploaded to GAE.

If you wanted to skip additional files, add more patters to the
skip_files section of your app.yaml.

Robin

On Dec 28, 7:55 am, "sudhakar m"  wrote:
> Thanks massimo. I did it little bit differently. I created the symbolic link
> between web2py & GAE folder, with GAE folder pointing to only the required
> files & folders.
>
> I could use the admin project for editing files locally & then use appcfg
> for upload from GAE.
>
> So far its been working great. Thanks again for web2py.
>
> Sudhakar.M
>
> 2008/12/28 mdipierro 
>
>
>
> > mkdir applications/mynewapp
> > cd applications/mynewapp
> > tar xvf ../../welcome.tar
>
> > Massimo
>
> > On Dec 28, 1:35 am, "sudhakar m"  wrote:
> > > Sorry for the double post. I was having admin & welcome, in the
> > application
> > > folder. Now its 1.1mb. I was of the impression tat these 2 folders are
> > > required as they are basic apps for web2py. I have also removed the
> > scripts
> > > folder.
>
> > > Ok. Now I dont have the admin interface. Is there any command line
> > > tool(generators) available to create files & folders?
>
> > > Sudhakar.M
>
> > > 2008/12/28 mdipierro 
>
> > > > This seems a lot. Are you running the binary distribution? Do you need
> > > > the binary distribution?
> > > > If you have python installed you only need:
>
> > > > web2py/*.py
> > > > web2py/gluon/*.py (and folders therein)
> > > > web2py/deposit/   (empty)
> > > > web2py/applications/   (and your own apps in here)
>
> > > > should be about 1MB
>
> > > > Massimo
>
> > > > On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > > > > I have been playing with web2py for last few days. I came from rails
> > & my
> > > > > exposure to both python & web2py is very limited.
>
> > > > > I tried django too as it comes bundled with GAE, but choose web2py
> > for
> > > > > portability of Web2py ORM as it can generate GQL quires (with some
> > > > obvious
> > > > > limitation of joins, counts, sort..)
>
> > > > > Back to the question in subject, I would like to have a bare minimal
> > > > > installation of web2py, so that it will be easy to manage & debug.
> > > > > After extracting from source, web2py was occupying 7mb. Once
> > installed it
> > > > > occupied around 18 mb. I believe some of the sample apps also got
> > > > extracted.
> > > > > I uninstalled examples & now its occupying around 10 mb. After
> > removing
> > > > the
> > > > > 3 tar files, it came down to 3.1mb. Still thats lot of files..
>
> > > > > Can someone help me identify the files & directores that is not
> > required
> > > > > when deploying in GAE?
>
> > > > > Thanks,
> > > > > Sudhakar.M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14191] Re: Minimal web2py installation on GAE

2008-12-28 Thread Robin B

In gaehandler.py, you can add a section called skip_files which lists
file patterns that appcfg skips when uploading to GAE.

http://code.google.com/appengine/docs/configuringanapp.html#Skipping_Files

I thought a skip_files section was included in the cgi handler, that
skipped the tar files the admin app etc, since those files are not
used on GAE and can cause the upload to fail if any file is over 1MB
in size, but when I look in trunk, skip_files is not present, so it is
a good idea to add skip_files section back in to gaehandler.py.

Robin

On Dec 28, 7:55 am, "sudhakar m"  wrote:
> Thanks massimo. I did it little bit differently. I created the symbolic link
> between web2py & GAE folder, with GAE folder pointing to only the required
> files & folders.
>
> I could use the admin project for editing files locally & then use appcfg
> for upload from GAE.
>
> So far its been working great. Thanks again for web2py.
>
> Sudhakar.M
>
> 2008/12/28 mdipierro 
>
>
>
> > mkdir applications/mynewapp
> > cd applications/mynewapp
> > tar xvf ../../welcome.tar
>
> > Massimo
>
> > On Dec 28, 1:35 am, "sudhakar m"  wrote:
> > > Sorry for the double post. I was having admin & welcome, in the
> > application
> > > folder. Now its 1.1mb. I was of the impression tat these 2 folders are
> > > required as they are basic apps for web2py. I have also removed the
> > scripts
> > > folder.
>
> > > Ok. Now I dont have the admin interface. Is there any command line
> > > tool(generators) available to create files & folders?
>
> > > Sudhakar.M
>
> > > 2008/12/28 mdipierro 
>
> > > > This seems a lot. Are you running the binary distribution? Do you need
> > > > the binary distribution?
> > > > If you have python installed you only need:
>
> > > > web2py/*.py
> > > > web2py/gluon/*.py (and folders therein)
> > > > web2py/deposit/   (empty)
> > > > web2py/applications/   (and your own apps in here)
>
> > > > should be about 1MB
>
> > > > Massimo
>
> > > > On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > > > > I have been playing with web2py for last few days. I came from rails
> > & my
> > > > > exposure to both python & web2py is very limited.
>
> > > > > I tried django too as it comes bundled with GAE, but choose web2py
> > for
> > > > > portability of Web2py ORM as it can generate GQL quires (with some
> > > > obvious
> > > > > limitation of joins, counts, sort..)
>
> > > > > Back to the question in subject, I would like to have a bare minimal
> > > > > installation of web2py, so that it will be easy to manage & debug.
> > > > > After extracting from source, web2py was occupying 7mb. Once
> > installed it
> > > > > occupied around 18 mb. I believe some of the sample apps also got
> > > > extracted.
> > > > > I uninstalled examples & now its occupying around 10 mb. After
> > removing
> > > > the
> > > > > 3 tar files, it came down to 3.1mb. Still thats lot of files..
>
> > > > > Can someone help me identify the files & directores that is not
> > required
> > > > > when deploying in GAE?
>
> > > > > Thanks,
> > > > > Sudhakar.M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14186] Re: Minimal web2py installation on GAE

2008-12-28 Thread mdipierro

If you have time would you write a howto on AlterEgo?

Massimo

On Dec 28, 7:55 am, "sudhakar m"  wrote:
> Thanks massimo. I did it little bit differently. I created the symbolic link
> between web2py & GAE folder, with GAE folder pointing to only the required
> files & folders.
>
> I could use the admin project for editing files locally & then use appcfg
> for upload from GAE.
>
> So far its been working great. Thanks again for web2py.
>
> Sudhakar.M
>
> 2008/12/28 mdipierro 
>
>
>
> > mkdir applications/mynewapp
> > cd applications/mynewapp
> > tar xvf ../../welcome.tar
>
> > Massimo
>
> > On Dec 28, 1:35 am, "sudhakar m"  wrote:
> > > Sorry for the double post. I was having admin & welcome, in the
> > application
> > > folder. Now its 1.1mb. I was of the impression tat these 2 folders are
> > > required as they are basic apps for web2py. I have also removed the
> > scripts
> > > folder.
>
> > > Ok. Now I dont have the admin interface. Is there any command line
> > > tool(generators) available to create files & folders?
>
> > > Sudhakar.M
>
> > > 2008/12/28 mdipierro 
>
> > > > This seems a lot. Are you running the binary distribution? Do you need
> > > > the binary distribution?
> > > > If you have python installed you only need:
>
> > > > web2py/*.py
> > > > web2py/gluon/*.py (and folders therein)
> > > > web2py/deposit/   (empty)
> > > > web2py/applications/   (and your own apps in here)
>
> > > > should be about 1MB
>
> > > > Massimo
>
> > > > On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > > > > I have been playing with web2py for last few days. I came from rails
> > & my
> > > > > exposure to both python & web2py is very limited.
>
> > > > > I tried django too as it comes bundled with GAE, but choose web2py
> > for
> > > > > portability of Web2py ORM as it can generate GQL quires (with some
> > > > obvious
> > > > > limitation of joins, counts, sort..)
>
> > > > > Back to the question in subject, I would like to have a bare minimal
> > > > > installation of web2py, so that it will be easy to manage & debug.
> > > > > After extracting from source, web2py was occupying 7mb. Once
> > installed it
> > > > > occupied around 18 mb. I believe some of the sample apps also got
> > > > extracted.
> > > > > I uninstalled examples & now its occupying around 10 mb. After
> > removing
> > > > the
> > > > > 3 tar files, it came down to 3.1mb. Still thats lot of files..
>
> > > > > Can someone help me identify the files & directores that is not
> > required
> > > > > when deploying in GAE?
>
> > > > > Thanks,
> > > > > Sudhakar.M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:/] Re: Minimal web2py installation on GAE

2008-12-28 Thread sudhakar m
Thanks massimo. I did it little bit differently. I created the symbolic link
between web2py & GAE folder, with GAE folder pointing to only the required
files & folders.

I could use the admin project for editing files locally & then use appcfg
for upload from GAE.

So far its been working great. Thanks again for web2py.

Sudhakar.M

2008/12/28 mdipierro 

>
> mkdir applications/mynewapp
> cd applications/mynewapp
> tar xvf ../../welcome.tar
>
> Massimo
>
> On Dec 28, 1:35 am, "sudhakar m"  wrote:
> > Sorry for the double post. I was having admin & welcome, in the
> application
> > folder. Now its 1.1mb. I was of the impression tat these 2 folders are
> > required as they are basic apps for web2py. I have also removed the
> scripts
> > folder.
> >
> > Ok. Now I dont have the admin interface. Is there any command line
> > tool(generators) available to create files & folders?
> >
> > Sudhakar.M
> >
> > 2008/12/28 mdipierro 
> >
> >
> >
> > > This seems a lot. Are you running the binary distribution? Do you need
> > > the binary distribution?
> > > If you have python installed you only need:
> >
> > > web2py/*.py
> > > web2py/gluon/*.py (and folders therein)
> > > web2py/deposit/   (empty)
> > > web2py/applications/   (and your own apps in here)
> >
> > > should be about 1MB
> >
> > > Massimo
> >
> > > On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > > > I have been playing with web2py for last few days. I came from rails
> & my
> > > > exposure to both python & web2py is very limited.
> >
> > > > I tried django too as it comes bundled with GAE, but choose web2py
> for
> > > > portability of Web2py ORM as it can generate GQL quires (with some
> > > obvious
> > > > limitation of joins, counts, sort..)
> >
> > > > Back to the question in subject, I would like to have a bare minimal
> > > > installation of web2py, so that it will be easy to manage & debug.
> > > > After extracting from source, web2py was occupying 7mb. Once
> installed it
> > > > occupied around 18 mb. I believe some of the sample apps also got
> > > extracted.
> > > > I uninstalled examples & now its occupying around 10 mb. After
> removing
> > > the
> > > > 3 tar files, it came down to 3.1mb. Still thats lot of files..
> >
> > > > Can someone help me identify the files & directores that is not
> required
> > > > when deploying in GAE?
> >
> > > > Thanks,
> > > > Sudhakar.M
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14180] Re: Minimal web2py installation on GAE

2008-12-28 Thread mdipierro

mkdir applications/mynewapp
cd applications/mynewapp
tar xvf ../../welcome.tar

Massimo

On Dec 28, 1:35 am, "sudhakar m"  wrote:
> Sorry for the double post. I was having admin & welcome, in the application
> folder. Now its 1.1mb. I was of the impression tat these 2 folders are
> required as they are basic apps for web2py. I have also removed the scripts
> folder.
>
> Ok. Now I dont have the admin interface. Is there any command line
> tool(generators) available to create files & folders?
>
> Sudhakar.M
>
> 2008/12/28 mdipierro 
>
>
>
> > This seems a lot. Are you running the binary distribution? Do you need
> > the binary distribution?
> > If you have python installed you only need:
>
> > web2py/*.py
> > web2py/gluon/*.py (and folders therein)
> > web2py/deposit/   (empty)
> > web2py/applications/   (and your own apps in here)
>
> > should be about 1MB
>
> > Massimo
>
> > On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > > I have been playing with web2py for last few days. I came from rails & my
> > > exposure to both python & web2py is very limited.
>
> > > I tried django too as it comes bundled with GAE, but choose web2py for
> > > portability of Web2py ORM as it can generate GQL quires (with some
> > obvious
> > > limitation of joins, counts, sort..)
>
> > > Back to the question in subject, I would like to have a bare minimal
> > > installation of web2py, so that it will be easy to manage & debug.
> > > After extracting from source, web2py was occupying 7mb. Once installed it
> > > occupied around 18 mb. I believe some of the sample apps also got
> > extracted.
> > > I uninstalled examples & now its occupying around 10 mb. After removing
> > the
> > > 3 tar files, it came down to 3.1mb. Still thats lot of files..
>
> > > Can someone help me identify the files & directores that is not required
> > > when deploying in GAE?
>
> > > Thanks,
> > > Sudhakar.M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14177] Re: Minimal web2py installation on GAE

2008-12-27 Thread sudhakar m
Sorry for the double post. I was having admin & welcome, in the application
folder. Now its 1.1mb. I was of the impression tat these 2 folders are
required as they are basic apps for web2py. I have also removed the scripts
folder.

Ok. Now I dont have the admin interface. Is there any command line
tool(generators) available to create files & folders?


Sudhakar.M

2008/12/28 mdipierro 

>
> This seems a lot. Are you running the binary distribution? Do you need
> the binary distribution?
> If you have python installed you only need:
>
> web2py/*.py
> web2py/gluon/*.py (and folders therein)
> web2py/deposit/   (empty)
> web2py/applications/   (and your own apps in here)
>
> should be about 1MB
>
> Massimo
>
>
> On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> > I have been playing with web2py for last few days. I came from rails & my
> > exposure to both python & web2py is very limited.
> >
> > I tried django too as it comes bundled with GAE, but choose web2py for
> > portability of Web2py ORM as it can generate GQL quires (with some
> obvious
> > limitation of joins, counts, sort..)
> >
> > Back to the question in subject, I would like to have a bare minimal
> > installation of web2py, so that it will be easy to manage & debug.
> > After extracting from source, web2py was occupying 7mb. Once installed it
> > occupied around 18 mb. I believe some of the sample apps also got
> extracted.
> > I uninstalled examples & now its occupying around 10 mb. After removing
> the
> > 3 tar files, it came down to 3.1mb. Still thats lot of files..
> >
> > Can someone help me identify the files & directores that is not required
> > when deploying in GAE?
> >
> > Thanks,
> > Sudhakar.M
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14173] Re: Minimal web2py installation on GAE

2008-12-27 Thread mdipierro

This seems a lot. Are you running the binary distribution? Do you need
the binary distribution?
If you have python installed you only need:

web2py/*.py
web2py/gluon/*.py (and folders therein)
web2py/deposit/   (empty)
web2py/applications/   (and your own apps in here)

should be about 1MB

Massimo


On Dec 27, 6:30 pm, "sudhakar m"  wrote:
> I have been playing with web2py for last few days. I came from rails & my
> exposure to both python & web2py is very limited.
>
> I tried django too as it comes bundled with GAE, but choose web2py for
> portability of Web2py ORM as it can generate GQL quires (with some obvious
> limitation of joins, counts, sort..)
>
> Back to the question in subject, I would like to have a bare minimal
> installation of web2py, so that it will be easy to manage & debug.
> After extracting from source, web2py was occupying 7mb. Once installed it
> occupied around 18 mb. I believe some of the sample apps also got extracted.
> I uninstalled examples & now its occupying around 10 mb. After removing the
> 3 tar files, it came down to 3.1mb. Still thats lot of files..
>
> Can someone help me identify the files & directores that is not required
> when deploying in GAE?
>
> Thanks,
> Sudhakar.M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14170] Minimal web2py installation on GAE

2008-12-27 Thread sudhakar

I have been playing with web2py for last few days. I came from rails &
my exposure to both python & web2py is very limited.

I tried django too as it comes bundled with GAE, but choose web2py for
portability of Web2py ORM as it can generate GQL quires (with some
obvious limitation of joins, counts, sort..)

Back to the question in subject, I would like to have a bare minimal
installation of web2py, so that it will be easy to manage & debug.
After extracting from source, web2py was occupying 7mb. Once installed
it occupied around 18 mb. I believe some of the sample apps also got
extracted. I uninstalled examples & now its occupying around 10 mb.
After removing the 3 tar files, it came down to 3.1mb. Still thats lot
of files..

Can someone help me identify the files & directores that is not
required when deploying in GAE?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:14169] Minimal web2py installation on GAE

2008-12-27 Thread sudhakar m
I have been playing with web2py for last few days. I came from rails & my
exposure to both python & web2py is very limited.

I tried django too as it comes bundled with GAE, but choose web2py for
portability of Web2py ORM as it can generate GQL quires (with some obvious
limitation of joins, counts, sort..)

Back to the question in subject, I would like to have a bare minimal
installation of web2py, so that it will be easy to manage & debug.
After extracting from source, web2py was occupying 7mb. Once installed it
occupied around 18 mb. I believe some of the sample apps also got extracted.
I uninstalled examples & now its occupying around 10 mb. After removing the
3 tar files, it came down to 3.1mb. Still thats lot of files..

Can someone help me identify the files & directores that is not required
when deploying in GAE?

Thanks,
Sudhakar.M

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---