[web2py] Re: web2py 2.4.2 is OUT

2013-03-03 Thread Paolo valleri
Good works, I will try it later today. I don't know if you have already discussed about that, just in case, I would suggest to start the use of git tags so it will be easier to update web2py and keep track of the different releases. Paolo On Monday, March 4, 2013 7:58:19 AM UTC+1, Massimo Di Pi

[web2py] Be careful when using a script to insert records in auth_permission - a cautionary tale

2013-03-03 Thread Cliff Kachinske
When you insert records in auth_permission via Python script BE SURE to set the records field. Otherwise, auth.has_permission always returns False. This, in turn, makes auth.requires_permission return False. -- --- You received this message because you are subscribed to the Google Groups

[web2py] Re: URL constant

2013-03-03 Thread Annet
Hi Anthony, Thanks for your reply. Are you doing: > > from yourmodule import * > > somewhere? > Yes, I am. > Instead, do: > > import yourmodule > > and then refer to yourmodule.URL, yourmodule.EMAIL, etc. > > Problem solved. Best regards, Annet. -- --- You received this message becaus

[web2py] Re: web2py 2.4.2 is OUT

2013-03-03 Thread Massimo Di Pierro
That is not the expected behavior. I will check what is going on but the more info you can provide the better. On Sunday, 3 March 2013 23:09:22 UTC-6, Monte Milanuk wrote: > > So... running 2.3.2 on Windows 7 and Ubuntu 12.10... on both when I click > the 'Check for Upgrades' button in the admin

Re: [web2py] Re: Unable to import from modules folder?

2013-03-03 Thread dlypka
I ran into similar problems when I tried to install a plugin. I suggest that web2py be changed to create the __init__.py files automatically in all modules folders after it unpacks a plugin. I think the plugin system also needs to support subfolders in the modules folder. Does not look like it ha

[web2py] Re: web2py 2.4.2 is OUT

2013-03-03 Thread 黄祥
no, same like in the newest version when click check for upgrade have the same result : Version 2.4.2 stable (2013-03-04 03:26:21) Unable to check for upgrades if you want to try newest version, please download it from website. -- --- You received this message because y

[web2py] Re: web2py 2.4.2 is OUT

2013-03-03 Thread Monte Milanuk
So... running 2.3.2 on Windows 7 and Ubuntu 12.10... on both when I click the 'Check for Upgrades' button in the admin dashboard, I get a message 'Unable to check for upgrades' that replaces the button, and is a link to web2py.com. Is that the expected behavior? -- --- You received this mes

Re: [web2py] web2py 2.4.2 is OUT

2013-03-03 Thread Alec Taylor
Looking good, especially the new serialisation and 2d geospatial On Mon, Mar 4, 2013 at 2:38 PM, Massimo Di Pierro wrote: > The book will be out shortly describing this version. > I am sure there are some corners to iron but I could not wait any longer. > > Changelog: > > - 2D GEO API: geoPoint,

Re: [web2py] web2py 2.4.2 is OUT

2013-03-03 Thread Alfonso de la Guarda
Hi! Great job! Looks faster, tomorrow I have to show a project based on web2py and take the opportunity to do so with this new version... i will give some datails later... Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991

[web2py] web2py 2.4.2 is OUT

2013-03-03 Thread Massimo Di Pierro
The book will be out shortly describing this version. I am sure there are some corners to iron but I could not wait any longer. Changelog: - 2D GEO API: geoPoint, getLine, geoPolygon - support for 'json' field type in DAL - schema export with db.as_json/as_xml, thanks Alan - graph representation

[web2py] Re: self-reference not showing dropdown on form field

2013-03-03 Thread 黄祥
a, thank you so much for your detail explaination anthony. it's work fine now by add : db.category.parent.requires=IS_IN_DB(db, 'category.category') btw, with this, i still have a problem for input the parent category. because in form there is not allowed to put an empty value. i have 2 ideas

[web2py] Re: sorting in admin panel

2013-03-03 Thread Anthony
Feel free to edit the admin app and submit any improvements. ;-) On Sunday, March 3, 2013 4:27:03 PM UTC-5, BlueShadow wrote: > > My project is getting bigger and bigger and its getting hard to find > specifc files in the admin panel especially under views. Is there a way to > get a little more

[web2py] Re: changing validator of one field based on choice of another field

2013-03-03 Thread Alan Etkin
> > if radio1 checked: > then deg_or_rad is checked against range (-4:4) > if radio2 checked: > then de_or_rad is checked against range (-360:360) > > Can I do this in web2py without using javascript ? > > Why you should use javascript?. I think you can change the validator accordingly by read

Re: [web2py] Re: web2py is moving

2013-03-03 Thread Monte Milanuk
Thanks, got it going per Niphlod's instructions from the zip file I had downloaded earlier. Anybody have any insight on the gitpython problem I was having? On 03/03/2013 01:48 PM, wwwgong wrote: packaged my local copy at http://dl.dropbox.com/u/54552252/web2py.app.w2p_book.w2p in case you wan

Re: [web2py] Re: web2py is moving

2013-03-03 Thread samuel bonilla
web2py.com and www.web2pyslices.com was down 2013/3/3 wwwgong > web2py is unavail because > 502 Bad Gateway > -- > nginx/1.2.6 > > On Thursday, February 28, 2013 6:40:22 PM UTC-5, Massimo Di Pierro wrote: >> >> web2py.com is moving to pythonanywhere.com. There may

[web2py] Re: web2py is moving

2013-03-03 Thread wwwgong
web2py is unavail because 502 Bad Gateway -- nginx/1.2.6 On Thursday, February 28, 2013 6:40:22 PM UTC-5, Massimo Di Pierro wrote: > > web2py.com is moving to pythonanywhere.com. There may be disruptions but > we hope not. > > -- --- You received this message becaus

[web2py] Re: web2py is moving

2013-03-03 Thread wwwgong
packaged my local copy at http://dl.dropbox.com/u/54552252/web2py.app.w2p_book.w2p in case you want to import it On Sunday, March 3, 2013 8:57:17 AM UTC-5, Niphlod wrote: > > download the > zip, > decompress in applications/, choose a

[web2py] sorting in admin panel

2013-03-03 Thread BlueShadow
My project is getting bigger and bigger and its getting hard to find specifc files in the admin panel especially under views. Is there a way to get a little more order in the admin panel like folders so I can hide views which are finished or sort them by groups. The other thing where it really g

[web2py] Re: reference table both ways

2013-03-03 Thread BlueShadow
Thanks Alan I try that tomorrow but it looks really great. On Sunday, March 3, 2013 8:48:46 PM UTC+1, Alan Etkin wrote: > > >I need to show a selection(not all but specific ones) of the Pictures on > the Book/Movie page. So a refrence back to the Image table > > would be awesome. > > I'd use an

[web2py] Re: on social auth

2013-03-03 Thread Alan Etkin
> > https://github.com/omab/python-social-auth > Is it pure-python? What are the improvements compared to Janrain or any other built-in authentication mechanism? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from t

[web2py] Re: reference table both ways

2013-03-03 Thread Alan Etkin
>I need to show a selection(not all but specific ones) of the Pictures on the Book/Movie page. So a refrence back to the Image table > would be awesome. I'd use an intermediate table for that. Something like defnine_table("image_references", Field("image_id", "reference image"), Field("referen

[web2py] Re: DB Insert Variable Names

2013-03-03 Thread Alan Etkin
> My attempts at resolving this issue have made the implementation of the form much simpler, but I'm still unable to get the code to > compile after I put the insert in. I would appreciate and assistance you could provide in enlightening me as to why that insert > statement would not compile.

[web2py] Re: self-reference not showing dropdown on form field

2013-03-03 Thread Anthony
Self-reference fields don't get the automatic "requires" and "represent" attributes defined because the referenced table does not yet exist at the time the field is defined (because the field is contained within the table definition, which obviously hasn't completed yet). So, you'll have to man

[web2py] show uploaded html-file in iframe

2013-03-03 Thread erich . meyer
I build a new simple application "test" with test/models/db.py: db = DAL('sqlite://storage.sqlite') db.define_table('data', Field('file','upload')) -- test/controllers/default/ind

[web2py] Re: Reference field to string field in a keyed table. MSSQL

2013-03-03 Thread DenesL
My apologies for the typo: table_name = tablename, On Saturday, March 2, 2013 12:31:54 PM UTC-5, Dmitry Mosin wrote: > > Hello, friends > > Now it looks like > > global name 'table_name' is not defined > > 806. > 807. > 808. > 809. > 810. > 811. > > 812. > 813. > 814. > 815. > >

Re: [web2py] Re: Unable to import from modules folder?

2013-03-03 Thread Alec Taylor
YAY! - Just figured out the problem. Looks like there was no '__init__.py' file in my application root directory (web2py/applications/mynewapp). Now that I've put one there; importing works :D On Mon, Mar 4, 2013 at 4:25 AM, Alec Taylor wrote: > Confirmed that the alternate suggested syntax doe

[web2py] reference table both ways

2013-03-03 Thread BlueShadow
Hi, is it possible to havetwo tables referencing each other? for example: Image Table needs to reference the Movies Books etc where it is taken from (list:Refrence). I need to show a selection(not all but specific ones) of the Pictures on the Book/Movie page. So a refrence back to the Image table

Re: [web2py] Re: Unable to import from modules folder?

2013-03-03 Thread Alec Taylor
Confirmed that the alternate suggested syntax doesn't work (same error); and that a blank '__init__.py' file is present in my modules directory. On Mon, Mar 4, 2013 at 4:10 AM, Niphlod wrote: > why don't you use the simplest form > from foo_module import Foo > > ? > > PS: check that there's an __

[web2py] Re: Unable to import from modules folder?

2013-03-03 Thread Niphlod
why don't you use the simplest form from foo_module import Foo ? PS: check that there's an __init__.y in the modules folder. If you want to use appname.modules.foo_module path, you need to check for the __init__.py also in the applications directory. On Sunday, March 3, 2013 6:03:19 PM UTC+1,

[web2py] Unable to import from modules folder?

2013-03-03 Thread Alec Taylor
My app has default routes; so I can't figure out why I can't import. I created the app "mynewapp" as a new simple app; then copied over the views + default models from the latest welcome app. In the modules directory I put "foo_module.py", containing: #!/usr/bin/env python # coding: utf8 class F

[web2py] Re: URL constant

2013-03-03 Thread Anthony
Are you doing: from yourmodule import * somewhere? Instead, do: import yourmodule and then refer to yourmodule.URL, yourmodule.EMAIL, etc. Anthony On Sunday, March 3, 2013 9:19:06 AM UTC-5, Annet wrote: > > In a .vcf file I use the attributes: VOICE, FAX, CELL, EMAIL and URL > for convenience

[web2py] [FYI] plugin_clientapi

2013-03-03 Thread Alan Etkin
A simple javascript api with a small web2py service for almost any common web2py app task. Implemented features: - Remote database queries - Form retrieval/submission - Store complete database schema client-side Check the installer, code, examples and the howto at the project page: http://code.

[web2py] Retain user passwords while connecting new app to existing mysql db

2013-03-03 Thread Stefan
Hi, I'm pretty new to web2py and am experiencing problems when trying to to connect a new app to an existing mysql database. The database was used with an app created with web2py Version 1.93.2. The new app was build from scratch using web2py_2.3.2. Whatever I try when doing the migration the

[web2py] URL constant

2013-03-03 Thread Annet
In a .vcf file I use the attributes: VOICE, FAX, CELL, EMAIL and URL for convenience I declared five constants in a module: VOICE=1 FAX=2 CELL=3 EMAIL=4 URL=5 In web2py 2.2 this was no problem, however, in web2py 2.3 the constant URL conflicts with the URL variable in my menu definitions Traceb

[web2py] Re: web2py is moving

2013-03-03 Thread Niphlod
download the zip, decompress in applications/, choose an application name without - in it (so, web2py_book vs web2py-book). On Sunday, March 3, 2013 7:02:58 AM UTC+1, Monte Milanuk wrote: > > So... this is supposed to be installable as

[web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2013-03-03 Thread Niphlod
response.static_version is the answer for static files cache. As for gzipping, the default static serving function checks for compressed files (.gz) and if they are present it serves them instead of the original one. There's a script too to prepare those https://github.com/web2py/web2py/blob/ma

[web2py] Re: The Great Web Framework Shootout

2013-03-03 Thread wwwgong
Please share the benchmark results when avail -- --- 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

[web2py] self-reference not showing dropdown on form field

2013-03-03 Thread 黄祥
hi, i want to create category and sub category table using self-reference. when i create the table it's seems normal (i've checked in sql.log) : CREATE TABLE category_archive( id INTEGER PRIMARY KEY AUTOINCREMENT, category CHAR(10) NOT NULL UNIQUE, *parent INTEGER REFERENCES category

[web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2013-03-03 Thread Paolo valleri
Hi Alec, if I were you I would remove the 'inline' parameter from both response.optimize_css response.optimize_js, just to keep the page lighter and to leverage on the browser cache for the external resources. Moreover, +1 for having something 'automatic' for using somehow the browser cache, in

[web2py] Re: Issue with store() method on GAE

2013-03-03 Thread montgomery . global
Just noticed a bug in my code that was overwriting the path and causing the runtime error. After fixing it, the file is still not being inserted, but at least there is no runtime error. On Sunday, March 3, 2013 4:56:28 AM UTC+8, montgome...@gmail.com wrote: > > Thanks. Please keep me posted. >

[web2py] Re: menu not backward compatible.

2013-03-03 Thread Annet
When I comment out the menu, I get the same error on appadmin: Traceback (most recent call last): File "/Users/annet/web2py/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/Users/annet/web2py/applications/init/controllers/appadmin.py"

[web2py] menu not backward compatible.

2013-03-03 Thread Annet
In my application I have the following menu in menu.py response.util_menu=[ ['Disclaimer',request.function=='disclaimer',URL('util','static',args='disclaimer')], ['Privacy',request.function=='privacy',URL('util','static',args='privacy')], ['Copyright',request.function=='copyright',U

[web2py] Re: process IS_IN_SET(groupslist,multiple=True)

2013-03-03 Thread Annet
Hi Anthony, Have you considered using a list:referencefield with the IS_IN_DB(..., multiple=True) validator? > No, I haven't. I looked it up in the book, and think it suits my need. I'll let you know whether I got it