[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-02 Thread zeng
Hi Massimo, Further tracing lead to some additional information: AppA/models/db.py from gluon.shell import exec_environment common_db = exec_environment('applications/appauth/models/db.py', request=request, response=response) db = common_db.db # -- yes, point to the db file in AppAuth

Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-02 Thread Ramana
Dear all, I am overwhelmed by your positive response and kind words. Thank you very much. I just want to clarify that the HTML theme is not my own. I copied it from Rails Admin https://github.com/sferik/rails_admin, which in turn is based on Activo Theme https://github.com/dmfrancisco/activo,

Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-02 Thread Ramana
Hi Chris, The requirements are not necessary to use the plugin. They are only for developers for automating the dev/deploy/testing. Regarding path, it's my mistake. It should have been path.py. It is at http://pypi.python.org/pypi/path.py. I fixed it now. On Tue, Aug 2, 2011 at 7:02 AM,

Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-02 Thread Ramana
Hi, I just reset the password and verified that the login is working. Can you please try now? On Tue, Aug 2, 2011 at 12:12 AM, Francisco Costa m...@franciscocosta.comwrote: Looks very good, but I can't login with superuser credentials (usearname = a, password = a) I get this message: We're

[web2py] Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
I tried to upgrade a development server from 1.91.4 to 1.98.1 and now I get these tickets: Version web2py^(TM) Version 1.98.1 (2011-07-31 10:15:50) Traceback (most recent call last): File /data/domains/gluon/restricted.py, line 192, in restricted exec ccode in environment File

[web2py] Re: web2py for freelance work

2011-08-02 Thread Massimo Di Pierro
As for CMS, there's Instant Press (http://code.google.com/p/instant-press/), which has now been incorporated into Powerpack 2.0 (http://powerpack.tecnodoc.com.ar/powerpack/default/index). It has? I did not know. Is there any of Martin's blogs that talk about this? Massimo

[web2py] Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread pbreit
That's a really odd model. Usually it would look like this: 462 db.define_table('returning_revision', 464 Field('returning', db.returning))

Re: [web2py] Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
That's a really odd model. Usually it would look like this: 462 db.define_table('returning_revision', 464 Field('returning', db.returning)) 2,5 years, but this is not the first revision definition, maybe 30:th. Kenneth

[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-02 Thread Massimo Di Pierro
I think I now fixed this in trunk. Can you give it a try? Massimo On Aug 2, 1:30 am, zeng zeng...@gmail.com wrote: Hi Massimo, Further tracing lead to some additional information: AppA/models/db.py from gluon.shell import exec_environment common_db =

[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-02 Thread Massimo Di Pierro
Let us know when you think it is ready. Massimo On Aug 2, 1:31 am, Ramana srama...@gmail.com wrote: Dear all, I am overwhelmed by your positive response and kind words. Thank you very much. I just want to clarify that the HTML theme is not my own. I copied it from Rails Admin

[web2py] Re: Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Massimo Di Pierro
Can you show the definition of table returning? I think I know what is wrong. As a test, can you try adding a Field(id,id) on top of your table returning_revision? On Aug 2, 2:24 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: I tried to upgrade a development server from 1.91.4 to

Re: [web2py] Re: Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
Here´s the definition: db.define_table('returning', db.Field('troop', db.troop, required=True), db.Field('campaign', db.campaign, required=True), db.Field('type', 'string', length=2, default='', requires=IS_IN_SET(['', 'r', 'c', 'd', 'p'])), db.Field('edited_by',

[web2py] Re: Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Massimo Di Pierro
I fixed it in trunk anyway, the problem originates from the fact that your table returing has a type field which is a keyword On Aug 2, 3:16 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Here s the definition: db.define_table('returning',      db.Field('troop', db.troop,

[web2py] Is Css in web2py different

2011-08-02 Thread pbreit
Can you confirm that those CSS and js files can be accessed at those urls? Do hey have urls similar to those hat web2py creates for other css, js and image files? Try viewing them in the browser to make sure.

[web2py] Re: Bug in virtualfields w/ session

2011-08-02 Thread Massimo Di Pierro
We need to work on the speed. This can perhaps help the syntax: db=DAL() db.define_table('a',Field('b','integer')) for i in range(10): db.a.insert(b=i) def lazy(f): def g(self,f=f): import copy self=copy.copy(self) return lambda *a,**b: f(self,*a,**b) return g

[web2py] Web2py traffic to web2py.com and twitter

2011-08-02 Thread António Ramos
hello, my firewall detects that my we2py server is constantly connecting to twitter and web2py The connection is blocked by the firewall. is this normal? thank you

[web2py] Requesting Feedback for Web2py Instant Admin Options

2011-08-02 Thread peter
As I fedback earlier, I get an error message when using it with one of my apps. So tried the 'radio' app in appliances. It works , but is empty. So I tried the online store app from appliances, it blows up with the following message Traceback Traceback (most recent call last): File

[web2py] Re: Is Css in web2py different

2011-08-02 Thread Web2Py Freak
am sure of the urls but there is another question : do i have to edit the urls in the css file two ???

Re: [web2py] Web2py traffic to web2py.com and twitter

2011-08-02 Thread Kenneth Lundström
Atleast admin get web2py version from web2py.com and get discussion from Twitter. Kenneth hello, my firewall detects that my we2py server is constantly connecting to twitter and web2py The connection is blocked by the firewall. is this normal? thank you

[web2py] Web2Py with Python 2.4

2011-08-02 Thread Jagmal
Does web2py work with python 2.4? Our servers have python 2.4 as of now and though i have requested for an upgrade, I am not sure if it will be available before I need. Web2Py seem to ask for hashlib and uuid packages to run and I tried by installing those (on local machine with 2.4) but it

[web2py] Re: Web2Py with Python 2.4

2011-08-02 Thread Massimo Di Pierro
Officially we dropped support for 2.4. Yet, I cannot think of anything that broke it yet. What error did you get? On Aug 2, 4:55 am, Jagmal jag...@gmail.com wrote: Does web2py work with python 2.4? Our servers have python 2.4 as of now and though i have requested for an upgrade, I am not

[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-02 Thread zeng
Hi Massimo, Yes I can confirm it's working now! Many Thanks! best, Zeng On Aug 2, 11:01 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think I now fixed this in trunk. Can you give it a try? Massimo On Aug 2, 1:30 am, zeng zeng...@gmail.com wrote: Hi Massimo,

[web2py] Can I change the color of the cursor on the web2py editor

2011-08-02 Thread dorasan
Hello everyone I want to change the color of the cursor on the web2py editor. It is very light gray and sometimes it's hard to find the cursor on the editor because of sunlight shining on the display. Ive found the definition of the line color which the cursor exists in edit_area_full.js but I

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-02 Thread Phyo Arkar
Check it out : One example. You cant just remove contrib at all. It will screwup all the html helper check this : $ cat html.py | grep ^from from HTMLParser import HTMLParser from htmlentitydefs import name2codepoint from contrib.markmin.markmin2html import render from storage import Storage

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-02 Thread Phyo Arkar
I know i can remove all the apps . yes i had allready done that in my work project. On 8/2/11, Anthony abasta...@gmail.com wrote: On Monday, August 1, 2011 6:45:52 PM UTC-4, Phyo Arkar wrote: I haven't test yest. But i am not sure if i remove a module it will break some other features as

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-02 Thread Phyo Arkar
I know i can remove all the apps . yes i had allready done that in my work project. On 8/2/11, Anthony abasta...@gmail.com wrote: On Monday, August 1, 2011 6:45:52 PM UTC-4, Phyo Arkar wrote: I haven't test yest. But i am not sure if i remove a module it will break some other features as

[web2py] Fwd: Server slow

2011-08-02 Thread Kenneth
Getting back to this discussion. I have a table containing 31.000 record. Model below. db.define_table('tracker_person_product', db.Field('troop', db.troop, required=True), db.Field('troop_person', db.troop_person, required=True), db.Field('campaign', db.campaign, required=True),

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
Thank you! That bit of code was the key. The wizard definitely does NOT work. I had to manually copy/paste this code into db.py to get it working. Can you point me in the right direction of the wizard's files so I can take a look at fixing this bug? Also, what's the best way to contribute to the

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
Sorry, meant this discussion: http://groups.google.com/group/web2py/browse_thread/thread/c6bc090c04b323ed/b2e8ec8a2d5d0786?lnk=gstq=server+slow#b2e8ec8a2d5d0786 Database: MySQL, server Apache 2.2.3 on CentOS and web2py version 1.98.1 Kenneth Getting back to this discussion. I have a table

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Heath Jordaan
This seems to be an issue with the 1.98.1 install. I tried the experimental online upgrade from to 1.97.1 and on restarting web2py I got the same NameError message. Downloaded a fresh OSX binary of 1.98.1 from the website and got the same error. Mac OSX 10.6.8 1.97.1 still works fine without

Re: [web2py] Fwd: Server slow

2011-08-02 Thread pbreit
Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took?

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread pbreit
Where are you seeing this error? Is it on a web2py error page? Does it show the code that is causing the error?

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-02 Thread pbreit
Are you just looking to save a few kilobytes? That doesn't really seem worthwhile to me.

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took? t3=time.time() testar = db(db.tracker_person_product.id).select() t4=time.time() logging.info('query

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 8:12:01 AM UTC-4, Matthew wrote: Thank you! That bit of code was the key. The wizard definitely does NOT work. I had to manually copy/paste this code into db.py to get it working. Are you saying that in Step 1 of the wizard you selected Janrain as the login

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 8:44:52 AM UTC-4, Kenneth wrote: Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took? t3=time.time() testar =

Re: [web2py] Fwd: Server slow

2011-08-02 Thread David Marko
In the first example, web2py converts SQL query results into DAL row objects which takes time for 31K records. Using executesql is always faster ...

[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 2:30:01 AM UTC-4, zeng wrote: Ok, and the next question I may sound like a retard, where to submit the ticket? Looks like this one is solved, but for future reference, tickets get submitted here: http://code.google.com/p/web2py/issues/list. Anthony

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 8:54:57 AM UTC-4, David Marko wrote: In the first example, web2py converts SQL query results into DAL row objects which takes time for 31K records. Using executesql is always faster ... Good point -- executesql isn't returning the same object:

[web2py] Re: web2py for freelance work

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 3:47:09 AM UTC-4, Massimo Di Pierro wrote: As for CMS, there's Instant Press ( http://code.google.com/p/instant-press/), which has now been incorporated into Powerpack 2.0 ( http://powerpack.tecnodoc.com.ar/powerpack/default/index). It has? I did not know. Is

[web2py] Re: Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 3:52:54 AM UTC-4, pbreit wrote: That's a really odd model. Usually it would look like this: 462 db.define_table('returning_revision', 464Field('returning', db.returning)) http://web2py.com/book/default/chapter/06#Table-Inheritance

[web2py] Re: Login form's remember for 30 days not working

2011-08-02 Thread Iceberg
Hi Massimo, I've sent you the file yesterday. Did you get it? If that mail somehow lost, I can open an issue and submit a patch there. Regards, Ray On Aug 1, 6:32 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: No objection but can you please email me the new file as an attachment?

Re: [web2py] Re: Is Css in web2py different

2011-08-02 Thread Richard Vézina
You should confirm that you can acces your css file by edit de source code of your page Ctrl + U in most browser then check if the links are accessible... Or you also can use Dev tool in Chrome and check if all the linked file are get by chrome in the Network tab of the Dev tool. If there is

[web2py] Re: Splitting python code in the database

2011-08-02 Thread DenesL
Hi Hybride, you can do t=TABLE(*[ TR(x.split('\r\n')[:2]) for x in f_codetest.split('') [1:]]) On Aug 1, 2:54 pm, Hybride mshybr...@gmail.com wrote: Hi everyone, Am having a hard time with figuring out this rather simple split. I have python code (actual code) store in the database, with

Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread David Webb
On 08/01/2011 05:55 PM, pbreit wrote: I always advise installing via Mercurial clone if possible. hg clone https://code.google.com/p/web2py/ web2py i am get an error when trying to clone, tried multiple times last night and today hg clone https://code/google.com/p/web2py/ web2py abort:

[web2py] auth.login onaccept web2py-component-command don't work

2011-08-02 Thread Alexander Cabezas
Hello, I don't get the correct behavior when update response.headers with onaccept parameter on auth.login function. Here I'm trying to redirect with Javascript after user logins but it redirect to default/ index.load, below: # default.py def login(): nc = request.vars.nc or 'default'

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Heath Jordaan
The error is showing up only in the Mac web2py binary package Its happening when you click on the web2py.app in finder, it basically throws an error window with the following message NameError: name 'copyright' is not defined, and gives you the option to open the console log or terminate . I

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Richard Vézina
To me it seems that it comes from : *psycopg2._psycopg* I use Postgres 8.4 under ubuntu 11.04, python 2.6.5, web2py 1.97.1, with the dev http server... In [3]: import cProfile In [4]: import pstats In [5]: cProfile.run('SQLTABLE(db().select(db.test_ph.ALL))') 650629 function calls

[web2py] linkto SQLTABLE mmodal

2011-08-02 Thread Ismael Serratos
Hi! How could I represent the ID of a SQLTABLE as a link that shows a mmodal plugin window? And how can I pass to it args?? The form that I'd like to show in the modal is in another controller. Greetings!

[web2py] how to limit upload field

2011-08-02 Thread António Ramos
hello i have a model with a field of type upload. how can i limit the size of the upload file? thank you António

[web2py] something strange when installing application

2011-08-02 Thread mart
Hi, I built a small app (locally on Mac OS) that makes use of plugin_wiki. I packed it, copied it to a windows server and installed it. It installs fine, plugin_wiki is available, but all of the plugin_wiki pages are missing... has this happened to anyone else? my workaround was to re-write

[web2py] Re: something strange when installing application

2011-08-02 Thread pbreit
Are the pages in the DB?

[web2py] get any field as input for lambda function with .represent

2011-08-02 Thread Richard
Hello, Is it possible to do that : db.table.field.represent = lambda field1, field2: do something ??? If it not braking anything in the logic of web2py it could sometime be of so much help to solve issue like this one... I have a 1 to many relation... So table1 contain the represent of my

Re: [web2py] get any field as input for lambda function with .represent

2011-08-02 Thread Anthony
The change log for 1.98.1 includes: field.represent = lambda value,record: I think that might do what you want. Anthony On Tuesday, August 2, 2011 12:21:11 PM UTC-4, Richard wrote: Hello, Is it possible to do that : db.table.field.represent = lambda field1, field2: do

[web2py] typo book chapter 2

2011-08-02 Thread Herman
try...except...else...finally try: a = 1 / 0 except Exception, e print 'oops: %s' % e missing : except Exception, e:

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread pbreit
Looks like it could be a bug that only happens when a certain Java version is not found: *is_jython = settings.global_settings.is_jython = 'java' in sys.platform.lower() or hasattr(sys, 'JYTHON_JAR') or str(copyright).find('Jython') 0*

Re: [web2py] get any field as input for lambda function with .represent

2011-08-02 Thread Richard Vézina
Great... Thanks Anthony. Richard On Tue, Aug 2, 2011 at 12:43 PM, Anthony abasta...@gmail.com wrote: The change log for 1.98.1 includes: field.represent = lambda value,record: I think that might do what you want. Anthony On Tuesday, August 2, 2011 12:21:11 PM UTC-4, Richard

Re: [web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Jonathan Lundell
On Aug 2, 2011, at 10:02 AM, pbreit wrote: Looks like it could be a bug that only happens when a certain Java version is not found: is_jython = settings.global_settings.is_jython = 'java' in sys.platform.lower() or hasattr(sys, 'JYTHON_JAR') or str(copyright).find('Jython') 0

Re: [web2py] Re: multiselect with part of a table

2011-08-02 Thread Nicolas Palumbo
yes, shouldn't be what already exists in db because that may include items of the actual selection. DOing the multiselect only useful for adding stuff... but the actual selection + what was already selected from the other products. I'll see if I find a way to do that. Thanks, Nico On Sat, Jul

Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread pbreit
Hmmm...hard to say. Are you on Mac, Windows or *nix? Can you try it with http: hg clone http://code.google.com/p/web2py/https://code.google.com/p/web2py/ web2py

Re: [web2py] get any field as input for lambda function with .represent

2011-08-02 Thread Richard Vézina
Wonderful it works : db[request.args(0)].sample_id.represent=\ lambda sample_id, record: A(%(sample)s %db.v_sample_num_all[sample_id],\ _href=URL(r=request,f='read',args=request.args(0)+'/'+str( record.id))) Richard On Tue, Aug 2, 2011 at 1:12 PM, Richard Vézina

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
1. Yes, I completed those steps and the code was not inserted. 2. Version 1.98.1 3. I will submit the recommended example/language to this group. On Aug 2, 8:51 am, Anthony abasta...@gmail.com wrote: On Tuesday, August 2, 2011 8:12:01 AM UTC-4, Matthew wrote: Thank you! That bit of code was

[web2py] delete a SQLTABLE column

2011-08-02 Thread Richard
Hello, If you have a easy way to delete a entire SQLTABLE column before I find a way, I will take it. Thanks. Richard

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 1:45:52 PM UTC-4, Matthew wrote: 1. Yes, I completed those steps and the code was not inserted. Hmm, I just tried it (from 1.98.1 source version on Windows), and it works. Which distribution are you using -- Windows or Mac binary, or source? What else are you

Re: [web2py] delete a SQLTABLE column

2011-08-02 Thread Richard Vézina
Here I go ;-) rows = db().select(db.table1.ALL) table = SQLTABLE(rows) for i in range(0, len(table[1])): del(table[1][i][0]) del(table[0][0][0]) # Delete the header entry of the deleted column Richard On Tue, Aug 2, 2011 at 2:17 PM, Richard ml.richard.vez...@gmail.com wrote: Hello, If

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
On 2.8.2011 15:54, Anthony wrote: On Tuesday, August 2, 2011 8:44:52 AM UTC-4, Kenneth wrote: Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took?

Re: [web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Anthony
Here's what the Python docs say about the 'copyright' builtin: http://docs.python.org/library/constants.html#constants-added-by-the-site-module As pbreit pointed out, compileapp.py includes: is_jython = settings.global_settings.is_jython = 'java' in sys.platform.lower() or hasattr(sys,

[web2py] Keep Multiple Selection in CRUD.UPDATE

2011-08-02 Thread Ismael Serratos
Hi! I have a crud.update launched via mmodal, the table has 3 string fields with the option multiple activated. When I get into the crud.update the multiselect widget doesn't remember the selection, how could I remember the multiple selection so I can update it??

[web2py] Re: something strange when installing application

2011-08-02 Thread mart
good question... i can't see why they wouldn't though... hum... I 'm probably doing something silly again... I'll check it out, thanks, Mart :) On Aug 2, 12:19 pm, pbreit pbreitenb...@gmail.com wrote: Are the pages in the DB?

[web2py] Modal edit using FancyBox and iFrame

2011-08-02 Thread Jim Steil
Hi I'm using fancybox to display a crud.update form in an iframe. When I click on submit the 'next' action displays in the same iframe as the crud.update form, as expected. What I want to do is have the 'next' action display in the main browser window. In reading about iframe, it appears

[web2py] Re: Strange form behaviour.

2011-08-02 Thread Kevin Butler
I wish there were a simpler solution than having to add these lines of code to every function returning a form. (I don't want to touch web2py's code outside an app). Nice to see the rapid response - the latest version of SQLFORM allows you to specify sep='' instead of munging the returned

[web2py] Re: Strange form behaviour.

2011-08-02 Thread Anthony
On Tuesday, August 2, 2011 3:47:46 PM UTC-4, Kevin Butler wrote: I wish there were a simpler solution than having to add these lines of code to every function returning a form. (I don't want to touch web2py's code outside an app). Nice to see the rapid response - the latest version of

Re: [web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Heath Jordaan
I think Anthony and pbriet are right about the 'copyright' being the cause. If I try and run the included Python Interpreter directly from within the app bundle it doesnt seem to include a copyright built in. Heath-Jordaan-admins-MacBook-Pro:Resources heathjordaan$ ../MacOS/python Python 2.5.1

Re: [web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Anthony
Bugs go here: http://code.google.com/p/web2py/issues/list On Tuesday, August 2, 2011 4:19:27 PM UTC-4, Heath Jordaan wrote: I think Anthony and pbriet are right about the 'copyright' being the cause. If I try and run the included Python Interpreter directly from within the app bundle it

Re: [web2py] Modal edit using FancyBox and iFrame

2011-08-02 Thread Jim Steil
Hey, think I figured it out. I put this: base target=_top ...between the head element in my html for the iframe page. Now when the form is submitted, but the 'next' action is performed in the main page, not the iframe. -Jim On 8/2/2011 2:43 PM, Jim Steil wrote: Hi I'm using

Re: [web2py] Re: Bug in virtualfields w/ session

2011-08-02 Thread Michael Toomim
That's way better syntax! Great idea! On Aug 2, 2011, at 2:31 AM, Massimo Di Pierro wrote: We need to work on the speed. This can perhaps help the syntax: db=DAL() db.define_table('a',Field('b','integer')) for i in range(10): db.a.insert(b=i) def lazy(f): def g(self,f=f):

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-02 Thread Heath Jordaan
Thanks, I've submitted this as a bug. (362) Will just run the source code version in the meantime On Aug 2, 11:21 pm, Anthony abasta...@gmail.com wrote: Bugs go here:http://code.google.com/p/web2py/issues/list On Tuesday, August 2, 2011 4:19:27 PM UTC-4, Heath Jordaan wrote: I think

[web2py] Re: Not getting proper Janrain choices

2011-08-02 Thread Matthew
I see it now, thank you. I didn't realize it was at the bottom of the file. Thanks! On Aug 2, 2:20 pm, Anthony abasta...@gmail.com wrote: On Tuesday, August 2, 2011 1:45:52 PM UTC-4, Matthew wrote: 1. Yes, I completed those steps and the code was not inserted. Hmm, I just tried it (from

[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread Christopher Steel
You are right, I will take a peek at it. I have never done a pip package but it looks interesting. The problem is a lot of these installers can't handle something that does not need to be installed... I think pip like to make things part of the local python installation as in

[web2py] Re: something strange when installing application

2011-08-02 Thread pbreit
I believe the w2p files do NOT include the db.

Re: [web2py] delete a SQLTABLE column

2011-08-02 Thread pbreit
Navicat Lite or SQLite Manager for Firefox

[web2py] PATCH: date picker onfocus/onblur

2011-08-02 Thread Kevin Butler
Currently, when you TAB into a date field, the date picker doesn't open. It only opens if you click on the field. I added eventName:'focus' to the date datetime setup calls in web2py_ajax.js, and a hide() call for their blur events: try {jQuery(input.date).live('focus',function()

[web2py] Help needed with Google App Engine on Ubuntu 11.04

2011-08-02 Thread Pystar
Hi Guys, I am having some trouble running GAE on ubuntu 11.04, as I understand, GAE doesnt support python 2.7, so i installed python2.5 but whenever I try to run it, I get error messages. I am thinking of doing the following things but I dont really know how to proceed: 1. How do I completely

[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread Christopher Steel
From my understanding pip is going to install the same package no matter what OS is making the request so this is not really an Ubuntu issue, but it is very interesting to me because it is cross platform... I think the best approach would be to create a Python package that is sort of a utility

[web2py] Re: Rocket support IPv6

2011-08-02 Thread Timothy Farrell
A boy, Zane. A healthy 8lbs 5oz. Find me on Google+ for some images. On Jul 31, 3:39 pm, Michele Comitini michele.comit...@gmail.com wrote: Tim, Congratulations.  Male or Female? :-) mic 2011/7/31 Timothy Farrell explori...@gmail.com: OK, I'll take a look at these.  New baby here

[web2py] No module named pickle when started in App Engine

2011-08-02 Thread Matthew
I tried to start web2py 1.98.1 using dev_appserver.py, but it cannot find the pickle module. Traceback (most recent call last): File /home/matthew/dev/sdks/google_appengine_1.5.2/google/appengine/ tools/dev_appserver.py, line 4144, in _HandleRequest self._Dispatch(dispatcher, self.rfile,

Re: [web2py] Re: Web2Py with Python 2.4

2011-08-02 Thread John La Rooy
hashlib is new in Python2.5 in Python2.4 there is separate md5 module/sha module etc. John La Rooy On Tue, Aug 2, 2011 at 8:01 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Officially we dropped support for 2.4. Yet, I cannot think of anything that broke it yet. What error did you

Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread David Webb
On 08/02/2011 12:06 PM, pbreit wrote: Hmmm...hard to say. Are you on Mac, Windows or *nix? Can you try it with http: hg clone http://code.google.com/p/web2py/ https://code.google.com/p/web2py/ web2py on unix, and i found my truly bonehead error don't know why, but in my terminal window i had

[web2py] Re: pyodbc access to Teradata (via web2py)

2011-08-02 Thread Andrew
Hi Massimo, I'm working on making a few changes to the TeradataAdaptor in dal.py, but admittedly learning about how it all works as I go along. I hope to give you some code sometime soon. I have created a legacy table with a 2 column PK. I am attempting to do an insert via the admin screen's

[web2py] Re: Help needed with Google App Engine on Ubuntu 11.04

2011-08-02 Thread Pystar
still waiting On Aug 3, 2:15 am, Pystar aitoehi...@gmail.com wrote: Hi Guys, I am having some trouble running GAE on ubuntu 11.04, as I understand, GAE doesnt support python 2.7, so i installed python2.5 but whenever I try to run it, I get error messages. I am thinking of doing the following

[web2py] Re: web2py for freelance work

2011-08-02 Thread guruyaya
I'm not working at the freelance world, so I don't know if my answer is valid. But I think any answer you get, will be right to the location they work in. In israel, there will be a big advantage for someone that knows PHP, over someone that knows python. I know this because I recently looked for