[web2py] Re: web2py resources

2012-03-01 Thread netcode
Thanks, wikus. yeah, i noticed that variable and the comments just beneath it thst helps to change to any other dbase. i would love p-sql so am going to do just that. On Thursday, 1 March 2012 17:46:04 UTC+1, netcode wrote: > > Hello all, i think we need more web2py resources. am new to web2py

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread Sanjeet Kumar
i am very excited to use the new version of web2py 1.99.5 . when i downloaded it and use than i face the to many problems i am not be able to go the database administration when i click on the database administration it is redirecting to the site view and i also copied the my application which

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread Sanjeet Kumar
i am very excited to use the new version of web2py 1.99.5 . when i downloaded it and use than i face the to many problems i am not be able to go the database administration when i click on the database administration it is redirecting to the site view and i also copied the my application which

[web2py] Re: New web2py stable 1.99.5 creating problems and breaking the backward compatibility

2012-03-01 Thread Prakhar Srivastava
Ya sanjeet i agree with you the same problem i face founder's do something because we have to start a new application on web2py On Mar 2, 11:19 am, Sanjeet Kumar wrote: > i am very excited to use the new version of web2py 1.99.5 . when i > downloaded it and use than i face the to many problems i

[web2py] New web2py stable 1.99.5 creating problems and breaking the backward compatibility

2012-03-01 Thread Sanjeet Kumar
i am very excited to use the new version of web2py 1.99.5 . when i downloaded it and use than i face the to many problems i am not be able to go the database administration when i click on the database administration it is redirecting to the site view and i also copied the my application which

[web2py] Re: Signature apps

2012-03-01 Thread Julio F. Schwarzbeck
http://www.i-track.org [Issue Tracking System] Cheers, Julio On Sunday, September 25, 2011 11:24:12 PM UTC-7, Massimo Di Pierro wrote: > > I have not tested them and I am sure I am missing something important > so please add below (do not comment, just add to the list) > > Layouts and Plugin La

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread drelyn86
Cross-posting from the pre-release thread... I was able to trace the appadmin issue back to gluon/storage.py This patch should do the trick: http://pastebin.com/8ktgy5eU On Thursday, March 1, 2012 9:18:44 PM UTC-5, pbreit wrote: > > I'm seeing the same problem. /appadmin is redirecting back to /

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread Joel Kim
Same here. Is it a bug? On Friday, March 2, 2012 10:49:57 AM UTC+9, tomt wrote: > > Hi, > > I just installed 1.99.5. Clicking on the database administration > button doesn't bring up the usual database administration form. > Instead it brings up http://127.0.0.1:8000/admin/default/site. (The

[web2py] Re: Using SQLFORM.grid()

2012-03-01 Thread Anthony
> > grid = SQLFORM.grid(db.document.page_id==page.id, args=[page.id]) > > It seems to pass a boolean value (db.document.page_id==page.id) db.document.page_id==page.id is not a boolean -- it is a DAL Query object. db.document.page_id is a DAL Field object, which inherits from the DAL Expressio

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread pbreit
I'm seeing the same problem. /appadmin is redirecting back to /admin/site Another hard-to-reproduce issue that I've seen a couple times is when a first arrive at /admin/site the page disappears to white after a second or two. I've noticed in the past that this page sometime does an odd refresh

[web2py] Re: web2py and self-signed SSL certificates

2012-03-01 Thread Anthony
There are scripts for setting up web2py on Ubuntu with Apache (http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh) and Nginx/uwsgi (http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh), both of which include commands for creating a

[web2py] Using SQLFORM.grid()

2012-03-01 Thread davidkw
Hi, I'm a little confused about this line of code in the book that uses SQLFORM.grid(). grid = SQLFORM.grid(db.document.page_id==page.id, args=[page.id]) It seems to pass a boolean value (db.document.page_id==page.id) and a list (args = [page.id]) to grid. What arguments of grid do these passed v

[web2py] Re: web2py 1.99.5 is OUT

2012-03-01 Thread tomt
Hi, I just installed 1.99.5. Clicking on the database administration button doesn't bring up the usual database administration form. Instead it brings up http://127.0.0.1:8000/admin/default/site. (The link value for the button is http://127.0.0.1:8000/app1/appadmin/index) On Mar 1, 5:28 pm, Mas

[web2py] web2py and self-signed SSL certificates

2012-03-01 Thread David Phillips
I freely admit that I don't understand how https, SSL, and public key infrastructure works. It doesn't seem like it should be hard to use but whenever I try, things don't work. For instance, I wanted to access the admin interface for my web2py application on a remote host. My thought was that I do

[web2py] web2py and self-signed SSL certificates

2012-03-01 Thread David Phillips
I freely admit that I don't understand how https, SSL, and public key infrastructure works. It doesn't seem like it should be hard to use but whenever I try, things don't work. For instance, I wanted to access the admin interface for my web2py application on a remote host. My thought was that I do

[web2py] Re: Connecting to Mysql on MAMP?

2012-03-01 Thread pbreit
Wow, I figured out how to make it work. In DAL.py I added the unix_socket arg to the MySQLAdapter: driver_args.update(dict(db=db, user=credential_decoder(user), passwd=credential_decoder(password),

[web2py] Re: got "invalid view (default/hello.html)" if I access the URL from another machine

2012-03-01 Thread Anthony
I assume you don't have an actual /views/default/hello.html view defined in your app. In that case, web2py will fall back to the /views/generic.html view. However, by default, generic views are disabled (due to a security risk). In the "welcome" app, the /models/db.py model file enables all gen

[web2py] got "invalid view (default/hello.html)" if I access the URL from another machine

2012-03-01 Thread Wei Li
Hi, I just setup a web2py application. Everything is ok except one thing: if I access the URL from another machine which is not the web2py server is running, then the function I wrote in controllers/default.py won't be converted to a view. It gives an errro about "invalide view". Here is the e

Re: [web2py] web2py 1.99.5 is OUT

2012-03-01 Thread Massimo Di Pierro
Most of them should be self explanatory from the changelog. Some point you to files. Look inside, they usually contain an example. A few are not documented in any way so feel free to ask here for explanation ... until they will make it into the book. Massimo

Re: [web2py] Re: web2py 1.99.5 (please read)

2012-03-01 Thread drelyn86
I was able to trace the appadmin issue back to gluon/storage.py This patch should do the trick: http://pastebin.com/8ktgy5eU On Wednesday, February 29, 2012 6:26:54 PM UTC-5, mcm wrote: > > I am not able to access to appadmin when I click the button "database > administration" of any applicati

Re: [web2py] web2py 1.99.5 is OUT

2012-03-01 Thread Vinicius Assef
Where are these improvements and new features documented? On Thu, Mar 1, 2012 at 6:32 PM, Massimo Di Pierro wrote: > Many changes and improvements. Please check it asap and report your findings > here. > > Attention: We slightly changed the behavior of auth.archive because version > 1.99.* beha

Re: [web2py] web2py 1.99.5 is OUT

2012-03-01 Thread Albert Abril
Proud of all of web2py communitty. Thanks all of you. 2012/3/1 Massimo Di Pierro > Many changes and improvements. Please check it asap and report your > findings here. > > Attention: We slightly changed the behavior of auth.archive because > version 1.99.* behaved differently than documented. If

[web2py] web2py 1.99.5 is OUT

2012-03-01 Thread Massimo Di Pierro
Many changes and improvements. Please check it asap and report your findings here. Attention: We slightly changed the behavior of auth.archive because version 1.99.* behaved differently than documented. If you are using auth.archive make sure to test your code. ## 1.99.5 - admin in Russian (Bu

[web2py] Re: web2py Leaflet.js and firefox won't render map tiles

2012-03-01 Thread ender
Thanks for your help anthony, I went back over what I was linking and bootstrap , a set of interface components from the designers of twitter, was interfering with leaflet. specifically the css styles. On Wednesday, February 29, 2012 9:40:19 PM UTC-5, Antho

[web2py] Re: Connecting to Mysql on MAMP?

2012-03-01 Thread Niphlod
no ideas, if MAMP allows only connections through socket files, I don't think that DAL could ever connect to that database only hostname:port "format" is allowed. Il giorno giovedì 1 marzo 2012 15:31:21 UTC+1, pbreit ha scritto: > > Any ideas?

[web2py] Re: web2py 1.99.5 (please read)

2012-03-01 Thread Niphlod
Just confirming that my app works flawlessly in current trunk (this "test" assures no breaks in backward compatibility, at least for the parts of code that I use, that are several.)

[web2py] Re: Workflow engine for web2py

2012-03-01 Thread yamandu
Just one resource I found interesting: http://workflowpatterns.com/ Em terça-feira, 7 de fevereiro de 2012 23h58min19s UTC-2, mart escreveu: > > Something to think about if effort is put on this (just a suggestion). > You may want to consider the importance of 'roles' in an implemented > wf engi

[web2py] Re: Add verify email field to auth register form

2012-03-01 Thread Anthony
Maybe look at how Auth.register does it for the password field: http://code.google.com/p/web2py/source/browse/gluon/tools.py#1905. In your user function, you might do something like: def user(): if request.args(0) == 'register': form = auth.register(onvalidation=verify_email)

[web2py] Re: web2py resources

2012-03-01 Thread Wikus van de Merwe
Except of websites with very small user base, the use of sqlite is not recommended as it doesn't provide concurrent writes. Mysql or postgresql is usually a good first choice, but web2py supports about 10 different DBs, so you can choose something else too. The application code (including instan

[web2py] Validating data in a CRUD form before entering into the databse

2012-03-01 Thread Larry Wapnitsky
(please let me know if I need to clarify) I have a form that I'm creating where a user can enter one line of data, multiple lines of data (each line being a different entry), and/or ranges of numbers. I need the application to do the following before entering the data in the database: - V

[web2py] Add verify email field to auth register form

2012-03-01 Thread greenguerilla
Hi guys, I'm wondering if anyone knows of a good way to add a 'verify email' field to auth's register form? I basically want to replicate the verify password functionality for the email field but I notice that this is done inside the auth.register method after the creation of the SQLFORM: if

[web2py] smartgrid + oncreate not working

2012-03-01 Thread Tito Garrido
Hi Folks, I am trying to execute the function adicionar_estoque after I create a new "entrada_produto" entry... am I doing anything wrong? Nothing is happening even when I put a non existent function on the oncreate statement. I am using web2py stable. def adicionar_estoque(form): print 'exe

[web2py] Re: web2py 1.99.5 (please read)

2012-03-01 Thread Alan Etkin
> Please send me the change. welcome.w2p should be rebuilt automatically from > the app. The compileapp.py new modification is attached in this message. Thank You compileapp.py.diff Description: Binary data

Re: [web2py] compute on update

2012-03-01 Thread Massimo Di Pierro
I am pretty sure this works: Field('html', compute = lambda row: MARKMIN(row.markmin).xml()). I cannot reproduce the problem you refer mention. On Monday, 27 February 2012 04:10:23 UTC-6, Mirek Zvolský wrote: > > I think the behaviour of "compute=" is not good. Most people need >> calculated f

[web2py] Re: Web2py wiki registration broken, and other bugs

2012-03-01 Thread Anthony
> > 3. SQLFORM.grid contains a built-in search field, which is useful. > However, it uses a form with method type GET. Normally this isn't a > problem, but if the form is being displayed by a controller function that > is decorated by @auth.requires_signature(), the search field dumps the us

[web2py] Re: Obtaining URL to image blob in GAE

2012-03-01 Thread howesc
my blobstore_image model: db.define_table('blobstore_image', db.version_info, Field('blob_key', 'upload', notnull=True, requires=IS_LENGTH(1048576), represent=lambda image : A('download', _href=URL( r=request, c='gae_blobstore', f='d

Re: [web2py] compute on update

2012-03-01 Thread Massimo Di Pierro
yes On Wednesday, 28 December 2011 15:50:58 UTC-6, Richard wrote: > > Hello, > > I would like to compute a field on update, but I think all the > request.vars needed to my lambda compute function are not passed to > form.vars... > > What I should do to make sure all the needed vars are available

[web2py] Re: Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Cliff
Thank you. On Mar 1, 12:09 pm, Massimo Di Pierro wrote: > These two statements are incompatible: > > Field('status', 'list:string'), > > db.buckslips.status.requires = IS_IN_SET(, multiple=False) > > If status is a list of strings you must allow multiple elements in the > list. So: > > F

[web2py] Re: Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Massimo Di Pierro
These two statements are incompatible: Field('status', 'list:string'), db.buckslips.status.requires = IS_IN_SET(, multiple=False) If status is a list of strings you must allow multiple elements in the list. So: Field('status', 'string'), db.buckslips.status.requires = IS_IN_SET(

[web2py] web2py resources

2012-03-01 Thread netcode
Hello all, i think we need more web2py resources. am new to web2py but i find it hard to get a loaded and comprehensive video to help in building apps. Also, i find it difficult to get a good CMS written in web2py. Luckily, i found one i could use for my blog and its called InstantPress. Its cool a

[web2py] Re: Possible bug with a referenced field?

2012-03-01 Thread Massimo Di Pierro
Thanks for reporting this. The problem for IS_IN_DB(..) is now fixed in trunk. The problem may still be there for queries like db().select(). That needs testing. On Thursday, 1 March 2012 10:05:18 UTC-6, tsvim wrote: > > This issue seems to be related to the one that was mentioned sone time

[web2py] Re: Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Cliff
Massimo, Thank you. As always, if I'm doing something wrong I would be delighted to know it. >From the limited checking I have been able to do, I think the problem is in the SELECT helper, not in the validator. Anyway, here's the code. ## model db.define_table('buckslip_types',     Field('name

[web2py] Re: Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Massimo Di Pierro
Can you provide an example of IS_IN_SET not working so we can fix it? By the way, there was a change in IS_IN_SET in trunk and that may have fixed your problem. On Thursday, 1 March 2012 09:05:51 UTC-6, Cliff wrote: > > Running 1.99.4 > > I have not been able to get the IS_IN_SET validator to w

[web2py] Re: Possible bug with a referenced field?

2012-03-01 Thread tsvim
This issue seems to be related to the one that was mentioned sone time ago about multi-tenancy and validators. I think IS IN DB should deal with this. So unless you specify the request tenant field IS IN DB should only relate to the specific tenant. I'll build a patch accordingly. Please notify

[web2py] Re: Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Cliff
Agreed. Had I the time... On Mar 1, 10:18 am, Bruce Wade wrote: > It probably would be more beneficial to look at the validators.py > class IS_IN_SET(Validator): > > add print statements to see why it isn't working. > > > > > > > > > > On Thu, Mar 1, 2012 at 7:05 AM, Cliff wrote: > > Running 1.

[web2py] Examples for SQLFORM.grid oncreate, onupdate, ondelete

2012-03-01 Thread Tito Garrido
Hey Folks, I have been reading the grid and smartgrid section of the book and I am missing some examples on each parameter... Does anybody has examples of oncreate, onupdate and ondelete? Thanks! Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:_

Re: [web2py] Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Bruce Wade
It probably would be more beneficial to look at the validators.py class IS_IN_SET(Validator): add print statements to see why it isn't working. On Thu, Mar 1, 2012 at 7:05 AM, Cliff wrote: > Running 1.99.4 > > I have not been able to get the IS_IN_SET validator to work properly. > I don't know

Re: [web2py] Re: Web2py and SSLH

2012-03-01 Thread Michele Comitini
I should read the docs... I know... but the quick question is why all connection appear from localhost? With proper ip header rewriting rules that should not happen. mic Il 01 marzo 2012 04:49, drelyn86 ha scritto: > It just forwards the connection like a reverse proxy, so no MITM is caused. > W

[web2py] Frustrations with IS_IN_SET and alternative widget implementation

2012-03-01 Thread Cliff
Running 1.99.4 I have not been able to get the IS_IN_SET validator to work properly. I don't know why this should be. When used with SQLFORM to edit a record, the select field refuses to show the current value of the field. Instead it shows the first value in the list or the zero value for the f

[web2py] Re: web2py 1.99.5 (please read)

2012-03-01 Thread Massimo Di Pierro
Please send me the change. welcome.w2p should be rebuilt automatically from the app. On Wednesday, 29 February 2012 06:03:23 UTC-6, Alan Etkin wrote: > > Massimo: > > I've found that the timing changes to the LOAD() helper have learnt > the first lesson of not being seen. The problem is that th

Re: [web2py] Re: oauth 2.0 and facebook "expires" parameter

2012-03-01 Thread Michele Comitini
Il 01 marzo 2012 11:23, Can Candan ha scritto: > I think if the user grants offline_access permission to the facebook > app , facebook does not send the expires parameter after that. That could be a problem, anyway it should be easy to add a default expiration time. > > Is there an example for u

[web2py] Proposal for layout.html

2012-03-01 Thread Martin Weissenboeck
File layout.html, line 89: Proposal: replace * *{{=response.title or request.application}} with {{=T(response.title or request.application)}} Regards, Martin

[web2py] Re: Web2py wiki registration broken, and other bugs

2012-03-01 Thread Anthony
> > I tried registering with the wiki in order to post some bugs I'd found, > but the password field refused to validate, claiming my password was simply > 'invalid'. I guess I'll just post my list of bugs here. What "wiki" are you talking about? > > 1. When a database field requires an I

[web2py] Connecting to Mysql on MAMP?

2012-03-01 Thread pbreit
Any ideas?

Re: [web2py] Re: Inheritance and composition of views

2012-03-01 Thread Bruce Wade
Nice I never tried that, that will be very helpful on some tasks. On Thu, Mar 1, 2012 at 12:06 AM, Pedro Pereira wrote: > Hi Bruno, it sure definitely helps...thanks a lot!! > > > On Thu, Mar 1, 2012 at 01:55, Bruno Rocha wrote: > >> Dont know if it helps, but note that you can enclose HTML as a

[web2py] login and captcha

2012-03-01 Thread Martin Weissenboeck
Hi, I want to do the following. - login using auth.login - if login fails captcha should be switched on and every further login (in the same session) should require a correct captcha. I have tried something like def mylogin(): session.logincount = (session.logincount or 0) + 1 form=auth.

Re: [web2py] db.Table in appadmin when used in a module

2012-03-01 Thread Bruce Wade
Ummm where are you creating your object? In db.py? Or only in actions that require it? If only in actions that require it you will also need to import it and create an instance in the appadmin file. On Wed, Feb 29, 2012 at 10:56 PM, Johann Spies wrote: > On 1 March 2012 08:26, Bruce Wade wrote:

Re: [web2py] Python Code in DB

2012-03-01 Thread Bruno Rocha
you can read the field and pass it as an arg to template.render. it will act like a view file. from gluon.template import render row = db.mytable[id] template = row.template return render(template, dict(form=form, x=y)) http://zerp.ly/rochacbruno Em 01/03/2012 08:57, "Hassan Alnatour" escreveu:

[web2py] Re: Web2py wiki registration broken, and other bugs

2012-03-01 Thread LightDot
Which wiki did you try to register for? The web2py bug tracker can be found here: http://code.google.com/p/web2py/issues/list On Thursday, March 1, 2012 7:52:15 AM UTC+1, Serpent_Guard wrote: > > I tried registering with the wiki in order to post some bugs I'd found, > but the password field

[web2py] Re: Deleting upload files -- possible bug? [closed]

2012-03-01 Thread weheh
Oh, you're going to love this! It's not a bug in web2py (as I suspected). But it's also not a bug in my code. It's a bug in Windows 7! The problem is that Windows Explorer (the file browser) is not refreshing consistently, depending on which folder view you're using. I was using the tiles view to

[web2py] Python Code in DB

2012-03-01 Thread Hassan Alnatour
Dear ALL, am trying to have all my code in the datebase in a table called Pages , So i can edit my site when its online from the CMS , not when i use HTML code from the database i render it with XML(db.pages.Code) but when i has any web2py or python code it dosent work ... EX. how can i make

[web2py] Re: oauth 2.0 and facebook "expires" parameter

2012-03-01 Thread Can Candan
I think if the user grants offline_access permission to the facebook app , facebook does not send the expires parameter after that. Is there an example for using multiple authentication schemes in addition to web2py's? I have found this one below, do you think its in good shape? http://code.googl

[web2py] Web2py wiki registration broken, and other bugs

2012-03-01 Thread Serpent_Guard
I tried registering with the wiki in order to post some bugs I'd found, but the password field refused to validate, claiming my password was simply 'invalid'. I guess I'll just post my list of bugs here. 1. When a database field requires an IS_IN_SET() validator, you'd expect it to show up as

Re: [web2py] Re: cron setup

2012-03-01 Thread Luciano Pacheco
Sorry, now I have no idea about the error, since I'm still very new to web2py. :-) Anyone know about this error? On Thu, Mar 1, 2012 at 2:16 PM, Sanjeet Kumar wrote: > Luciano i removed the one * before the applications and tryed than i got > the following error :- > > > OperationalError: unab

Re: [web2py] Re: Inheritance and composition of views

2012-03-01 Thread Pedro Pereira
Hi Bruno, it sure definitely helps...thanks a lot!! On Thu, Mar 1, 2012 at 01:55, Bruno Rocha wrote: > Dont know if it helps, but note that you can enclose HTML as a function. > > views/my_html_functions.html >> >> {{def my_html_block(args):}} >>{{if args.:}} >> >>{{pass}} >>