[web2py] Re: Attaching files stored in blobstore in a mail

2012-02-23 Thread Saurabh S
I tried using GAE mail class directly and it worked without the need to use blobstore. I just passed the filename and stream.getvalue() in the attachment tuple and it worked. Thanks a lot everyone for your suggestions.

[web2py] Re: Attaching files stored in blobstore in a mail

2012-02-23 Thread Saurabh S
No, there is no stacktrace in the logs only the warning. Also I have tried passing the stream as payload but I get an error there as well. Its stacktrace is: File "/base/data/home/apps/s~app-id/1.357014326405166801/applications/ abc/controllers/xyz.py:download", line 384, in report_download Fil

[web2py] Re: Attaching files stored in blobstore in a mail

2012-02-22 Thread Saurabh S
On Feb 23, 11:57 am, Christian Foster Howes wrote: > do you have a full stack trace with that and a code sample?  I've never > tried to do this myself, but perhaps i can help debug. > > On 2/22/12 22:55 , Saurabh S wrote: > > > > > Yes  I m using GAE blobstore. I a

[web2py] Re: Attaching files stored in blobstore in a mail

2012-02-22 Thread Saurabh S
Yes I m using GAE blobstore. I am sending the blob reader as payload and a filename. I m getting this error: "'Int' object has no attribute lower". Can you please suggest what might be the reason behind it? On Feb 23, 1:03 am, howesc wrote: > by blobstore you mean you are running on GAE using t

[web2py] Re: Attaching files stored in blobstore in a mail

2012-02-22 Thread Saurabh S
data with it. > > Here is the API documentation for the Mail > feature:http://www.web2py.com/examples/static/epydoc/web2py.gluon.tools.Mail-... > > On Feb 22, 6:25 am, Saurabh S wrote: > > > > > I have a google app engine application developed using web2py > > fram

[web2py] Attaching files stored in blobstore in a mail

2012-02-22 Thread Saurabh S
I have a google app engine application developed using web2py framework. I have stored the files in blobstore and I am mailing the link to the user. Since I need to perform the delete operation every time(delete all the files from blobstore) and add a new file to the blobstore, except for the late

[web2py] Re: Implementing task queue using web2py

2012-02-16 Thread Saurabh S
r Howes wrote: > what is the error in the logs when the task fails?  what is the URL > shown in the task list?  something is either amok with the URL itself, > or something is causing that function to fail when called via the task > queue. > > On 2/13/12 20:05 , Saurabh S wrote:

[web2py] Attaching csv in mail without providing path

2012-02-14 Thread Saurabh S
Is it possible to attach a csv in mail in web2py without providing path? I have these 2 methods for generating csv: def report_download(result, colnames): import cStringIO stream = cStringIO.StringIO() render_report_csv(stream, result, colnames=colnames) filename = '%s-%s-%s.csv'

[web2py] Join operations on google app engine

2012-02-13 Thread Saurabh S
I have an online application deployed on google cloud. I have used web2py framework to develop the application. I have 2 tables the auth_user table and tasks table.Both of them have more than 1000 records each.The tasks table contains person_id field which stores the id's in auth_user table I ne

[web2py] Re: Implementing task queue using web2py

2012-02-13 Thread Saurabh S
It worked when I passed a different controller in the url other than the one it is being called from. It is production. I checked the task queue it simply retries continuously if the same controller is provided. No params is not a mandatory argument to takqueue.add() I guess. Because it does not t

[web2py] Implementing task queue using web2py

2012-02-10 Thread Saurabh S
I have an application on google app engine. I have used web2py framework to develop the application I have a module in which I need to fetch the records from 3 tables and the final set of records contain data from all the 3 tables. Here each of my tables contain more than 1000 records so when I

[web2py] Re: best way to fetch data from multiple tables?

2012-02-10 Thread Saurabh S
Omi, We tried the solution that you have mentioned using join provided by web2py, it works fine on local server. But when we run it in google appengine sandbox or deploy it using google app engine it gives the error "Too many tables in the query". Is there a solution to resolve this? Is there any

[web2py] login with blank password:problem

2012-01-19 Thread Saurabh S
Hi , i am developing an online booking system in web2py on GAE. The problem that i am facing is when i create an entity (client/ volunteer/employee) in my system , i store a random password in the db (auth_random_password()) and 'pending' in the registration key initially. but when i enable the lo

[web2py] Pagination issue in GAE using web2py

2012-01-12 Thread Saurabh S
Hi, I am developing an online booking application in python using web2py framework on google app engine. I have two tables, one is users table and other is activities table. My users table contains user id for each record and my activities table contains user id for whom an activity has been cre

[web2py] Deadline exceeded error/ Downloading data in csv via application

2012-01-11 Thread Saurabh S
Hi, I am developing an online booking system. one of the functionality that i have implemented is to generate reports by gathering the data from two or more different tables. the problem that i am facing is due to large number of records (greater than thousand) , i was unable to render all the rec

[web2py] Image broken in exported CSV

2011-12-11 Thread Saurabh S
Hi , I have a table in my application , i have an image colomn in that table which stores images. when i export the table via /appadmin, the image field appears to be broken/in some format which is not readable. How can i export the image as it is (in the same format is it was stored) ? Please

[web2py] Image broken in exported CSV

2011-12-11 Thread Saurabh S
Hi , I have a table in my application , i have stored a image field in one column of that table. but when i export the table via /appadmin, the image field appears to be broken/in some format which is not readable. How can i export the image as it is ? Please provide suggestions.

[web2py] Logout if browser is closed

2011-12-07 Thread Saurabh S
Hi , Is there any way possible to log-out the user if browser is closed ? Please provide suggestions

[web2py] Logout if browser is closed

2011-12-07 Thread Saurabh S
Hi , Is there any way possible to log-out the user if browser in closed ? Please provide suggestions

[web2py] Re: Automatic logout in Web2py

2011-12-06 Thread Saurabh S
can write " auth.settings.expiration=1800" to enable log out after idle time...please reply...thanks in advance On Dec 7, 9:34 am, Anthony wrote: > On Tuesday, December 6, 2011 10:27:42 PM UTC-5, Saurabh S wrote: > > > Hi , > > > I am developing an online booking syst

[web2py] Automatic logout in Web2py

2011-12-06 Thread Saurabh S
Hi , I am developing an online booking system in web2py framework. 1. I want to have the functionality where a user will be logged out after some time(say 1 hour) if the system remains idle. 2. The user will be logged out if the browser window is closed Please suggest what are the possible w

[web2py] Re: Numbers only field

2011-12-05 Thread Saurabh S
Thanks Massimo :) On Dec 6, 9:18 am, Massimo Di Pierro wrote: > jQuery('#tablename_fieldname').keyup(function() > {this.value=this.value.replace(/[^ 0-9]/g,'');}); > > On Dec 5, 9:46 pm, Saurabh S wrote: > > > > > > > > >

[web2py] Numbers only field

2011-12-05 Thread Saurabh S
Hi i have used custom form in my application example: {{=form.custom.label.mobile}}: {{=form.custom.widget.mobile}} {{=form.custom.label.email}}: {{=form.custom.widget.email}} I need a javascript/jqeury function to allow spaces and numbers o

[web2py] Retrieving values

2011-11-29 Thread Saurabh S
Hi , I have two controllers namely REGISTRATIONS and EVENTS , i have calender in my application. values and the data are printed on the calender via EVENTS controller. I have come across a requirement where i need to have a variable who's value is determined in the REGISTRATION controller is to b

[web2py] BULKLOADER IMPORT

2011-11-16 Thread Saurabh S
Hi , i used inbuilt import function provided by web2py on GAE but after import my id's in the table were changing so i opted for BULKLOADER to perform import via command line (i want id's in the datastore table to be same as they are in the file) 1. while importing a file via command line i am ge

[web2py] Saurabh S wants to chat

2011-11-03 Thread Saurabh S
--- Saurabh S wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-4d6c4a2f3-0feaf224bf-Oir9iudbwgceMu0GRBc4DXQyDAI You&#x

Re: [web2py] Problem while Importing a csv file into the database

2011-11-03 Thread Saurabh S
Thanks for replying philip, I will be deploying my code to GAEdatabase will be Google's datastore...is there any tool available to migrate a data template into GAE datastore ? On Thu, Nov 3, 2011 at 2:57 PM, Philip Kilner wrote: > Hi, > > > On 03/11/2011 09:01, Saurabh

Re: [web2py] Problem while Importing a csv file into the database

2011-11-03 Thread Saurabh S
13:36, Saurabh S wrote: > >> Questions: >> 1. What is the correct way to create the CSV file so that the file can >> be imported using appadmin feature. >> 2. How to debug the error in case data is not reflected after >> importing the .csv file? >> 3. Is t

[web2py] Problem while Importing a csv file into the database

2011-11-02 Thread Saurabh S
Hi, I am facing the problem while importing csv file. Please find the steps below that i am following. Step1: Created table headers(cloumns) in the excel file EXACTLY SIMILAR to those which are present in the database table Step2: Inserted some dummy data as rows in the columns. All the validatio

[web2py] Problem while Importing a csv file into the database

2011-11-02 Thread Saurabh S
Hi , Step1: Created table headers(cloumns) in the excel file EXACTLY SIMILAR TO THOSE which are present in the database

[web2py] Import And Export of Database Tables

2011-11-01 Thread Saurabh S
Hi , is it possible to built a module in the application itself to have a functionality of import and export , just like /appadmin ? i.e. can we have a button in our application on click of which we can import/export the data ?

[web2py] Import/Export issue in web2py.

2011-10-24 Thread Saurabh S
Hi , I have deployed single app to two different instances , i want to have some of the data to be common in both the system so i exported the data in csv from one app and added some data manually into the same csv then tried to add this csv to another app via import...but this is not workingbu

[web2py] Import/Export issuse in web2py

2011-10-24 Thread Saurabh S
Hi , I have deployed single app to two different instances , i want to have some of the data to be common in both the system so i exported the data in csv from one app and added some data manually into the same csv then tried to add this csv to another app via import...but this is not workingbu

Re: [web2py] Re: image uploading and storing in web2py

2011-10-17 Thread Saurabh S
Hi , i am developing an online booking system using web2py ...i have come across a requiremnt where i need to store the clients photo into the database(< 2MB)...how should i proceed with this .i have achieved the functionality to store a image into the database when i create a perticu

Re: [web2py] Re: image uploading and storing in web2py

2011-10-17 Thread Saurabh S
hi thanks for you reply...please tell me how can i store the path of image into the databse and actuall image image on the file system ?...i mean what would the field in database.if i go with this approach will i be able to view the same image when i edit a perticuler client...please reply On

[web2py] HOW TO RETRIEVE IMAGE FROM DATABASE.....

2011-10-17 Thread Saurabh S
Hi , i am developing an online booking system using web2py ...i have come across a requiremnt where i need to store the clients photo into the database(< 2MB)...how should i proceed with this .i have achieved the functionality to store a image into the database when i create a perticu

[web2py] HOW TO RETRIEVE IMAGE FROM DATABASE

2011-10-17 Thread Saurabh S
Hi , i am developing an online booking system using web2py ...i have come across a requiremnt where i need to store the clients photo into the database(< 2MB)...how should i proceed with this .i have achieved the functionality to store a image into the database when i create a perticu

[web2py] HOW TO RETRIEVE IMAGE FROM DATABASE

2011-10-17 Thread Saurabh S
Hi , i am developing an online booking system using web2py ...i have come across a requiremnt where i need to store the clients photo into the database(< 2MB)...how should i proceed with this .i have achieved the functionality to store a image into the database when i create a perticu

[web2py] image uploading and storing in web2py

2011-10-16 Thread Saurabh S
Hi , i am developing an online booking system using web2py ...i have come across a requiremnt where i need to store the clients photo into the database(< 2MB)...how should i proceed with this...i mean what should be the field in databasehow i can populate a select image box so that user/admin

[web2py] Back to home page every time i click cancle button

2011-10-13 Thread Saurabh S
{{=form.custom.submit}} i want to replace on-click function with something that always redirects me to my home pagesuppose my home page is http://127.0.0.1:8000...how it would be possible please suggest...

[web2py] Re: how to restrict a field to be alphabet only

2011-10-12 Thread Saurabh S
thank you all On Oct 12, 7:37 pm, Vinicius Assef wrote: > But not '*', '%' and so on. hehehe > > > > > > > > On Wed, Oct 12, 2011 at 10:00 AM, Anthony wrote: > > Yeah, that's probably better for names. Names can include hyphens as well. > > > On Wednesday, October 12, 2011 8:56:35 AM UTC-4, spyk

[web2py] how to restrict a field to be alphabet only

2011-10-12 Thread Saurabh S
hi i am developing a system in which i require a validation on name field...validation shoould be : the field should not accept numbers ...it should only accept alphabets...i know this is possible using IS_MATCH in web2py...i tried using db.organisations.name.requires=[IS_MATCH('^[a-z]', error_mess

[web2py] how to restrict a field to be alphabet only

2011-10-12 Thread Saurabh S
how i am developing a system in which i require a validation on name field...validation shoould be : the field should not accept numbers ...it should only accept alphabets...i know this is possible using IS_MATCH in web2py...i tried using db.organisations.name.requires=[IS_MATCH('^[a-z]', error_m

[web2py] Multi tenency in web2py

2011-10-10 Thread Saurabh S
hi , i am developing the configurable system for four clients . i want the code should be deployed on the single instance and should support the diffrent features depending upon who is logged in...also there should be a single database for all the clients..in order to impliment multi tenecy i tried

[web2py] Re: Automatic data import and export in web2py application

2011-10-05 Thread Saurabh S
sorry i didnt get youcould you please elaborate this ... On Oct 6, 6:47 am, Massimo Di Pierro wrote: > Why not run the app directly there? Perhaps an app that simply exposes > the service. > > On Oct 5, 6:29 pm, Saurabh S wrote: > > > > > > > > >

[web2py] GAE BULK UPLOAD AND DOWNLOAD

2011-10-05 Thread Saurabh S
Hi , i am developing an application for GAE in python using web2py frameworki have come across a requirement where i need to import and export the data from CSV or XML files into the google datastorei was able import and export the data from the command line..but i want this to be done on c

[web2py] Automatic data import and export in web2py application

2011-10-05 Thread Saurabh S
Hi , i am developing an application for online booking system.i have come across a requirement where i nedd to automatically import and and export data to/from google datastore i know this is possible from command line...but i wanted to have this automizedcan i have a link or a button i