[web2py] Re: No DB queries in web2py shell?

2012-03-16 Thread Stefan Scholl
No problem with web2py 1.91.6 on Windows, SQLite. Anthony wrote: > You're right, db selects do not appear to be working in the web-based > shell, at least not on Windows using SQLite. Are you sure it used to work > (specifically on Windows) -- I haven't tried it in a while, but I seem to > re

Re: [web2py] Correct way to use memcache on GAE with web2py

2012-03-16 Thread Sushant Taneja
Thanks ! On Friday, March 16, 2012 2:04:42 AM UTC+5:30, Jonathan Lundell wrote: > > On Mar 15, 2012, at 1:15 PM, Sushant Taneja wrote: > > I have a tags table which will be available to all logged in users. The > table has the following structure: > > > > db.define_table('META_TAG', > > Fie

[web2py] Error in installing web2py 1.99.4 in ubuntu 11.10

2012-03-16 Thread praveen krishna
Hi, I have installed web2py 1.99.4 in ubuntu 11.10 but it is generating ticket(internal error ) while connecting to the server and by clicking the link link it is says the following trace back error Traceback 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last): File "/usr/lib/pymodules/p

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-16 Thread szimszon
If I have some time I'll make the search scope configurable in ldap_auth... 2012. március 16., péntek 3:15:10 UTC+1 időpontban IVINH a következőt írta: > > Hi all, > > This my code for LDAP: > >from gluon.contrib.login_methods.ldap_auth import ldap_auth > > auth.settings.login_methods.ap

Re: [web2py] Error in installing web2py 1.99.4 in ubuntu 11.10

2012-03-16 Thread Ricardo Pedroso
On Fri, Mar 16, 2012 at 9:46 AM, praveen krishna wrote: > Hi, > I have installed web2py 1.99.4 in ubuntu 11.10 but it is generating > ticket(internal error ) while connecting to the server and by clicking the > link link it is says the following trace back error > Traceback > > 1. > 2. > 3. > 4.

[web2py] Re: web2py course and certificate program online

2012-03-16 Thread Alan Etkin
Not sure if that is the newest resource for the project, but seems that for 64 bits you'll have to download the source and build it in your system: http://effbot.org/downloads/Imaging-1.1.7.tar.gz Have you tried to install this package? http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe On 15

Re: [web2py] Error in installing web2py 1.99.4 in ubuntu 11.10

2012-03-16 Thread praveen krishna
Hii Richardo, I have installed the web2py from ubuntu sofware cente. I tried commands given by you but it is say praveen@ubuntu:~$ sudo mv /usr/lib/pymodules/python2.7/gluon /usr/lib/pymodules/python2.7/gluon.bak [sudo] password for praveen: praveen@ubuntu:~$ cd /tmp praveen@ubuntu:/tmp$ unzip /pa

[web2py] Re: web2py course and certificate program online

2012-03-16 Thread Alan Etkin
I'm sorry, missed the thread. By the way, I've been looking the course info, it is very interesting indeed. On 16 mar, 07:51, Alan Etkin wrote: > Not sure if that is the newest resource for the project, but seems > that for 64 bits you'll have to download the source and build it in > your system

[web2py] Re: PIL software for win 64bit and python 2.7 64 bit

2012-03-16 Thread Alan Etkin
Not sure if that is the newest resource for the project, but seems that for 64 bits you'll have to download the source and build it in your system: http://effbot.org/downloads/Imaging-1.1.7.tar.gz Have you tried to install this package? http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe On 16

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Thanks Roberto. But I'm looking for something more generic to web2py, which works on both my production environment (ubuntu with uwsgi) and my local environment (windows with rocket), and hopefully other production configurations (with no uwsgi processes) if necessary. Is there such a thing in

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Bruce Wade
For keeping things in memory and being able to update the objects in real time, cache.ram and memcache I think are out of the question because I believe they both store a specific state of the object in memory (no update options). I have no idea about redis. However I have been looking for the exa

[web2py] Ok, I give in! How do I install jquery plugin, hoverIntent.js

2012-03-16 Thread Edward Shave
I'm a retired client/server (delphi) programmer and am struggling to learn the new stuff as I go.. I downloaded the file *jquery.hoverIntent.js* and placed it in the static/js directory. I added the following line to web2py_ajax.html... *response.files.insert(4,URL('static','js/jquery.hove

[web2py] Re: Ok, I give in! How do I install jquery plugin, hoverIntent.js

2012-03-16 Thread Anthony
Note, if you have included the superfish.js file (which the "welcome" layout.html includes by default if there is a response.menu), hoverIntent is already included in there (along with Supersubs), so no need to include it separately. Anyway, what isn't working? Is the file not being loaded by t

[web2py] Length of a list:string field

2012-03-16 Thread Mthomas
I love Web2py and am using it with great success in my organization. I have run into a limitation/default that I cannot find how to set. When using the IS_LIST_OF() validator on a list:string Field, I have not been able to enter more than 100 entries (SQLFORM.grid) without getting the ge

[web2py] Re: PIL software for win 64bit and python 2.7 64 bit

2012-03-16 Thread Alan Etkin
This will probably let you install the package, although there's need for tweaking the windows registry (not the best solution, but you will be able to install the library) http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows http://selfsolved.com/problems/setuptools-

[web2py] Re: Ok, I give in! How do I install jquery plugin, hoverIntent.js

2012-03-16 Thread Edward Shave
Oh, right, I didn't realize that. Anyway, I've removed the line where I attempted to install it. My code is in layout.html and here I've shown it in context as the last line. It works with hover but not hoverIntent? * {{include 'web2py_ajax.html'}}* * * *...* ** * jQuery(functio

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Thanks Bruce. I require to share (set, get, update, delete) only a small chunk of data, is this at all possible with web2py?. Can Massimo or some of the other web2py experts comment on this?. Thanks again. On Friday, March 16, 2012 7:14:50 AM UTC-6, Detectedstealth wrote: > > For keeping thin

Re: [web2py] Error in installing web2py 1.99.4 in ubuntu 11.10

2012-03-16 Thread Johann Spies
On 16 March 2012 12:51, praveen krishna wrote: > praveen@ubuntu:/tmp$ unzip /path/to/web2py_src.zip > unzip: cannot find or open /path/to/web2py_src.zip, > /path/to/web2py_src.zip.zip or /path/to/web2py_src.zip.ZIP. > > That means that 'unzip' could not find the file 'web2py_src.zip.zip' or th

[web2py] Re: Ok, I give in! How do I install jquery plugin, hoverIntent.js

2012-03-16 Thread Anthony
Hmm, not sure what the problem is, but doesn't look like a web2py issue. Maybe check the hoverIntent documentation. On Friday, March 16, 2012 11:07:47 AM UTC-4, Edward Shave wrote: > > Oh, right, I didn't realize that. Anyway, I've removed the line where I > attempted to install it. > > My code

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Massimo Di Pierro
The problem is that you cannot use ram. That is because you may have more than one process and even if you have s ingle process, the web server may restart it. It needs to be stored in file (in that case I'd suggest a shared db) or some external cache (for example redis). Massimo On Friday, 16

[web2py] Re: Ok, I give in! How do I install jquery plugin, hoverIntent.js

2012-03-16 Thread Edward Shave
Ok, many thanks for your input. I'll let you know if I find an answer. Thanks again, Ed.

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Bruce Wade
Or you could create a separate application that is outside of web2py that doesn't get started by the server, and/or loads when the server is started automatically, that your web2py applications can access through a daemon or something. On Fri, Mar 16, 2012 at 8:52 AM, Massimo Di Pierro < massimo.d

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Ok, thanks very much for all your input ! On Friday, March 16, 2012 10:12:42 AM UTC-6, Detectedstealth wrote: > > Or you could create a separate application that is outside of web2py that > doesn't get started by the server, and/or loads when the server is started > automatically, that your web

[web2py] web2py reverse proxy for AnnoJ

2012-03-16 Thread Liam
Dear all, I'm attempting to integrate the genome viewer AnnoJ into my application. To allow visitors to view data provided by another service, I need to configure a reverse proxy. This is easy enough to do in Apache, but I've been having problems doing this in web2py. I've tried several variati

[web2py] Authenticating with Facebook using OAuth 2.0

2012-03-16 Thread Hassan Alnatour
Dear ALL , I Got the new cookbook and i am having some problems , its now working , here is what i did : 1 - i created an application on facebook and added a Site Domain > test.i3zif.com and Site URL >http://www.test.i3zif.com/ hellofacebook . 2 - i created and file named it fbappauth.py and ad

[web2py] PyCon US 2012 Web2Py talk

2012-03-16 Thread John-Kim Murphy
Massimo gave a good introduction to Web2Py at PyCon US 2012. The video is here . In the video, he builds a web site URL bookmarking/shortening app. @Massimo: any plans to share the source code? I was planning to make a very sim

Re: [web2py] Correct way to use memcache on GAE with web2py

2012-03-16 Thread Sushant Taneja
Hi, I am stuck here, I tried the mentioned code, there are 2 problems I am facing: 1. All the table columns are extracted rather than only the two columns in the select() 2. I get pickling error when I try to add the Rows object to memcache *PicklingError: Can't pickle : attribute lookup __bu

[web2py] Working locally on a snapshot of a GAE database

2012-03-16 Thread fabien
Hello, I wish to get a local copy of a running GAE database, so that I can experiment on my PC without messing up actual user data. I can't figure out the proper way to do that. If I export databases, either through appadmin or "./appcfg download_data": - it seems that I need to export each tab

[web2py] Re: PyCon US 2012 Web2Py talk

2012-03-16 Thread Massimo Di Pierro
It is already under posted here: https://github.com/mdipierro/web2py-appliances under URL shortener On Friday, 16 March 2012 12:02:43 UTC-5, John-Kim Murphy wrote: > > Massimo gave a good introduction to Web2Py at PyCon US 2012. The video is > here

[web2py] web2py and roundcube

2012-03-16 Thread George Jekner
Hello, I am trying to setup web2py and roundcube on the same Ubuntu 11.10 box. I have to go to http://serverip/installer Per: http://trac.roundcube.net/wiki/Howto_Install But, when I do it takes me to a web2py page that tells me it can't find the controller. This error makes sense to me. But I a

[web2py] settings.security_key???

2012-03-16 Thread greenpoise
I am reading the new book. Where does this security_key comes from? is a long string of characters. Is this made up? is this something that can be made up???

[web2py] Re: No DB queries in web2py shell?

2012-03-16 Thread Stefan Scholl
Stefan Scholl wrote: > Person and dog inserted via database admin. After that the shell > from the admin interface was used. The variable dogs was > undefined after that. And no output with just > "db().select(db.dog.ALL)". Tested the same on a Mac, web2py 1.99.7, the Mac app. Failed, too. But th

[web2py] Re: settings.security_key???

2012-03-16 Thread Massimo Di Pierro
Yes. It is a UUID generated the first time the app starts On Friday, 16 March 2012 14:04:18 UTC-5, greenpoise wrote: > > I am reading the new book. Where does this security_key comes from? is a > long string of characters. Is this made up? is this something that can be > made up??? > > > > >

Re: [web2py] Authenticating with Facebook using OAuth 2.0

2012-03-16 Thread Michele Comitini
Hi Hassan, I think we can help you, do not despair! Ok I need some more info on your code. What did you write in controller/default.py and in your view? mic Il 16 marzo 2012 17:31, Hassan Alnatour ha scritto: > Dear ALL , > > I Got the new cookbook and i am having some problems , its now > wo

[web2py] TEXT data type deprecated in future MSSQL?

2012-03-16 Thread Joaquin Orbe
Hi Massimo, I've took a look into dal.py and found that "text" data type for MSSQLAdapter and MSSQL2Adapter is mapped to TEXT and NTEXT respectively. According to this article[0], these ones should be replaced by varchar(max) and nvarchar(max) due to will be deprecated in future versions (maybe SQ

[web2py] Re: routes for subdomains

2012-03-16 Thread Larry Wapnitsky
Massimo- I'm still a little unclear on this. I have a setup where web2py is a subfolder of my public_html folder. I have two domains, A and B. I'd like for the following sub1.ADomain.com to go to public_html/web2py/appA1/default/index sub2.ADomain.com public_html/web2py/appA2/de

[web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-16 Thread Massimo Di Pierro
We'll break backward compatibility for this adapter and we'll blame MS for it. On Friday, 16 March 2012 15:07:50 UTC-5, Joaquin Orbe wrote: > > Hi Massimo, > > I've took a look into dal.py and found that "text" data type for > MSSQLAdapter and MSSQL2Adapter is mapped to TEXT and NTEXT > respectiv

[web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-16 Thread Massimo Di Pierro
P.S. Please open a google code ticket about it. On Friday, 16 March 2012 15:44:47 UTC-5, Massimo Di Pierro wrote: > > We'll break backward compatibility for this adapter and we'll blame MS for > it. > > On Friday, 16 March 2012 15:07:50 UTC-5, Joaquin Orbe wrote: >> >> Hi Massimo, >> >> I've took

[web2py] routes.py not picking up

2012-03-16 Thread rdodev
Hey all, I have renamed (and edited) routes.py for both incoming and outgoing urls. I have tried messing up with the url tuples and it looks as if web2py is just not picking that up at all. I have restarted web2py server, I have tried changed in the controllers (and does changes are picked up),

[web2py] Re: Authenticating with Facebook using OAuth 2.0

2012-03-16 Thread Alan Etkin
I have installed the app from the book support files and it works (with a dyndns subdomain and rocket dev. server). Could you post your facebook application configuration? (not the id or client credentials). Have you tried specifying the tcp port in the facebook configuration for the site url? On

[web2py] default app.yaml outdated?

2012-03-16 Thread Stefaan Himpe
Hello, I downloaded web2py 1.99.7 source code and google app engine sdk 1.6.3. When I try to start web2py using dev_appserver, it complains (see stack trace). Any ideas? Best regards, Stefaan. WARNING 2012-03-16 21:26:56,734 rdbms_mysqldb.py:74] The rdbms API is not available because the

Re: [web2py] default app.yaml outdated?

2012-03-16 Thread Jonathan Lundell
On Mar 16, 2012, at 2:28 PM, Stefaan Himpe wrote: > > I downloaded web2py 1.99.7 source code and google app engine sdk 1.6.3. > When I try to start web2py using dev_appserver, it complains (see stack > trace). > > Any ideas? Just remove the datastore_admin line.

Re: [web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-16 Thread Joaquin Orbe
On Fri, Mar 16, 2012 at 5:45 PM, Massimo Di Pierro wrote: > P.S. Please open a google code ticket about it. Done: http://code.google.com/p/web2py/issues/detail?id=722 Regards, Joaco.

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-16 Thread szimszon
Can you please test it? I can test it only on monday. or you can customize the search for user: auth.settings.login_methods.append(ldap_auth( mode='custom', server='my.ldap.server', base_dn='ou=Users,dc=domain,dc=com', username_attrib='uid',

[web2py] Re: routes.py not picking up

2012-03-16 Thread Anthony
To be clear, you have a file called "routes.py" in your root /web2py folder? Can you show the contents? What are you expecting, and what are you seeing instead? On Friday, March 16, 2012 4:57:48 PM UTC-4, rdodev wrote: > > Hey all, > > I have renamed (and edited) routes.py for both incoming and

Re: [web2py] routes.py not picking up

2012-03-16 Thread Ruben Orduz
Anthony, yes to your first question. And i know it's not picking it up because I mangled it on purpose and it kept working with no errors. As soon as I can VPN to work, I'll post its contents. Thx. On Friday, March 16, 2012, Anthony wrote: > To be clear, you have a file called "routes.py" in yo

[web2py] Re: Working locally on a snapshot of a GAE database

2012-03-16 Thread howesc
there once was a perhaps now deprecated dump and import tool with appcfg.py that did the whole thing. i have been using the updated version with a bulkloader.yaml, and i wrote a shell script with a list of my tables and a for loop. in my bulkloader.yaml i convert keys to strings and then use th

Re: [web2py] Correct way to use memcache on GAE with web2py

2012-03-16 Thread howesc
1. that is how GAE queries works. it's GAE's fault, not web2py's. 2. correct. Rows objects are not pickelable. as_list() or as_dict() are your friend. this is not just for GAE but all environments i believe. On Friday, March 16, 2012 10:03:36 AM UTC-7, Sushant Taneja wrote: > > Hi, > > I am

[web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
Paste of routes.py that lives in web2py root folder. http://dpaste.com/717611/ On Friday, March 16, 2012 6:25:30 PM UTC-4, Anthony wrote: > > To be clear, you have a file called "routes.py" in your root /web2py > folder? Can you show the contents? What are you expecting, and what are you > see

[web2py] web2py on GAE: Issue #694 is a DAL patch to provide high performance parent-child queries

2012-03-16 Thread dlypka
GAE developers - you may be interested in Issue 694 http://code.google.com/p/web2py/issues/detail?id=694 It allows you to use a normal web2py query to retrieve the parent entity but that single datastore query automatically attaches all the child entities as well. So instead of following links

[web2py] Re: routes.py not picking up

2012-03-16 Thread Anthony
I'm not sure, but I think if you have routes_app, it will ignore routes_in and routes_out in the root routes.py if the request is for one of the apps in routes_app. If you're using routes_app, then you also need routes.py files within the specific application folders as well. Anthony On Friday

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread Jonathan Lundell
On Mar 16, 2012, at 6:39 PM, Anthony wrote: > I'm not sure, but I think if you have routes_app, it will ignore routes_in > and routes_out in the root routes.py if the request is for one of the apps in > routes_app. If you're using routes_app, then you also need routes.py files > within the speci

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread Anthony
On Friday, March 16, 2012 9:46:33 PM UTC-4, Jonathan Lundell wrote: > > On Mar 16, 2012, at 6:39 PM, Anthony wrote: > > I'm not sure, but I think if you have routes_app, it will ignore routes_in > and routes_out in the root routes.py if the request is for one of the apps > in routes_app. If you'r

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
Let me remove those, and I'll check back. On Friday, March 16, 2012 9:58:12 PM UTC-4, Anthony wrote: > > On Friday, March 16, 2012 9:46:33 PM UTC-4, Jonathan Lundell wrote: >> >> On Mar 16, 2012, at 6:39 PM, Anthony wrote: >> >> I'm not sure, but I think if you have routes_app, it will ignore >>

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread rdodev
ok removing those and re-starting web2py worked (well it broke, but that's a good thing). Thx all for your help. If it's not on to-do list: maybe it should be to improve (or to make clearer in the docs) how the routes.py works and that you need to comment our routes_app in order for it to work.

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread Jonathan Lundell
On Mar 16, 2012, at 6:58 PM, Anthony wrote: > On Friday, March 16, 2012 9:46:33 PM UTC-4, Jonathan Lundell wrote: > On Mar 16, 2012, at 6:39 PM, Anthony wrote: >> I'm not sure, but I think if you have routes_app, it will ignore routes_in >> and routes_out in the root routes.py if the request is fo

Re: [web2py] Re: routes.py not picking up

2012-03-16 Thread Anthony
> > ok removing those and re-starting web2py worked (well it broke, but that's > a good thing). Thx all for your help. If it's not on to-do list: maybe it > should be to improve (or to make clearer in the docs) how the routes.py > works and that you need to comment our routes_app in order for i

[web2py] Re: Setup Script: Ubuntu + Nginx + uWSGI

2012-03-16 Thread Marco Tulio
Hi, Tested on: Ubuntu 10.04.4 LTS nginx-1.0.11 uwsgi-0.9.9.3 web2py 1.99.7 user=www-data Hosted at Amazon EC2. ubuntu@IP:/opt$ uname -a Linux IP 2.6.32-342-ec2 #43-Ubuntu SMP Wed Jan 4 18:22:42 UTC 2012 x86_64 GNU/Linux Pretty much downloaded the script and ran it. Installed nginx, uwsgi,

Re: [web2py] Re: Setup Script: Ubuntu + Nginx + uWSGI

2012-03-16 Thread Bruce Wade
Probably because the debian packages tend to be out of date, it is always better to use the latest versions of these packages. On Fri, Mar 16, 2012 at 8:37 PM, Marco Tulio wrote: > Hi, > > Tested on: > > Ubuntu 10.04.4 LTS > nginx-1.0.11 > uwsgi-0.9.9.3 > web2py 1.99.7 > user=www-data > Hosted a

[web2py] web2py recipe book

2012-03-16 Thread lyn2py
The PayPal integration in the book says it's for web2py version 1.77.2, we are now at 1.99.7, shouldn't it be updated?

[web2py] fluxflex problem

2012-03-16 Thread Prakhar Srivastava
Hello all the group menders today there is any problem in fluxflex with web2py because my application need a auth. at every click ?

Re: [web2py] My new site powered by Web2Py

2012-03-16 Thread Marco Tulio Cicero de M. Porto
Hi, I saw your post on the web2py list, and I'm trying to run nginx+uwsgi on ubuntu running on EC2. I used the script that comes with web2py, and it installed ok, but it won't allow me to create a new app. Do you happen to know why or how I solve this? Thanks in advanced! 2012/2/15 Matt Doiron

[web2py] Re: web2py course and certificate program online

2012-03-16 Thread Ramkrishan Bhatt
Hello Massimo, we are also providing training session called Certified Training Program "Allegiant Software Developer“ using web2py and python. If anybody also eager to learn web2py please feel free to contact me at ramkrishanbh...@zero-group.com or +917597087495 . On Friday, 16 Marc

[web2py] Nginx and Web2py

2012-03-16 Thread Marco Tulio Cicero de M. Porto
Hi! I was having trouble on running web2py on nginx, but then I ran the script that comes within web2py and it installed. After that, I tried creating an app, but it didn't work. Then I stopped the server and started web2py like this: python2.6 web2py.py and then restarted nginx. I was able to cre

Re: [web2py] Nginx and Web2py

2012-03-16 Thread Bruno Rocha
what did not work? did you installed uwsgi + nginx + web2py ? you dont need to start web2py manually on command line, uwsgi will do that for you. Checklist DNS - Is your DNS pointing to your server IP? www.domain.com gives you what? NGINX server file for your application - /etc/nginx/sites-ava

Re: [web2py] web2py recipe book

2012-03-16 Thread Tim Alexander
Bought one for me, and one for a friend (kindle edition). Now to find the time to read it...

Re: [web2py] web2py recipe book

2012-03-16 Thread Bruce Wade
A lot of the code in the book looks to be from older recipes. I think most should work with the new code. (However have not got through all the code yet and have had a few problems with the ones I have tried) On Fri, Mar 16, 2012 at 10:56 PM, Tim Alexander wrote: > Bought one for me, and one for