[web2py] Re: Ckeditor plugin - Update ckeditor

2014-03-23 Thread Tim Richardson
Oh, would be great if you can test the image upload functionality (ie when 
using ckeditor to place an image, you should be able to upload images).


On Monday, 24 March 2014 07:04:36 UTC+11, Gael Princivalle wrote:
>
> Thank you Tim.
>
> This new version works well
>
> What I don't understand is how can I update the CKeditor version.
> In the release notes I've saw that "To upgrade to a newer version of 
> ckeditor, replace the directory static/plugin_ckeditor with the directory 
> downloaded from the ckeditor site."
> But when I do it quite all buttons disappear and some functions are 
> missing.
>
> Here is in attach file the custom version that I've download from the 
> CKeditor website.
> Can you make a test ?
>
> Regards.
>   
>
> Il giorno mercoledì 5 marzo 2014 05:14:34 UTC+1, Tim Richardson ha scritto:
>>
>> Have a look here:( The plugin can be found on releases; download it and 
>> then upload it via the admin app. I'll move it to web2py slices once I get 
>> some feedback and do some more testing myself)
>>
>> https://github.com/timrichardson/web2py_ckeditor4/releases
>>
>> Let me know if it works ok. It's the current ckeditor, standard edition. 
>> The release notes have instructions on how to update it. Unless the API to 
>> the custom browsers and uploaders changes, putting a new release in is very 
>> easy. 
>> That API didn't change between v3 and v4 which is good news. 
>>
>>
>>
>> On Wednesday, 5 March 2014 07:41:58 UTC+11, Gael Princivalle wrote:
>>>
>>> That's a really good news. Can you give also a little documentation for 
>>> updating/changing the ckeditor version ?
>>>
>>> Thank's a lot Tim.
>>>
>>> Il giorno martedì 4 marzo 2014 20:19:50 UTC+1, Tim Richardson ha scritto:

 I've cloned the ckeditor plugin and updated it to the latest version of 
 ckeditor and fixed a couple of other problems. It's working for me in an 
 app. I'll finish the plugin in a few days, I need to merge my changes back 
 and add some testing code. I've removed the inline edit capability since 
 it 
 depends on JavaScript which appears to be unmaintained.
>>>
>>>

-- 
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: Ckeditor plugin - Update ckeditor

2014-03-23 Thread Tim Richardson


On Monday, 24 March 2014 07:04:36 UTC+11, Gael Princivalle wrote:
>
> Thank you Tim.
>
> This new version works well.
>
> What I don't understand is how can I update the CKeditor version.
> In the release notes I've saw that "To upgrade to a newer version of 
> ckeditor, replace the directory static/plugin_ckeditor with the directory 
> downloaded from the ckeditor site."
> But when I do it quite all buttons disappear and some functions are 
> missing.
>
> Here is in attach file the custom version that I've download from the 
> CKeditor website.
> Can you make a test ?
>
the idea is that you should extract the downloaded archive, which will put 
everything in directory. You rename that directory to be plugin_ckeditor, 
remove the existing directory with that name and replace it with the new 
one. This works for me. 

>
> Regards.
>   
>
> Il giorno mercoledì 5 marzo 2014 05:14:34 UTC+1, Tim Richardson ha scritto:
>>
>> Have a look here:( The plugin can be found on releases; download it and 
>> then upload it via the admin app. I'll move it to web2py slices once I get 
>> some feedback and do some more testing myself)
>>
>> https://github.com/timrichardson/web2py_ckeditor4/releases
>>
>> Let me know if it works ok. It's the current ckeditor, standard edition. 
>> The release notes have instructions on how to update it. Unless the API to 
>> the custom browsers and uploaders changes, putting a new release in is very 
>> easy. 
>> That API didn't change between v3 and v4 which is good news. 
>>
>>
>>
>> On Wednesday, 5 March 2014 07:41:58 UTC+11, Gael Princivalle wrote:
>>>
>>> That's a really good news. Can you give also a little documentation for 
>>> updating/changing the ckeditor version ?
>>>
>>> Thank's a lot Tim.
>>>
>>> Il giorno martedì 4 marzo 2014 20:19:50 UTC+1, Tim Richardson ha scritto:

 I've cloned the ckeditor plugin and updated it to the latest version of 
 ckeditor and fixed a couple of other problems. It's working for me in an 
 app. I'll finish the plugin in a few days, I need to merge my changes back 
 and add some testing code. I've removed the inline edit capability since 
 it 
 depends on JavaScript which appears to be unmaintained.
>>>
>>>

-- 
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: Best way for using CSS variables with web2py ?

2014-03-23 Thread LightDot
If it's only such variables you're after, you could achieve the same with 
Less. Anyway, Bootstrap has an official Sass port, see:

http://getbootstrap.com/getting-started/
https://github.com/twbs/bootstrap-sass/

Regards

-- 
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] Re: New python.org layout

2014-03-23 Thread Michele Comitini
;-) ;-)
>From that page you sent I understand that Ansible is starting to get
more traction than chef.
Ansible is in python or what?
C'mon, we are talking about the "*python* software foundation", they
must favour a python based product, unless there is no other way.
Deploying a django based application is such a pain that one starts
looking for anything that can help automate the task.  Paradoxically
they had used RoR they wouldn't need chef.
;-) ;-)

2014-03-23 22:04 GMT+01:00 Niphlod :
> 
> you don't have to move to RoR. chef is just an "emerging standard" in
> deployment recipes (you may also intend it as "buzzword-project gone
> right"). See it as fabric snippets on steroids.
> Puppet, ansible, salt, etc, are also on the same "family".
> http://redmonk.com/sogrady/2013/12/06/configuration-management-2013/
> Instead of doing 'bash setup-*.sh' you do 'chef therecipe.rb'
> The fact that it needs ruby (not RoR) it's just due to the fact that
> creating DSL is much easier in ruby than python.
> 
>
> On Sunday, March 23, 2014 6:38:55 PM UTC+1, Michele Comitini wrote:
>>
>> 2014-03-23 18:31 GMT+01:00 Niphlod :
>> > having a chef opcode does not count as "ruby is needed". Given chef's
>> > spread, it's exactly as if we shipped all scripts/setup* scripts in
>> > ruby.
>> I hope not!  I started using web2py to avoid moving to ruby RoR! ;-)
>>
> --
> 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] Socialdrawer language

2014-03-23 Thread Gael Princivalle
Hello.

Is there a way to change the socialdrawer language depending of the 
request.uri_language ?
All text is in share.js.
var tbar = 'Condividi';

I have to get the request.uri_language inside share.js and set tbar 
depending of it. How can I do that ?

Thank's.

-- 
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: Creating a background task script on models, db is not defined.

2014-03-23 Thread Avi A

Yes I **do**.
If I write the function on the default.py and run it via 
default/import_catalog it works.
On Sunday, March 23, 2014 7:34:20 PM UTC+2, Niphlod wrote:
>
> very very strange. 
> just for completeness sake, you **do** have models/db.py with
>
> db = DAL(.)
>
> right ?
>
> On Saturday, March 22, 2014 8:49:11 PM UTC+1, Avi A wrote:
>>
>> Same.
>> /models/z_import_catalog.py", line 13, in 
>> item = db(db.t_items.unfi_product == row[5]).select().first()
>> NameError: name 'db' is not defined
>>
>>
>>
>> On Saturday, March 22, 2014 9:20:03 PM UTC+2, Niphlod wrote:
>>>
>>> try calling it z_whatever.py and see. 
>>>
>>> On Saturday, March 22, 2014 3:34:48 PM UTC+1, Avi A wrote:

 Sorry, I'm still getting the same error.
 I called that file:
 db_wizard_catalog_insert.py , so it's located after the db_wizard.py 
 and I just run the file.
 Is that what you meant?

 On Saturday, March 22, 2014 4:05:03 PM UTC+2, Avi A wrote:
>
> Yes I tried that too, it didn't help. but now for some reason I'm not 
> getting the error any longer. Thanks.
>
> On Saturday, March 22, 2014 3:12:32 PM UTC+2, Niphlod wrote:
>>
>> make sure the model is run AFTER the one holding the db 
>> definition.models are executed alphabetically.
>>
>> On Friday, March 21, 2014 9:28:14 PM UTC+1, Avi A wrote:
>>>
>>> Hi,
>>> I'm trying to create a background job/function. I'm locating the 
>>> file on the models directory, as I read on the book.
>>> When I try to run the script manually, I get an error saying that db 
>>> is not defined.
>>> This is part of the code where I get the error:
>>> ..
>>> ..
>>> catalog = csv.reader(webpage)
>>> for row in catalog:
>>> item = db(db.t_items.unfi_product_== row[5]).select().first()
>>> if row > 0 and not item:
>>> ..
>>>
>>>
>>> Thanks.
>>>
>>>
>>>

-- 
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] Re: New python.org layout

2014-03-23 Thread Niphlod

you don't have to move to RoR. chef is just an "emerging standard" in 
deployment recipes (you may also intend it as "buzzword-project gone 
right"). See it as fabric snippets on steroids. 
Puppet, ansible, salt, etc, are also on the same "family".
http://redmonk.com/sogrady/2013/12/06/configuration-management-2013/
Instead of doing 'bash setup-*.sh' you do 'chef therecipe.rb'
The fact that it needs ruby (not RoR) it's just due to the fact that 
creating DSL is much easier in ruby than python.


On Sunday, March 23, 2014 6:38:55 PM UTC+1, Michele Comitini wrote:
>
> 2014-03-23 18:31 GMT+01:00 Niphlod >: 
> > having a chef opcode does not count as "ruby is needed". Given chef's 
> > spread, it's exactly as if we shipped all scripts/setup* scripts in 
> ruby. 
> I hope not!  I started using web2py to avoid moving to ruby RoR! ;-) 
>
>

-- 
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] DAL - JSON Field type vs. text + filter

2014-03-23 Thread Wes Hall
I just saw the addition of a JSON Field type.  Is this safe to use as a 
(mostly) drop in replacement for text + filter or should I continue to use 
filtering?

I didn't see much of a discussion in -users, and a quick search in 
-developers didn't show much either.

-- 
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] Re: New python.org layout

2014-03-23 Thread Michele Comitini
2014-03-23 18:31 GMT+01:00 Niphlod :
> having a chef opcode does not count as "ruby is needed". Given chef's
> spread, it's exactly as if we shipped all scripts/setup* scripts in ruby.
I hope not!  I started using web2py to avoid moving to ruby RoR! ;-)

>
>
> On Saturday, March 22, 2014 11:04:41 PM UTC+1, Mariano Reingart wrote:
>>
>> Not only susy, there seems to be even ruby code files inside the
>> pythondotorg repository.
>> In fact, all the "chef" directory (find -name "*.rb"  | wc) counts 116
>> files (seems to be a kind of deployment automation)
>>
>> Susy is called in /settings/pipeline.py:
>>
>> PIPELINE_SASS_ARGUMENTS = '--quiet --compass --scss -I $(dirname $(dirname
>> $(gem which susy)))/sass'
>>
>> More about susy:
>>
>> https://github.com/python/pythondotorg/search?p=1&q=susy&ref=cmdform
>>
>> /static/humans.txt
>>
>> Components: Modernizr, jQuery, Susy (susy.oddbird.net)
>>
>> /Gemfile
>>
>> source "https://rubygems.org";
>>
>> group :media do
>>   gem "compass", "~>0.12.2"
>>   gem "sass", "~>3.2.5"
>>   gem "susy", "~>1.0.5"
>> end
>>
>> group :development do
>>   gem "foreman", "~>0.61.0"
>> end
>>
>> /static/config.rb
>>
>> require 'susy'
>>
>> /chef/cookbooks/pythondotorg/recipes/prereq.rb
>>
>> # Compass is used to compile sass files dynamically at deployment
>> gem_package 'compass' do
>> version '0.11.7'
>> action :install
>> end
>>
>> gem_package 'susy' do
>> version '1.0.rc.2' # This is current the pre-release version
>> action :install
>> end
>>
>> /static/sass/_FIX-THESE
>>
>> Simplify the way that most columns work -- remove dependency on Susy.
>>
>> Best regards,
>>
>>
>> Mariano Reingart
>> http://www.sistemasagiles.com.ar
>> http://reingart.blogspot.com
>>
>>
>> On Sat, Mar 22, 2014 at 5:27 PM, Michele Comitini 
>> wrote:
>>>
>>> seems they need ruby because of this: https://github.com/ericam/susy
>>>
>>> *embarassing*
>>>
>>>
>>> 2014-03-22 19:08 GMT+01:00 Massimo Di Pierro :
>>> > Are you telling me that the new python.org requires ruby?
>>> >
>>> > Massimo
>>> >
>>> > On Saturday, 22 March 2014 12:14:58 UTC-5, Mariano Reingart wrote:
>>> >>
>>> >> On Sat, Mar 22, 2014 at 11:21 AM, Mariano Reingart 
>>> >> wrote:
>>> >>>
>>> >>> On Sat, Mar 22, 2014 at 10:54 AM, Mariano Reingart
>>> >>> 
>>> >>> wrote:
>>> >>>
>>>  On Sat, Mar 22, 2014 at 9:26 AM, Stefaan Himpe 
>>>  wrote:
>>> >
>>> > Michele Comitini wrote:
>>> >>
>>> >> Seems that the new layout of python.org is here:
>>> >> http://python.org
>>> >
>>> >
>>> > My first impression: it feels too widely spaced for my smaller
>>> > laptop
>>> > screen. Their "community" menu runs off my screen (unless I go
>>> > full-screen
>>> > in my browser, which I normally never do).
>>> >
>>> > Although that's probably a personal quirk as I typically dislike
>>> > bootstrap based layouts for that very reason.
>>> >
>>> >
>>> >> I see they keep "forgetting" to mention web2py as a web framework
>>> >> :-)
>>> >
>>> >
>>> > Consider submitting a bug against the new layout? :-)
>>> >
>>> >
>>> 
>>>  Anyone submitted a bug or pull request about this?
>>> 
>>>  https://github.com/python/pythondotorg
>>> 
>>> >>>
>>> >>> Just in case: I'm cloning and testing it, to make the pull request
>>> >>>
>>> >>> To support the request, maybe I'll need some facts and stats about
>>> >>> web2py
>>> >>> useage: downloads, contibutors, users registred in groups,
>>> >>> international
>>> >>> sites, etc., beside a list of technical merits that I will also
>>> >>> compile
>>> >>>
>>> >>> BTW, it seems to not be a simple project, trying to install the
>>> >>> requirements.txt in a venv resulted in the following error:
>>> >>>
>>> >>> 
>>> >>> Cleaning up...
>>> >>> Command python setup.py egg_info failed with error code 1 in
>>> >>> /tmp/pip_build_reingart/psycopg2
>>> >>> Storing debug log for failure in /tmp/tmphtpypx
>>> >>>
>>> >>
>>> >> That was because it was trying to compile psycopg2 and there were some
>>> >> packages missing ... just comment psycopg2==2.4.5 line in
>>> >> requerimients and
>>> >> install it:
>>> >>
>>> >> sudo apt-get install python3-psycopg2
>>> >>
>>> >> Another error:
>>> >>
>>> >> error: could not create '/usr/lib/python3.3/site-packages': Permission
>>> >> denied
>>> >>
>>> >> I frankly don't understand what is the advantage of a virtual env if
>>> >> it
>>> >> has to install python packages system wide...
>>> >> Surely I'm missing something here.
>>> >> Never mind, just do:
>>> >>
>>> >> sudo pip install -r requirements.txt
>>> >>
>>> >> But, it also fail trying to compile lxml ??¿¿??
>>> >>
>>> >> In file included from src/lxml/lxml.etree.c:314:0:
>>> >> /tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:31: fatal
>>> >> error:
>>> >> libxml/xmlversion.h: No existe el archivo o el directorio
>>> >>  #include "libxml/xmlversion.h"
>>> >>

[web2py] Re: Creating a background task script on models, db is not defined.

2014-03-23 Thread Niphlod
very very strange. 
just for completeness sake, you **do** have models/db.py with

db = DAL(.)

right ?

On Saturday, March 22, 2014 8:49:11 PM UTC+1, Avi A wrote:
>
> Same.
> /models/z_import_catalog.py", line 13, in 
> item = db(db.t_items.unfi_product == row[5]).select().first()
> NameError: name 'db' is not defined
>
>
>
> On Saturday, March 22, 2014 9:20:03 PM UTC+2, Niphlod wrote:
>>
>> try calling it z_whatever.py and see. 
>>
>> On Saturday, March 22, 2014 3:34:48 PM UTC+1, Avi A wrote:
>>>
>>> Sorry, I'm still getting the same error.
>>> I called that file:
>>> db_wizard_catalog_insert.py , so it's located after the db_wizard.py and 
>>> I just run the file.
>>> Is that what you meant?
>>>
>>> On Saturday, March 22, 2014 4:05:03 PM UTC+2, Avi A wrote:

 Yes I tried that too, it didn't help. but now for some reason I'm not 
 getting the error any longer. Thanks.

 On Saturday, March 22, 2014 3:12:32 PM UTC+2, Niphlod wrote:
>
> make sure the model is run AFTER the one holding the db 
> definition.models are executed alphabetically.
>
> On Friday, March 21, 2014 9:28:14 PM UTC+1, Avi A wrote:
>>
>> Hi,
>> I'm trying to create a background job/function. I'm locating the file 
>> on the models directory, as I read on the book.
>> When I try to run the script manually, I get an error saying that db 
>> is not defined.
>> This is part of the code where I get the error:
>> ..
>> ..
>> catalog = csv.reader(webpage)
>> for row in catalog:
>> item = db(db.t_items.unfi_product_== row[5]).select().first()
>> if row > 0 and not item:
>> ..
>>
>>
>> Thanks.
>>
>>
>>

-- 
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] Re: New python.org layout

2014-03-23 Thread Niphlod
having a chef opcode does not count as "ruby is needed". Given chef's 
spread, it's exactly as if we shipped all scripts/setup* scripts in ruby.

On Saturday, March 22, 2014 11:04:41 PM UTC+1, Mariano Reingart wrote:
>
> Not only susy, there seems to be even ruby code files inside the 
> pythondotorg repository.
> In fact, all the "chef" directory (find -name "*.rb"  | wc) counts 116 
> files (seems to be a kind of deployment automation)
>
> Susy is called in /settings/pipeline.py:
>
> PIPELINE_SASS_ARGUMENTS = '--quiet --compass --scss -I $(dirname $(dirname 
> $(gem which susy)))/sass'
>
> More about susy:
>
> https://github.com/python/pythondotorg/search?p=1&q=susy&ref=cmdform
>
> /static/humans.txt
>
> Components: Modernizr, jQuery, Susy (susy.oddbird.net)
>
> /Gemfile
>
> source "https://rubygems.org";
>
> group :media do
>   gem "compass", "~>0.12.2"
>   gem "sass", "~>3.2.5"
>   gem "susy", "~>1.0.5"
> end
>
> group :development do
>   gem "foreman", "~>0.61.0"
> end
>
> /static/config.rb
>
> require 'susy'
>
> /chef/cookbooks/pythondotorg/recipes/prereq.rb
>
> # Compass is used to compile sass files dynamically at deployment 
> gem_package 'compass' do 
> version '0.11.7' 
> action :install 
> end 
>
> gem_package 'susy' do 
> version '1.0.rc.2' # This is current the pre-release version 
> action :install 
> end
>
> /static/sass/_FIX-THESE
>
> Simplify the way that most columns work -- remove dependency on Susy.
>
> Best regards,
>
>
> Mariano Reingart
> http://www.sistemasagiles.com.ar
> http://reingart.blogspot.com
>
>
> On Sat, Mar 22, 2014 at 5:27 PM, Michele Comitini 
> 
> > wrote:
>
>> seems they need ruby because of this: https://github.com/ericam/susy
>>
>> *embarassing*
>>
>>
>> 2014-03-22 19:08 GMT+01:00 Massimo Di Pierro 
>> 
>> >:
>> > Are you telling me that the new python.org requires ruby?
>> >
>> > Massimo
>> >
>> > On Saturday, 22 March 2014 12:14:58 UTC-5, Mariano Reingart wrote:
>> >>
>> >> On Sat, Mar 22, 2014 at 11:21 AM, Mariano Reingart 
>> >> wrote:
>> >>>
>> >>> On Sat, Mar 22, 2014 at 10:54 AM, Mariano Reingart > >
>> >>> wrote:
>> >>>
>>  On Sat, Mar 22, 2014 at 9:26 AM, Stefaan Himpe 
>>  wrote:
>> >
>> > Michele Comitini wrote:
>> >>
>> >> Seems that the new layout of python.org is here:  
>> http://python.org
>> >
>> >
>> > My first impression: it feels too widely spaced for my smaller 
>> laptop
>> > screen. Their "community" menu runs off my screen (unless I go 
>> full-screen
>> > in my browser, which I normally never do).
>> >
>> > Although that's probably a personal quirk as I typically dislike
>> > bootstrap based layouts for that very reason.
>> >
>> >
>> >> I see they keep "forgetting" to mention web2py as a web framework 
>> :-)
>> >
>> >
>> > Consider submitting a bug against the new layout? :-)
>> >
>> >
>> 
>>  Anyone submitted a bug or pull request about this?
>> 
>>  https://github.com/python/pythondotorg
>> 
>> >>>
>> >>> Just in case: I'm cloning and testing it, to make the pull request
>> >>>
>> >>> To support the request, maybe I'll need some facts and stats about 
>> web2py
>> >>> useage: downloads, contibutors, users registred in groups, 
>> international
>> >>> sites, etc., beside a list of technical merits that I will also 
>> compile
>> >>>
>> >>> BTW, it seems to not be a simple project, trying to install the
>> >>> requirements.txt in a venv resulted in the following error:
>> >>>
>> >>> 
>> >>> Cleaning up...
>> >>> Command python setup.py egg_info failed with error code 1 in
>> >>> /tmp/pip_build_reingart/psycopg2
>> >>> Storing debug log for failure in /tmp/tmphtpypx
>> >>>
>> >>
>> >> That was because it was trying to compile psycopg2 and there were some
>> >> packages missing ... just comment psycopg2==2.4.5 line in 
>> requerimients and
>> >> install it:
>> >>
>> >> sudo apt-get install python3-psycopg2
>> >>
>> >> Another error:
>> >>
>> >> error: could not create '/usr/lib/python3.3/site-packages': Permission
>> >> denied
>> >>
>> >> I frankly don't understand what is the advantage of a virtual env if it
>> >> has to install python packages system wide...
>> >> Surely I'm missing something here.
>> >> Never mind, just do:
>> >>
>> >> sudo pip install -r requirements.txt
>> >>
>> >> But, it also fail trying to compile lxml ??¿¿??
>> >>
>> >> In file included from src/lxml/lxml.etree.c:314:0:
>> >> /tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:31: fatal 
>> error:
>> >> libxml/xmlversion.h: No existe el archivo o el directorio
>> >>  #include "libxml/xmlversion.h"
>> >>^
>> >> compilation terminated.
>> >> /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown
>> >> distribution option: 'bugtrack_url'
>> >>   warnings.warn(msg)
>> >> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
>> >>
>> >> Just commented the line lxml==3.2.

[web2py] the python tutor

2014-03-23 Thread Michele Comitini
This is very nice to understand how a piece of code works!

http://pythontutor.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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Scheduler Task

2014-03-23 Thread Adriano Chambel
Thanks, Niphlod.

Em sábado, 22 de março de 2014 10h27min41s UTC-3, Niphlod escreveu:
>
> this was discussed at length and now in 2.9.x there's a prevent_drift 
> parameter that will make your tasks start at the same time. Unfortunately 
> there's no mention of it in the changelog but its yet in the book
>
> http://web2py.com/books/default/chapter/29/04/the-core?search=prevent_drift
>
> On Friday, March 21, 2014 1:43:54 PM UTC+1, Adriano Chambel wrote:
>>
>> Good morning, everyone. 
>>
>> There how to perform the tasks exactly the same time? 
>>
>> Happens to have the time elapsed between the beginning and end, then the 
>> Last Run Time will always be incremented with the datetime end of script 
>> execution, soon started the first running 6:00:00, the next will always be 
>> later.
>>
>> Eg:
>>
>> Start Time: 25-10-2013 06:00:00 
>> Last Run Time: 19-03-2014 06:03:50
>> Period: 86400
>> Next Run Time: 20-03-2014 06:03:50
>>
>

-- 
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: Strange web2py book?

2014-03-23 Thread Massimo Di Pierro
Yes. Should be fixed when cache refreshes

On Sunday, 23 March 2014 11:42:02 UTC-5, Najtsirk wrote:
>
> Hi,
>
> is something wrong with this chapter?
>
> http://web2py.com/books/default/chapter/29/09/access-control
>
>
> Kristjan
>

-- 
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] Strange web2py book?

2014-03-23 Thread Najtsirk
Hi,

is something wrong with this chapter?

http://web2py.com/books/default/chapter/29/09/access-control


Kristjan

-- 
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] Best way for using CSS variables with web2py ?

2014-03-23 Thread Gael Princivalle
Hello all.

I just would like to define some CSS variables for a web2py application, 
using Bootstrap 2.3.2.

I've saw that for example with Sass you can do something like that:
@Color1 = #fff;
@Color2 = #b00;
@Color3 = #050;

h1 {
color:@Color1;
background:@Color2;
}

But bootstrap works with Less.

Someone have a suggestion ?

Thanks, bye.

-- 
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: cannot import module from application's modules directory on pythonanywhere.com

2014-03-23 Thread Stefaan Himpe

Intersestingly, it works correctly on my PC locally if I put it in my
application's "modules" folder, but not on pythonanywhere.

I found out, however, that I can work normally after I move music21 to 
web2py's site-packages folder (outside the application).


This solution is not entirely satisfactory (music21 is really used in 
only one application, not in all of them) but suffices for now.


If anyone has more insights, they are welcome, but the issue is
no longer blocking me from continuing my application.

Thanks!
Stefaan.


--
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: cannot import module from application's modules directory on pythonanywhere.com

2014-03-23 Thread Stefaan Himpe





is it running well in your local computer? or maybe try to import module


Oh wait! On my local computer it was importing not from the modules 
folder but from a globally installed version of music21. I need to 
examine more first...




--
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: cannot import module from application's modules directory on pythonanywhere.com

2014-03-23 Thread Stefaan Himpe



I just tried and it works without problem on my local computer.
I'll double check what I did on pythonanywhere.



--
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: Zurb Foundation 5 - Package for web2py

2014-03-23 Thread samuel bonill
thanks Paolo

I'm trying to build a package for semantic-ui 

El viernes, 21 de marzo de 2014 18:11:20 UTC, Paolo Caruccio escribió:
>
> I just completed a package that applies the Zurb Foundation 5 style to 
> some web2py elements - the current version covers the navigation menus, the 
> auth navbar and SQLFORMs (via formstyle).
>
> Here attached some screenshots. 
>
> You find the package's files at 
> https://github.com/carpaIdea/web2py-foundation5-package
>
> Please note that the code should be tested more deeply, therefore your 
> help is welcomed. 
>
> Thank you in advance for your feedbacks, suggestions for optimizing the 
> code, any additions and everything else useful to improve the package.
>
>
>  
>

-- 
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: Password feild type seems to save in plain text for me.

2014-03-23 Thread Anthony
By default, I think password fields only get an IS_LENGTH validator, so 
you'll have to set the CRYPT validator explicitly.

Anthony

On Tuesday, March 18, 2014 1:04:54 PM UTC-4, Encompass solutions wrote:

> I am trying to create a model with an encrypted key so it's harder for 
> someone to maliciously screw over my customers.
> I have the following snippet.
> Field('public_gram', 'boolean', default=False),
> Field('tag_name', 'list:string'),
> Field('deletion_key', 'password')
> )
> You can see there the "deletion_key" is a feild type "password" which I 
> understand is hashed out so you can't get the original code.  However, when 
> I try to print it I get this...
> test
> CRYPT()(gram_details.deletion_key)
> (, None)
> CRYPT()(gram_details.deletion_key) == gram_details.deletion_key
> False
> Where "test" is print gram_details.deletion_key
> If this is the case then my password is not very cryptic.
> Am I doing something wrong?
> BR,
> Jason Brower
>
>

-- 
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] Re: New python.org layout

2014-03-23 Thread Mariano Reingart
On Sun, Mar 23, 2014 at 5:09 AM, José Luis Redrejo wrote:

> 2014-03-22 23:21 GMT+01:00 Mariano Reingart :
> > Great news:
> >
> > We are now listed in https://www.python.org/
> >
> > Congrats and thanks to the maintainers added it and that closed the
> ticket!
> >
>
>
>
> I wouldn't close it so quickly. It's only on the frontpage, but no
> mention at https://www.python.org/about/apps where any interested
> person would browse just after see the frontpage.
>
>
>
Yes, I asked that too in the comment of the issue (as it was already
closed):

https://github.com/python/pythondotorg/issues/345

It seems that they deleted turbogears (see
https://github.com/python/pythondotorg/issues/259) but didn't add web2py

Best regards,

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: New python.org layout

2014-03-23 Thread José Luis Redrejo
2014-03-22 23:21 GMT+01:00 Mariano Reingart :
> Great news:
>
> We are now listed in https://www.python.org/
>
> Congrats and thanks to the maintainers added it and that closed the ticket!
>



I wouldn't close it so quickly. It's only on the frontpage, but no
mention at https://www.python.org/about/apps where any interested
person would browse just after see the frontpage.







> Best regards
>
> Mariano Reingart
> http://www.sistemasagiles.com.ar
> http://reingart.blogspot.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.
> 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.