Re: [web2py] Update query failing on GAE

2012-03-07 Thread howesc
an update() that updates 0 records is not considered a failure so there will be no logs about it. On Wednesday, March 7, 2012 4:41:14 AM UTC-8, Sushant Taneja wrote: > > The update() returns 0. I am now taking care of it. > But I still don't see any error logs corresponding to the updates etc. >

[web2py] Re: Using Blobstore API

2012-03-07 Thread howesc
looking at my code that i shared in your other thread, it seems that you are missing the redirect to signal to GAE that your handler did what it needed to do and GAE should commit the blob to the blobstore. i assume my comment here was important to me when i set this up: #Raise the HTTP except

[web2py] Re: twitter Bootstrap + web2py Poll

2012-03-07 Thread pbreit
I think it's not a bad idea. Bootstrap is getting so much attention right now that there's already a backlash. Because of that, I might suggest a slight design change...perhaps Bootswatch Journal: http://bootswatch.com/journal/

[web2py] Re: appadmin ticket

2012-03-07 Thread pbreit
We might need to see the code in your model file that sets up Auth().

[web2py] {{=_name.replace('_',' ')}}

2012-03-07 Thread Annet
In a view I have th following code to generate a vertical menu: {{for _name,_active,_link in response.admin_menu:}} {{=_name.replace('_',' ')}} {{pass}} Some of the menu items contain a _ which in the menu I would like to replace with a space. I tried: {{=_name.replace('_',' ')}} ...

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

2012-03-07 Thread howesc
upload_image() is the originator of the request, and also the upload handler. it gets a URL from google that redirects to itself after image upload. blob_info = blobstore.parse_blob_info(request.vars.blob_key) gets the blob key from request.vars (where google puts it when calling the upload

[web2py] Re: SQLFORM and scientific notation support.

2012-03-07 Thread Kimmo
Followed Anthony's idea and now everything works! Thanks to everybody who helped with this and specially Anthony for the final advice. - Kimmo On Mar 7, 5:05 pm, Anthony wrote: > Maybe you could monkey patch SQLFORM: > > SQLFORM.widgets.double = my_double_widget > > Technically, that won't

Re: [web2py] Cannot send email using IMAP server.

2012-03-07 Thread Bruno Rocha
The Mail class works with SMTP and Google App Engine. AFAIK you cannot send emails with IMAP, you can actually append messages to IMAP 'outbox' or 'sent' folder and wait for the IMAP server synchronization, it is not trivial to send messages with it, most IMAP mail servers offer an SMTP to send em

[web2py] Re: how to access auth.is_logged_in() from modules?

2012-03-07 Thread weheh
I have a lot of tables. I split them up among multiple model files to help with organization. My app is highly dynamic and data are changing in all the tables constantly. If I understand it correctly, putting the tables in modules and setting track_changes(False) would mean the tables would only be

[web2py] Re: appadmin ticket

2012-03-07 Thread weheh
Yes. auth is being created in models immediately after creating instance of DAL. On Mar 8, 11:02 am, Bruno Rocha wrote: > where are you creating the instance of auth? in models? > > > > > > > > > > On Wed, Mar 7, 2012 at 11:46 PM, weheh wrote: > > Getting the following ticket for appadmin when I

[web2py] Cannot send email using IMAP server.

2012-03-07 Thread Aris Green
I am using mail.send and I get messages like the follow: WARNING:web2py:Mail.send failure:(-1, 'IMAP4rev1 SmarterMail'). Can I use web2py tools.mail to send messages or do I need another Python library to send the mail. The settins are similar to this: mail.settings.server = 'mail.foo.com:143

[web2py] Re: Boolean database (Postgresql)

2012-03-07 Thread Massimo Di Pierro
Anyway... I see that for legacy databases we may want an option to change the default behavior. Please open a ticket about this. On Wednesday, 7 March 2012 21:50:56 UTC-6, Massimo Di Pierro wrote: > > Because not all databases have a boolean type and I wanted to implement it > in the same way. E

[web2py] Re: Boolean database (Postgresql)

2012-03-07 Thread Massimo Di Pierro
Because not all databases have a boolean type and I wanted to implement it in the same way. Even those that do have boolean MSSQL they deal with it an odd way and do not allow None in it. I do not like that behavior. On Wednesday, 7 March 2012 18:06:52 UTC-6, Detectedstealth wrote: > > Hi, > > I

Re: [web2py] appadmin ticket

2012-03-07 Thread Bruno Rocha
where are you creating the instance of auth? in models? On Wed, Mar 7, 2012 at 11:46 PM, weheh wrote: > Getting the following ticket for appadmin when I try to access one of > my db tables via the web2py IDE: > > 'auth' > VERSION > web2py™ (1, 99, 4, datetime.datetime(2011, 12, 14, 14, 46, 14)

Re: [web2py] Re: how to access auth.is_logged_in() from modules?

2012-03-07 Thread Bruno Rocha
On Wed, Mar 7, 2012 at 11:20 PM, weheh wrote: > should one be inclined to leave db table > definitions in models, or move those to modules as well? > it depends on how much tables do you have in models. It is only done to avoid all the tables to be defined even when they are not needed, if you

[web2py] appadmin ticket

2012-03-07 Thread weheh
Getting the following ticket for appadmin when I try to access one of my db tables via the web2py IDE: 'auth' VERSION web2py™ (1, 99, 4, datetime.datetime(2011, 12, 14, 14, 46, 14), 'stable') Python Python 2.5.4: c:\Program Files (x86)\Python25\python.exe TRACEBACK Traceback (most recent call l

[web2py] Re: how to access auth.is_logged_in() from modules?

2012-03-07 Thread weheh
Anthony, I understand. I guess the problem is that I am still familiarizing myself with the "current" object, which I hadn't used before. Now that I'm moving stuff into modules, I see that I will need to use it more and more. Still on thread but a little wider in scope, on the subject of moving mo

[web2py] Boolean database (Postgresql)

2012-03-07 Thread Bruce Wade
Hi, I am curious as to why the database saves a boolean type as a char(1) in the database (postgresql)? -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com

[web2py] How to display reference field in sqltable?

2012-03-07 Thread Edward Shave
*I have the following table definition...* * * *db.define_table('account', * *Field('name'),* *Field('transfer_acc','reference account'), * *)* * db.account.name.requires = IS_NOT_EMPTY() * * db.account.transfer_acc.requires = IS_IN_DB(db,db.account.id,'%(name)s') ...Note the table con

[web2py] Re: get the dynamically value from the list and send the mail by using the cron job

2012-03-07 Thread Sean Kim
Not really sure what you're saying, but I assume that basically you want to email the company with due date that matches current date. Wouldn't this work? currentdate = datetime.date.today() for row in db(db.company.due_date==currentdate).select(): mail.send(to=[row.cowner_id],

[web2py] Career Advice - off topic

2012-03-07 Thread Bill Thayer
Hello everyone. I met some of you at the meetup at Taco Cabana. My wife & I are completing an SQA class this weekend. My wife is looking to change careers but we took the class together. We apreciate any experience you might have in dealing with SQAs on a project. Our instructor has given a sample

[web2py] Re: Migration on Datastore

2012-03-07 Thread Massimo Di Pierro
can you try Field('description', 'text', length = 2048), On Wednesday, 7 March 2012 15:48:51 UTC-6, David Phillips wrote: > > I have an App Engine web app in production. I defined a field in a > database table as a string with no length. > > Field('description'), > > Now I find that th

[web2py] Re: get the dynamically value from the list and send the mail by using the cron job

2012-03-07 Thread Alan Etkin
If you want to avoid redundant mails, you can set a sequence of sent id's and compare them at every loop iteration for message to send: if not (the message was sent): send the email Also, you should store email sent info between actions/task instances to be able to query the sent list

[web2py] Migration on Datastore

2012-03-07 Thread David Phillips
I have an App Engine web app in production. I defined a field in a database table as a string with no length. Field('description'), Now I find that the field needs to handle 2,000 characters. That means that the field needs to be changed in the Datastore entity from a ByteString type to a

Re: [web2py] Re: accessing to static folder via .load is broken

2012-03-07 Thread Bruno Rocha
I always use extension=False to solve this. http://zerp.ly/rochacbruno Em 07/03/2012 18:19, "Massimo Di Pierro" escreveu: > I do not think this ever worked correctly. Please open a ticket and I will > fix it asap. > > On Wednesday, 7 March 2012 14:57:44 UTC-6, smoggy wrote: >> >> Hello all, >> >

[web2py] Re: accessing to static folder via .load is broken

2012-03-07 Thread Massimo Di Pierro
I do not think this ever worked correctly. Please open a ticket and I will fix it asap. On Wednesday, 7 March 2012 14:57:44 UTC-6, smoggy wrote: > > Hello all, > > So i was trying my local site and i saw some broken images that are loaded > via the following code > width="296" height="400" /> >

[web2py] Re: accessing to static folder via .load is broken

2012-03-07 Thread Anthony
I think the problem is this patch: http://code.google.com/p/web2py/source/detail?r=6567d43d2ef73aae6ebabb120a3b916c048cabf2. We'll have to think about a fix. Anthony On Wednesday, March 7, 2012 3:57:44 PM UTC-5, smoggy wrote: > > Hello all, > > So i was trying my local site and i saw some bro

[web2py] Re: admin mobile style by default with hg Version 1.99.7 dev

2012-03-07 Thread Massimo Di Pierro
sorry my bad. I disabled the admin mobile detection to make some screenshot of the mobile admin and I forgot to revert the change. Fixing it now. On Wednesday, 7 March 2012 14:52:28 UTC-6, Alan Etkin wrote: > > Hi. I pulled the last hg version from mercurial to my pc and the admin > app start pa

[web2py] accessing to static folder via .load is broken

2012-03-07 Thread smogzer
Hello all, So i was trying my local site and i saw some broken images that are loaded via the following code This is inside a .load file that loads inside a DIV. and produces the following URL which does not exist: http://192.168.0.106/init/static/images.load/product.png The .load suffix should

[web2py] response.menu with bootstrap dropdown menu

2012-03-07 Thread Paolo
Hi all, I have a simple problem that I haven't solved yet. Using the twitter bootstrap theme I am not able to create a dropdown menu playing with the MENU helper. According to [1], an anchor to create the dropdown menu needs the attributed data-toggle equal to "dropdown"; the problem is that I

[web2py] admin mobile style by default with hg Version 1.99.7 dev

2012-03-07 Thread Alan Etkin
Hi. I pulled the last hg version from mercurial to my pc and the admin app start page shows the mobile mode. Am I missing some app configuration? How do I change to the normal style? Thanks

Re: [web2py] web2py instance accessible only from localhost

2012-03-07 Thread Richard Vézina
Using 0.0.0.0 I can also access the admin login page but still can't logon. Pretty strange... Is web2py enforce some sort of encryption for password I gave for that instance?? Richard On Wed, Mar 7, 2012 at 3:37 PM, Richard Vézina wrote: > Not working, with 0.0.0.0. I can access the other machi

Re: [web2py] web2py instance accessible only from localhost

2012-03-07 Thread Richard Vézina
Not working, with 0.0.0.0. I can access the other machine and in the book it uses the 127.0.0.1 Richard On Wed, Mar 7, 2012 at 3:22 PM, Ross Peoples wrote: > The -i argument should be 0.0.0.0 instead of 127.0.0.1 if you want other > machines on the network to access the web2py instance. > > > O

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

2012-03-07 Thread Sushant Taneja
As available in the google documentation, we need a UploadHandler ? How it is achieved in the above code ? On Thursday, March 8, 2012 1:38:04 AM UTC+5:30, Sushant Taneja wrote: > > Hi, > > Can you explain some of the code like how and in which variable the > blob_key is saved after the image suc

Re: [web2py] web2py instance accessible only from localhost

2012-03-07 Thread Ross Peoples
The -i argument should be 0.0.0.0 instead of 127.0.0.1 if you want other machines on the network to access the web2py instance. On Wednesday, March 7, 2012 3:07:20 PM UTC-5, Richard wrote: > > Hello, > > I am pretty mistify by that issue. My ssh port forwarding is running just > fine, I can star

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

2012-03-07 Thread Sushant Taneja
Hi, Can you explain some of the code like how and in which variable the blob_key is saved after the image successfully uploaded in the blobstore ? On Thursday, March 1, 2012 10:53:30 PM UTC+5:30, howesc wrote: > > my blobstore_image model: > > db.define_table('blobstore_image', >

[web2py] web2py instance accessible only from localhost

2012-03-07 Thread Richard
Hello, I am pretty mistify by that issue. My ssh port forwarding is running just fine, I can start second web2py instance under 8002 port like this : sudo nohup python web2py.py --nogui -p 8002 -i 127.0.0.1 -a 'PWD' & It just work. But when I transfert this command into an init daemon, my file

[web2py] Re: Help with Cherokee, uwsgi in application with many uploads

2012-03-07 Thread Jose
Also tried it with Nginx and uwsgi, with the same result Jose

[web2py] Re: The Winners! Web2py Application Exhibition Version 3.0

2012-03-07 Thread Massimo Di Pierro
> > Congratulations. Excellent work! And Thanks to Mr. Admin for organizing > the competition.

[web2py] Help with Cherokee, uwsgi in application with many uploads

2012-03-07 Thread Jose
Hello I have an application in which you upload and download many documents (pdf). The files are generally small (~ 150KB). Both uploads and downloads take a long time 30-40 seconds or more. Often ends in a time-out (currently 120 seconds) The application is hosted in a "home server" using a n

Re: [web2py] The Winners! Web2py Application Exhibition Version 3.0

2012-03-07 Thread Richard Vézina
Nice work! Richard On Wed, Mar 7, 2012 at 2:22 PM, Martín Mulone wrote: > Congrats to the winners! > > > 2012/3/7 NetAdmin > >> >> 1st Place Prize $100 >> >> Brian Cottingham from the U.S. was the First Place Winner. >> His entry of MobleBlur is a mobile-friendly interface >> to the Newsbl

Re: [web2py] The Winners! Web2py Application Exhibition Version 3.0

2012-03-07 Thread Martín Mulone
Congrats to the winners! 2012/3/7 NetAdmin > > 1st Place Prize $100 > > Brian Cottingham from the U.S. was the First Place Winner. > His entry of MobleBlur is a mobile-friendly interface > to the Newsblur RSS reading website. > > A working demo can be viewed at http://mobileblur.spiffyte.ch

Re: [web2py] MongoDB table definitions

2012-03-07 Thread rdodev
Bruno, Yes, it would seem that the only two options right now would be to implement a document type (which I'm not sure how time consuming that would be), or normalize that table and extract that dictionary/document into its own table -- which could be annoying since I have several tables like

Re: [web2py] MongoDB table definitions

2012-03-07 Thread Bruno Rocha
This is the Mongo Adapter types definition, I see no type 'dict' maybe it needs a new type "document'. class MongoDBAdapter(NoSQLAdapter): uploads_in_blob = True types = { 'boolean': bool, 'string': str, 'text': str, 'passwor

[web2py] Re: mongodb adapter not working

2012-03-07 Thread rdodev
Problem solved. I was using binary distro that doesn't look for installed python modules. Running form source solves the problem. On Wednesday, March 7, 2012 10:25:35 AM UTC-5, rdodev wrote: > > I'm running the nightly build of web2py, python 2.7, have pymongo > installed and mongodb is running.

[web2py] MongoDB table definitions

2012-03-07 Thread rdodev
Folks, I'm trying to define a mongo table in db.py that looks something like this: { field1 : "super", field2 : "super", things = { this : "stuff", that = "stuff" }, field3 : "Give me a call" } defining fields1-3 is easy, but what's the syntax to build 'things' which itself is a diction

[web2py] The Winners! Web2py Application Exhibition Version 3.0

2012-03-07 Thread NetAdmin
1st Place Prize $100 Brian Cottingham from the U.S. was the First Place Winner. His entry of MobleBlur is a mobile-friendly interface to the Newsblur RSS reading website. A working demo can be viewed at http://mobileblur.spiffyte.ch https://github.com/spiffytech/MobileBlur/tarball/master

Re: [web2py] Re: Sporadic ImportError with custom module

2012-03-07 Thread spiffytech
> > "spiffytech", how is your process/threads apache and wsgi conf? > My apache configuration is pretty straightforward: WSGIScriptAlias / "/home/spiffytech/apache/mobileblur.spiffyte.ch/docroot/wsgihandler.py" I'm using the stock web2py wsgihandler.py. And I'm using the prefork MPM: Star

Re: [web2py] github: mdipierro->web2py

2012-03-07 Thread Alvaro Lizama Molina
we started using tags and branches in github? is mor easy send patches with pull request. 2012/3/7 Massimo Di Pierro > > I have moved the official repo from > > https://github.com/mdipierro/web2py > > to > > https://github.com/web2py/web2py > > > For now I will keep both of them in sync, in cas

[web2py] Re: 1.99.7 update_record problem

2012-03-07 Thread peter
Sorry, my mistake. I had added a compute and had misremembered the lambda for computes. I thought they were like lambda's for represent taking two parameters, but the lambda for compute has just one parameter the row. Thanks Peter On Mar 7, 3:31 pm, Massimo Di Pierro wrote: > I need to see you

[web2py] github: mdipierro->web2py

2012-03-07 Thread Massimo Di Pierro
I have moved the official repo from https://github.com/mdipierro/web2py to https://github.com/web2py/web2py For now I will keep both of them in sync, in case there is any problem.

[web2py] web2py and twisted

2012-03-07 Thread Larry Wapnitsky
doing some testing with twisted and web2py (proof of concept in between development swings), but can't get anyserver.py to run. I'm getting the following: root@python1:/var/www/web2py# python anyserver.py -s twisted -i 10.102.42.10 -p 8000 -l starting twisted on 10.102.42.10:8000... Traceback

Re: [web2py] my app not works with web2py 1.99.7

2012-03-07 Thread Richard Vézina
I use to download source package and make my update by my own (manually). I don't use the update feature. Here most of my db.py that contain db connection and all related auth configuration : db=DAL('postgres://USER:PASSWORD@127.0.0.1:5432/DATABASE', \ migrate_enabled=False) from gluon.tool

[web2py] Re: 1.99.7 update_record problem

2012-03-07 Thread Massimo Di Pierro
I need to see you model to understand the problem. On Wednesday, 7 March 2012 09:15:17 UTC-6, peter wrote: > > In 1.99.7 I get the following error when doing > > row.update_record(track_id=track.id) > > It was working with 1.99.5 > > Traceback (most recent call last): > File "C:\Users\Pe

[web2py] mongodb adapter not working

2012-03-07 Thread rdodev
I'm running the nightly build of web2py, python 2.7, have pymongo installed and mongodb is running. in db,py I tried DAL('mongodb://127.0.0.1:[port number]/[dbname]') and keeps bombing with error: "Uriparser for mongodb is not available" is there another dependency other than pymongo? Please ad

Re: [web2py] my app not works with web2py 1.99.7

2012-03-07 Thread pbreit
Are you able to upgrade to most recent version of Web2py? We might need to see more of your model code that specifies the DB and auth.

[web2py] my app not works with web2py 1.99.7

2012-03-07 Thread Richard
Hello, I post this issue on an other thread on the launch of 1.99.5 about that. If I just move my app from 1.99.4 to 1.99.5+ it does works when user try to logon, the login page show up but login process failed. I have no clue what for... Here traceback : 127.0.0.1.2012-03-07.10-02-42.5cfe96a6

[web2py] 1.99.7 update_record problem

2012-03-07 Thread peter
In 1.99.7 I get the following error when doing row.update_record(track_id=track.id) It was working with 1.99.5 Traceback (most recent call last): File "C:\Users\Peter\web2pyn\gluon\restricted.py", line 205, in restricted exec ccode in environment File "C:/Users/Peter/web2pyn/applicat

[web2py] Re: Get the Image from the database filtered on the email id

2012-03-07 Thread Anthony
URL('default', 'download', args=db(db.employee.email_id == some_id).select().first().image) This assumes you have the standard download() function in your default.py controller: def download(): return response.download(request, db) Anthony On Wednesday, March 7, 2012 3:20:39 AM UTC-5, San

[web2py] Re: SQLFORM and scientific notation support.

2012-03-07 Thread Anthony
Maybe you could monkey patch SQLFORM: SQLFORM.widgets.double = my_double_widget Technically, that won't change the "widget" attribute of the DAL Field, but it will cause SQLFORM to use your widget instead of the default DoubleWidget whenever it encounters a double field that doesn't have an ex

Re: [web2py] apache https only need help

2012-03-07 Thread Richard Vézina
I saw also that there is a new feature in web2py to do just that in models/db.py : ## if SSL/HTTPS is properly configured and you want all HTTP requests to ## be redirected to HTTPS, uncomment the line below: # request.requires_https() Richard On Tue, Mar 6, 2012 at 11:37 AM, Richard Vézina wro

Re: [web2py] orderby function

2012-03-07 Thread Richard Vézina
Not understand what is my_user... Did you affect db to my_user?? my_user = db? Richard On Wed, Mar 7, 2012 at 7:36 AM, greenguerilla wrote: > Hi, > > I have a table - called table - which keys into the auth_user table. This > means that I can execute the following code: > > my_user.table.count

[web2py] Re: Using Blobstore API

2012-03-07 Thread rif
I am working on the same thing but for sounds. I used the experimental file writing to blobstore liker this: def blobstore_upload(form): from google.appengine.api import files from google.appengine.ext import blobstore if request.env.web2py_runtime_gae and form.vars.file: # Cr

Re: [web2py] YASQ 2 (yet another smartgrid question)

2012-03-07 Thread Johann Spies
On 7 March 2012 15:59, Martin Weissenboeck wrote: > Hi, > I have a smartgrid-table with a lot of persons. Now I want to select some > persons with a checkbox and print the names, etc of these persons. > > I have tried: > > > Try def printit(ids): # do whatever is necessary to print the stuf

[web2py] YASQ 2 (yet another smartgrid question)

2012-03-07 Thread Martin Weissenboeck
Hi, I have a smartgrid-table with a lot of persons. Now I want to select some persons with a checkbox and print the names, etc of these persons. I have tried: def f1(): def select_for_print(row): return INPUT(_name="pr%d" % row.id, _type="checkbox", _value="pr

[web2py] Re: CRUD .represent question

2012-03-07 Thread Gian Luca Decurtins
Hi Yes you're right! But I had to remove the db.location.id.readable = False line. Else it doesn't work. Thank you for helping! -Luca. Am Mittwoch, 7. März 2012 12:18:41 UTC+1 schrieb Alan Etkin: > > row.id should contain the record id, shouldn't it? > > db.location.name.represent = lambda

[web2py] Re: web2py 1.99.7 is OUT

2012-03-07 Thread lyn2py
Massimo, I have the version from GIT [ http://github.com/mdipierro/web2py/ ] It says trunk on web2py site [ http://web2py.com/examples/default/download ] but when I start the server it says Version 1.99.7 (2012-03-04 16:03:35) stable In any case, when I go to the admin/site, check_version runs i

Re: [web2py] Update query failing on GAE

2012-03-07 Thread Sushant Taneja
The update() returns 0. I am now taking care of it. But I still don't see any error logs corresponding to the updates etc. May be the reason is eventual consistency. Thanks for the help On Wednesday, March 7, 2012 10:16:32 AM UTC+5:30, Sushant Taneja wrote: > > As per my understanding, update s

[web2py] orderby function

2012-03-07 Thread greenguerilla
Hi, I have a table - called table - which keys into the auth_user table. This means that I can execute the following code: my_user.table.count(), my_user.table.select() where my_user is a record of type db.auth_user. This is a really nice feature, I'm wondering if there is some way to use this

Re: [web2py] Re: SQLFORM and scientific notation support.

2012-03-07 Thread Manuele Pesenti
Il 07/03/2012 10:01, Kimmo ha scritto: I made a (ugly hack) custom widget for all the Fields that have double type. Now E notation and normal double values work perfectly (edit / save / viewing). How do i set this widget as a default widget for all the Fields that have double type in my model? I

Re: [web2py] Re: SQLFORM.smartgrid and auth_membership

2012-03-07 Thread Martin Weissenboeck
Hi Anthony, now I get the right rows. One problem solved, two other problems appeared. *1st step:* I will go back to the parent-children-example of the book. I substituted parent by auth_user: My model: db.define_table('child', Field('name'), Field('parent','reference auth_user'), )

[web2py] Re: CRUD .represent question

2012-03-07 Thread Alan Etkin
row.id should contain the record id, shouldn't it? db.location.name.represent = lambda name, row: \ A(name, _href=URL('update', args=row.id, user_signature=True)))

[web2py] Re: CRUD .represent question

2012-03-07 Thread Gian Luca Decurtins
Hi This is exactly the example from which I started. I've removed the request.args(0) part, because I do not need the generic controller as I already know which table I want to display. I want to change the representation of db.location.name: Display db.location.name, but use db.location.id for

[web2py] Re: CRUD .represent question

2012-03-07 Thread Alan Etkin
Look at this example (at the book's crud - methods): A('edit:',id,_href=URL(args=(request.args(0),id))) I think you need to pass a sequence to args (, ) for the required behavior. Not sure really, as I didn't use the example. On Mar 7, 7:15 am, Gian Luca Decurtins wrote: > Hi all > > I would li

[web2py] managing users role

2012-03-07 Thread Thierry Thierry
hi guys i am trying to create an application with 3 users namely administtrator, client and employee basically i would like to set those three group from appadmin and then assigned each user i create from the front end to a group so that and can manage the authorisation from different controll

[web2py] CRUD .represent question

2012-03-07 Thread Gian Luca Decurtins
Hi all I would like to use CRUD to display a list of locations. If I press on the location.name it should call the function update() passing location.id as parameter. I've taken the CRUD manage() example from the web2py book [1] and modified it to: @auth.requires_signature() def select():

[web2py] sqlform.grid search widget

2012-03-07 Thread peter
As I have commented before, sqlform.grid has a particular way of searching. Its combination of search and 'queries' is very powerful. However the search does not really work in the way a casual web user might expect. If entered - Bob Dylan - in the search box and clicked search, then one get 'inval

[web2py] Using Blobstore API

2012-03-07 Thread Sushant Taneja
Hi, I am trying to use the Google Blobstore API for uploading images. I also checked the link: http://www.web2pyslices.com/main/slices/take_slice/63 for the help but couldn't understand much. In my application's (uploadPic) default controller I have the code as follows: from google.appengine.

[web2py] Re: SQLFORM and scientific notation support.

2012-03-07 Thread Kimmo
I made a (ugly hack) custom widget for all the Fields that have double type. Now E notation and normal double values work perfectly (edit / save / viewing). How do i set this widget as a default widget for all the Fields that have double type in my model? I would rather like to avoid setting this

Re: [web2py] Winners! Web2py Application Exhibition Version 3.0

2012-03-07 Thread Phyo Arkar
Thank you very much for this Mr NetAdmin! This encouraging a lot for me to continue working on HersPOS and contributing towards Opensource and Web2py! How much is the reward? I would like to donate some of it to Massimo and web2py! I am not sure my paypal still works (account froze last time) i

[web2py] Re: Two gae questions

2012-03-07 Thread rif
Thank you for your answers. -rif miercuri, 7 martie 2012, 06:06:32 UTC+2, howesc a scris: > > 1. i think they just promoted it to be generally available in the last > couple of weeks. > 2. there is also the files API. check out the google docs for writing > directly to a blob. for end-user up

[web2py] Get the Image from the database filtered on the email id

2012-03-07 Thread Sanjeet Kumar
I have the following table :- db.define_table(('employee', Field('email_id', requires = IS_EMAIL()), Field('image', 'upload')) i want to show the image according to the filtration of email id. how it will be possible in web2py

[web2py] Get the image from database

2012-03-07 Thread Sanjeet Kumar
I have the following table :- d.define_table(('employee', )