[web2py] Re: How do I import `gluon.dal` from Python shell?

2013-01-27 Thread Emilius Omeen
import sys sys.path.append('/home/www-data/web2py') from gluon import DAL, Field --

Re: [web2py] SqlDesigner w2p appliance

2013-01-27 Thread ludwa6
@Ovido: That is indeed the app -only it's the w2p file that bundles the code into installable app that i lack. This used to be available from the page at http://www.web2py.com/appliances, and is still listed there, only the "download" link is broken, as it no longer exists in that git repository

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread hasan alnator
Dear Alen , but i need to know *What is the encryption what web2py implements on the password field in the auth_user table *? Best Regards, On Mon, Jan 28, 2013 at 10:29 AM, Alec Taylor wrote: > Use the same hash function that you use in web2py; in php. > > For further discussion on how to wr

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread Alec Taylor
Use the same hash function that you use in web2py; in php. For further discussion on how to write this in; go onto a PHP mailing-list. On Mon, Jan 28, 2013 at 6:08 PM, hasan alnator wrote: > Dear Alec, > > I tried this but am now getting the same value in the databae : > > echo hash('ripemd160'

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread hasan alnator
Dear Alec, I tried this but am now getting the same value in the databae : regards, On Mon, Jan 28, 2013 at 10:05 AM, Alec Taylor wrote: > http://php.net/manual/en/function.hash.php > > On Mon, Jan 28, 2013 at 5:59 PM, Hassan Alnatour > wrote: > > Dear ALL , > > > > How can i implement web2p

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread Alec Taylor
http://php.net/manual/en/function.hash.php On Mon, Jan 28, 2013 at 5:59 PM, Hassan Alnatour wrote: > Dear ALL , > > How can i implement web2py password encryption in php ? > > Best Regards, > > -- > > > --

[web2py] How to implement web2py password encryption in php

2013-01-27 Thread Hassan Alnatour
Dear ALL , How can i implement web2py password encryption in php ? Best Regards, --

[web2py] How do I import `gluon.dal` from Python shell?

2013-01-27 Thread Alec Taylor
The shell is extremely useful for playing around with small snippets of code; and running tests. However, I am having trouble getting it to work with web2py. What's the trick to importing it? My attempt: >ls -1 # with irrelevant bits excluded for brevity … applications … gluon … routes.py … web

[web2py] ORA-01722: invalid number - Does field order matter?

2013-01-27 Thread Bill Thayer
Hello, I am borrowing code from the CategoryPlugin sliceand ran into a unique Oracle error but I suspect that the insert command is not inserting by named fields. From my stack trace the argument below shows the columns in

[web2py] Re: custom forms wont submitted

2013-01-27 Thread Anthony
crud.create() handles the form processing automatically, so you should not call form.accepts() after it. Please read the book section on Crud: http://web2py.com/books/default/chapter/29/07#CRUD. Anthony On Sunday, January 27, 2013 6:25:14 PM UTC-5, Wahb Isaak wrote: > > Hallo > > Im using custo

Re: [web2py] Redmine beside web2py with Nginx deployment script

2013-01-27 Thread Alan Etkin
> > I notice that python-psycopg2 were not installed and web2py was using > pg8000 to access postgres (not sure of that)... I wa > If you found an issue related to the pg8000 adapter, maybe you want to report it at the project page: http://code.google.com/p/pg8000/issues/list --

[web2py] custom forms wont submitted

2013-01-27 Thread Wahb Isaak
Hallo Im using custom form but then i consideret 2 problems 1) errors are not more camputred or displayed 2) form won't be submitted: when i click on submit the page just reload (keeping the old values) in controller i have : def new(): form=crud.create(db.i2l_letter) if form.accepts(re

[web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-27 Thread greaneym
> Thanks for the wonderful web2py. Here are some spelling errors that I >> found in > > the diff download. > > >> +As soon as you type something in the search box and release a key, the >> client calls the server and sends the content of the 'keyword' field, and, >> when the sever responds, t

Re: [web2py] Redmine beside web2py with Nginx deployment script

2013-01-27 Thread Richard Vézina
I notice that python-psycopg2 were not installed and web2py was using pg8000 to access postgres (not sure of that)... I was having bizzard decimal (there was more 0 added at the end of my number, most of the time 2 more 0). I was really puzzled about that until I start think about psycopg2 and whic

Re: [web2py] SqlDesigner w2p appliance

2013-01-27 Thread Ovidio Marinho
this is what you're looking for? http://gaesql.appspot.com/ Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9336 3782

[web2py] Re: Autocomplete problem ...

2013-01-27 Thread Ivan Gazzola
Il giorno giovedì 24 gennaio 2013 18:56:59 UTC+1, Massimo Di Pierro ha scritto: > > db.Relation.name.widget=SQLFORM.widgets.autocomplete(request,db.Person,id_field= > db.Person.id ) > > db.Relation.contact.widget=SQLFORM.widgetsre.autocomplete(request,db.Person,id_field= > d

[web2py] Re: web2py cookbook

2013-01-27 Thread samuel bonilla
apparently this website is the successor megaupload.. El domingo, 27 de enero de 2013 12:07:50 UTC-5, samuel bonilla escribió: > > sorry, I didn't notice that, > > knew nothing about the book, I have not read, sorry.sorry > > > --

[web2py] Re: web2py cookbook

2013-01-27 Thread samuel bonilla
already reported this to mega.co.nz. El domingo, 27 de enero de 2013 12:07:50 UTC-5, samuel bonilla escribió: > > sorry, I didn't notice that, > > knew nothing about the book, I have not read, sorry.sorry > > > --

Re: [web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-27 Thread Martin Weissenboeck
*Experiences with janrain* I wanted to get janrain work and I have spent some hours to start this service. Maybe the following lines could help: (1) From the book: You can register with Janrain.com, register a domain (the name of your app) and set of URLs you will be using, and they will provide

[web2py] SqlDesigner w2p appliance

2013-01-27 Thread ludwa6
It appears that the link to download SqlDesigner from the appliances page (http://www.web2py.com/appliances) is broken -and when i browse the git repository, indeed, there appears to be no such file. Would like to install that appliance, if i could just get my hands on that file; would appreciat

[web2py] Re: client-side db query access control

2013-01-27 Thread Alan Etkin
> > Does this help: > http://web2py.com/books/default/chapter/29/09?search=accessible_query > It's just what I was looking for (sorry I didn't read the book first). The GAE note is updated? (I thought a pseudo join was implemented in the GAE adapter, in which case this would also work there)

[web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-01-27 Thread Dane Wright
Some minor corrections - Line 1724 - change 'browser' to 'browse' and add 'one' from: +Line 38 creates a ``grid`` object that allows to browser, add and update the comments linked to a page. to: +Line 38 creates a ``grid`` object that allows one to browse, add and update the comments linked to

[web2py] Re: records as fields in a single form

2013-01-27 Thread Anthony
> > File "/Users/annet/web2py/gluon/dal.py", line 7103, in lazy_define_table table = table_class(self, tablename, *fields, **args) > File "/Users/annet/web2py/gluon/dal.py", line 7512, in __init__ > self[field_name] = field > File "/Users/annet/web2py/gluon/dal.py", line 7680, in __se

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread paolo.vall...@gmail.com
The problem is that with the current approach i set the title field but i have not found yer the possibility to render it :-( Looking to the code a very dirty but working workaround is to unset the current.request.extension. get the wiki and set extension as before. In this way i get all fields se

[web2py] Re: client-side db query access control

2013-01-27 Thread Anthony
Does this help: http://web2py.com/books/default/chapter/29/09?search=accessible_query On Sunday, January 27, 2013 10:50:13 AM UTC-5, Alan Etkin wrote: > > How do I filter a remote db query when someone sends an unauthorized > select from a browser? I mean I want to check any record permissions w

[web2py] Re: web2py cookbook

2013-01-27 Thread Alan Etkin
> > for learn more about web2py. > Looks like a free download. Is it actually for free now (or it's an unauthorized file share)? --

Re: [web2py] web2py cookbook

2013-01-27 Thread Massimo Di Pierro
I will notify the publisher. They have the copyright. massimo On Sunday, 27 January 2013 11:26:51 UTC-6, backseat wrote: > > On Sun, 27 Jan 2013 09:07:50 -0800 (PST), pytho...@gmail.com > said: > > > for learn more about web2py. > > That appears to be the Web2py Cookbook, Copyright Packt P

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Massimo Di Pierro
I agree that is what it does and that is what is suposed to do. Paolo tells us it should work differently. I think that would be best done with a different API. Massimo > def wiki(): > return auth.wiki() # no "render" argument > > The output is: > > {'content': } > > I guess this is the no

Re: [web2py] web2py cookbook

2013-01-27 Thread Keith Edmunds
On Sun, 27 Jan 2013 09:07:50 -0800 (PST), pythonn...@gmail.com said: > for learn more about web2py. That appears to be the Web2py Cookbook, Copyright Packt Publishing. Is this legitimate to share in this way? It would appear not, given that the link on the Web2py pages is to purchase this bo

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Alan Etkin
> > Hi Massimo, the point is that, if I define the following code in a > controller: I just tested an old welcome app with: def wiki(): return auth.wiki() # no "render" argument The output is: {'content': } I guess this is the normal behavior for all .wiki calls (just the content). --

Re: [web2py] Search Form (Advice/Help) with custom Form

2013-01-27 Thread Andrew Evans
I was able to get it working thanks anyway everyone --

[web2py] web2py cookbook

2013-01-27 Thread samuel bonilla
for learn more about web2py. link: https://mega.co.nz/#!cUQAlBga!WSuGwSalMwliYTl9TfU0TQGFH1A7F-ZCX3VbXSAZe50 --

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Paolo valleri
Hi Massimo, the point is that, if I define the following code in a controller: def wiki(): return auth.wiki(render='html') In the corresponding view I will have only the 'content' field. As a result I will be able to format the wiki page by its content only no other fields can be retrieved;

Re: [web2py] Re: writing build scripts for web2py

2013-01-27 Thread Hector Magnanao
Is there a way to tar it as an .w2p file just like the what pack all does ? or does it matter ? On Saturday, January 26, 2013 6:15:34 PM UTC-6, rochacbruno wrote: > > Go to admin interface and click in "Pack All: it generates a .w2p package. > > Or just go to your shell and $tar -cvf myapp.tar.

[web2py] Password encoding in php

2013-01-27 Thread Hassan Alnatour
Dear ALL , i have a php login form , now the password is posted as md5() ,, what is the correct encoding to use in php with web2py password field in auth_user table what am posting is regards, --

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Massimo Di Pierro
I do not fully understand the issue. Can you post more code as an example? On Friday, 25 January 2013 08:32:55 UTC-6, Paolo valleri wrote: > > Dear all, I've just came across the fact that with the following code: > def wiki(): > return auth.wiki(render='html') > and visiting something like ap

[web2py] client-side db query access control

2013-01-27 Thread Alan Etkin
How do I filter a remote db query when someone sends an unauthorized select from a browser? I mean I want to check any record permissions with the auth object for any query (i.e permission, membership, ...). Is this currently possible (as built-in feature) or I must build my own logic with the

[web2py] Search Form (Advice/Help) with custom Form

2013-01-27 Thread Andrew Evans
I am developing a search form in web2py, I create the form like this Enter Keywords Select Region Choose a Region... {{for region in region_query:}}

[web2py] Re: wp2 installation failures

2013-01-27 Thread ludwa6
@Massimo: The error appears in a ticket, i see no traceback, but if that would be helpful and you can tell me how to access it, i'd be happy to try. As to method of installation: I downloaded the latest from the DL page; it came in the form of a file !web2py_osx.zip", which unpacked into a fold

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Paolo valleri
to keep track of that, I have opened an issue http://code.google.com/p/web2py/issues/detail?id=1303 On Friday, January 25, 2013 3:32:55 PM UTC+1, Paolo valleri wrote: > > Dear all, I've just came across the fact that with the following code: > def wiki(): > return auth.wiki(render='html') > a

Re: [web2py] Re: Detect change in sqlform.grid

2013-01-27 Thread Keith Edmunds
On Sat, 26 Jan 2013 13:05:50 -0800 (PST), niph...@gmail.com said: > grid takes formargs={}, createargs={}, editargs={} Thanks. I'm sorry if I'm being a bit slow here, but I *still* can't get what I want to work. I've tried:

[web2py] Re: How do I use web2py to make a simple GUI?

2013-01-27 Thread Rufus
To quickly learn some html and css, I recommend the exercises at www.codeacademy.com Not perfect, but useful. --