Re: [web2py] Re: Pickling error afger latest update from trunk.

2012-03-06 Thread Johann Spies
On 6 March 2012 18:02, Anthony wrote: > What is the latest stable version that does not produce the error? The zip-file dowloaded as 1.99.7 > Can you show the entire traceback? > Unfortunately not. I have overwritten the faulty code by just reinstalling 1.99.7. I just did a hg pull / hg

[web2py] Re: load functionality in menu

2012-03-06 Thread Annet
Massimo, Thanks for your reply. The solution, again, demonstrates the beauty of web2py. Kind regards, Annet.

Re: [web2py] Hide the Extra added fields from auth table during the registrations

2012-03-06 Thread Sanjeet Kumar
Thanks Bruno On Friday, February 24, 2012 11:36:08 AM UTC+5:30, rochacbruno wrote: > > def user(): > *if 'register' in request.args: > fields_to_hide = ['city', 'preferred_color', 'soccer_team'] > for fieldname in fields_to_hide: > field = db.auth_user[fieldname] >

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
As per my understanding, update statement returns the number of records updated. What does it return when no records are updated 0 or None ? Will have to modify my code accordingly On Wednesday, March 7, 2012 9:33:48 AM UTC+5:30, howesc wrote: > > you probably need to add some more logging to se

[web2py] Re: TNS error on Oracle

2012-03-06 Thread tomt
I have had success with the following connection string: db = DAL('oracle://user/password@sid') I tried out the alternate form you used: db = DAL('oracle://user/password@server:port/service_name') And it worked successfully. When I used a bad password or a bad service_name I saw a similar error

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

2012-03-06 Thread Sanjeet Kumar
Actually i have the one company table :- db.define_table(('comany'), Field('cowner_id'), Field('details'), Field('due_date','date')) here i want to send the mail with the details by using the cron when the date will match to the due

[web2py] Re: Two gae questions

2012-03-06 Thread howesc
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 uploads that slice is still pretty accurate. i may have some minor enhancements to error checking sinc

Re: [web2py] Update query failing on GAE

2012-03-06 Thread howesc
you probably need to add some more logging to see what is happening. perhaps the row is not found? (remember eventual consistency), perhaps there is some other error that is currently not being logged On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: > > Yes I did check GAE

[web2py] Re: session.flash is None when manually logging out

2012-03-06 Thread danny
Just found the solution. Looking at the source of auth.logout() at http://web2py.com/examples/static/epydoc/web2py.gluon.tools-pysrc.html#Auth.logout, there is a line here: current .session

Re: [web2py] Re: web2py 1.99.7 is OUT

2012-03-06 Thread pbreit
I don't think people are against it per se. It's just probably not as easy as it sounds. You then have to figure out what fixes go into the stable branch and the potential for a mess increases.

[web2py] Re: Translations file

2012-03-06 Thread Massimo Di Pierro
Actually I made that long ago ago: http://dl.dropbox.com/u/18065445/Tmp/web2py.app.translatoradmin.w2p But it predates auth and the new admin design. It should be possible to merge with new admin add auth easily. massimo On Tuesday, 6 March 2012 16:43:29 UTC-6, Alan Etkin wrote: > > It wou

[web2py] session.flash is None when manually logging out

2012-03-06 Thread danny
Hello. I'm trying to customize the login and register forms as follows: - user() function does not return auth(), instead display two forms separately like this: {{if not auth.is_logged_in():}} {{login_form = auth.login()}} {{=login_form.custom.begin}} ... {{=

Re: [web2py] Re: Admin interface

2012-03-06 Thread Bruno Rocha
I think it should be there by default! It is very better to have subfolders. On Tue, Mar 6, 2012 at 8:26 PM, Bruce Wade wrote: > If anyone is interested (note there may be a better way) I customized my > ad to have the views collapse/expand like the static ones based on folders. > > Replace the

[web2py] Re: Admin interface

2012-03-06 Thread Bruce Wade
If anyone is interested (note there may be a better way) I customized my ad to have the views collapse/expand like the static ones based on folders. Replace the code in admin->views->default->design.html between: and {{=T("Views")}} {{=helpicon()}} {{=T("The presentations layer, views

[web2py] Winners! Web2py Application Exhibition Version 3.0

2012-03-06 Thread NetAdmin
The winners of the Web2py Application Exhibition Version 3.0 have been contacted, and I'll announce the winners very soon! Thanks to all who participated! Mr.NetAdmin

[web2py] Admin interface

2012-03-06 Thread Bruce Wade
Hi, I would like to change the views listing in design so it acts like the static listing. Where everything that is in a folder becomes hidden and only shown when you click on the folder. IE: click on CSS shows all css files. In views click on default shows all html files related to default. Any

Re: [web2py] Re: Translations file

2012-03-06 Thread Bruce Wade
We would also have to be able to assign portions of a file to different people if we wanted to allow multi-user on a single file translations. (As is my situation). We could probably do that fairly easy because it is just a dictionary. We could create multiple files with each containing a part of

Re: [web2py] Re: web2py 1.99.7 is OUT

2012-03-06 Thread Alvaro Lizama Molina
Using git the right way would be much easier to test and not get caught whensending patches 2012/3/6 drelyn86 > I think the more relevant question is about how to get more active > participation from the userbase in the testing of nightly builds... at > least on a semi regular basis. -- Alva

Re: [web2py] Re: web2py 1.99.7 is OUT

2012-03-06 Thread drelyn86
I think the more relevant question is about how to get more active participation from the userbase in the testing of nightly builds... at least on a semi regular basis.

[web2py] Re: Translations file

2012-03-06 Thread Alan Etkin
It would be great that web2py had a multi-user translation (for non- administrators). I have no idea about how could be implemented. I suppose that it can be accomplished imitating the admin code that handles the translation interface and adding support for Auth. On 6 mar, 18:26, Bruce Wade wrote

[web2py] Re: Pickling error afger latest update from trunk.

2012-03-06 Thread Massimo Di Pierro
you are right it should be. On Tuesday, 6 March 2012 14:09:29 UTC-6, Anthony wrote: > > What is PickleableStorage for? Shouldn't a Storage object be pickleable in > theory if all if its items are pickleable? Maybe Storage could be made > pickleable the way the DAL Row class is. > > Anthony > >

Re: [web2py] Re: Translations file

2012-03-06 Thread Bruce Wade
Yeah I am not worried about editing it myself, but when I get non-tech people to edit the files that is when things go bad :D. I think I am just going to write a standalone editor like the web based one that I can give to others when editing a file. On Tue, Mar 6, 2012 at 1:18 PM, Bruno Rocha wr

Re: [web2py] Re: Translations file

2012-03-06 Thread Bruno Rocha
On Tue, Mar 6, 2012 at 4:48 PM, Bruce Wade wrote: > Any suggestions on the best way to update languages.py to prevent this > from happening? You can use an editor with Pylinter and PEP8 modules (Sublime-Text-2, Geany, etc), so it will show live syntax errors and prevent problems with syntax. -

[web2py] Re: What's the best way to throttle a web2py thread?

2012-03-06 Thread Chris
Interesting. I like the analogy in that StackOverflow post. I've been watching David's video from his previous talk on the GIL. It seems like unless a thread gives up the GIL somehow, it would be hard to have a long-running thread on one request without hanging up other threads. Using a separate p

Re: [web2py] Re: Progress update on Mongodb adapter now forked GIT repo

2012-03-06 Thread rdodev
Hey Mark, Do you have any complex object usage examples? Thanks, good work so far with simple stuff. On Saturday, December 10, 2011 7:28:42 PM UTC-5, Mark Breedveld wrote: > > Yeah, there is plenty more to do. > Thanks for your testing. > > I turned it into a runtimeError like the others. > So n

[web2py] Re: Pickling error afger latest update from trunk.

2012-03-06 Thread Anthony
What is PickleableStorage for? Shouldn't a Storage object be pickleable in theory if all if its items are pickleable? Maybe Storage could be made pickleable the way the DAL Row class is. Anthony On Tuesday, March 6, 2012 2:09:01 PM UTC-5, Massimo Di Pierro wrote: > > This was never supposed to

Re: [web2py] Re: Translations file

2012-03-06 Thread Bruce Wade
So I tracked down what was wrong with the file buy manually importing it into a python terminal and clearing up the syntax errors one by one. The problem with the current translation system: If file encoding is not utf-8 or if there is a syntax error in the file, the file is over written. Instead

[web2py] Re: Pickling error afger latest update from trunk.

2012-03-06 Thread Massimo Di Pierro
This was never supposed to work. You are nos supposed to store a Storage object in a session. I am surprised this ever worked and even if it did I am not sure it works well. On Tuesday, 6 March 2012 02:24:25 UTC-6, spyker wrote: > > I get this when I log in: > > PicklingError: Can't pickle : it'

[web2py] Re: load functionality in menu

2012-03-06 Thread Massimo Di Pierro
In the view replace: href="{{=_link}}" with onclick="web2py_component('{{=_link}}','component')" On Tuesday, 6 March 2012 01:45:20 UTC-6, Annet wrote: > > In a view I have the following code in the right column of the > content: > > {{=LOAD('vcardadmin','index.load',ajax=True,target='compone

[web2py] Re: view with 2 forms

2012-03-06 Thread Ale
I found what I need here: http://dev.s-cubism.com/plugin_comment_cascade Thank you all. On Tuesday, March 6, 2012 8:34:35 AM UTC-3, Ale wrote: > > Good morning everyone. I am making a simple application, but I'm running > into some doubt. I wanted to do something like thefacebook posts .. Where

Re: [web2py] DAL and schema

2012-03-06 Thread howesc
in this case i think you still use 2 DAL connections, one for each "schema" in postgres. On Sunday, March 4, 2012 11:57:09 PM UTC-8, spyker wrote: > > > > On 2 March 2012 16:13, Bruce Wade wrote: > >> To use 2 different databases you require 2 connection strings. >> > > Two schemas does not necc

[web2py] Re: view with 2 forms

2012-03-06 Thread Cliff
The manual's "Overview" chapter discusses a similar application. Here is a link to the English version: http://web2py.com/books/default/chapter/29/3#An-image-blog And Spanish: http://www.latinuxpress.com/books/drafts/web2py/caps/cap3.html#un-blog-image On Mar 6, 6:34 am, Ale wrote: > Good morni

[web2py] Re: TNS error on Oracle

2012-03-06 Thread Lazarof
Hi! Are you sure that 3. db = DAL("oracle://ricardo/rica...@10.10.1.84:1521/XE") and not 3. db = DAL("oracle://ricardo/password@XE") On Mar 6, 6:21 pm, Bruno Rocha wrote: > Does anybody knows something about this? > > it connects with cx_oracle and raw queries, but gives this error

Re: [web2py] apache https only need help

2012-03-06 Thread Richard Vézina
Solve it like that : NameVirtualHost *:80 NameVirtualHost *:443 WSGIDaemonProcess web2py user=www-data group=www-data WSGIProcessGroup web2py WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py *Redirect permanent / https://mysite.mydomain.org/* ... :) Richard On Mon, Mar 5, 2012

[web2py] Re: SQLFORM.smartgrid and auth_membership

2012-03-06 Thread Anthony
> > query = (db.auth_user.id == db.auth_membership.id) & > (db.auth_membership.group_id == 1) # does not show all persons > It should be db.auth_user.id == db.auth_membership.user_id. Anthony

[web2py] Re: Pickling error afger latest update from trunk.

2012-03-06 Thread Anthony
What is the latest stable version that does not produce the error? Can you show the entire traceback? On Tuesday, March 6, 2012 3:24:25 AM UTC-5, spyker wrote: > > I get this when I log in: > > PicklingError: Can't pickle : it's not the > same object as gluon.storage.Storage > > > I have updated

Re: [web2py] Re: web2py 1.99.7 is OUT

2012-03-06 Thread Anthony
> > i would prefer to have DEV and Stable(production) branches (or labels) . > > Due to 2-3 times of broken updates , i am reluctant to update my web2py to > latest version , until people reports less problems with that particular > update version. > Basically, x.xx.1 versions are essentially r

Re: [web2py] view with 2 forms

2012-03-06 Thread Bruce Wade
If you want multiple forms you will also have to give each form a unique form name, and have your controller use that form name when processing the form. Otherwise there is no way to tell which form was posted with possibly hundreds of forms. However for what you are trying to do, it would be more

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

2012-03-06 Thread Anthony
> > Thanks, Bruno, I will try this. I am curious to learn more. Could you > spend a moment to explain why it works this way? For instance, why > can't the module import current and set current.auth=auth? > current.auth = auth assumes the "auth" on the right side of that assignment has been def

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

2012-03-06 Thread Anthony
> > list = [] > import datetime > currentdate = datetime.datetime.now() > for row in db(db.employee.time == currentdate).select(): > list.append(row.empdetail) > I don't quite understand what you are doing, but one problem is that datetime.datetime.now() is the current date and time (down to

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Yes I did check GAE logs. There are no logs with severity level error. On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: > > I dont know, but have you examined the GAE log? > > 2012/3/6 Sushant Taneja : > > Hi, > > > > I thought the same but as you can see I have handled the Timeout

[web2py] Re: Fw: [security-77] Secure Coding (web app) Competition

2012-03-06 Thread Luther Goh Lu Feng
Ah whoops > > From: Robert Kooij >To: web2py@googlegroups.com >Cc: Luther Goh Lu Feng >Sent: Tuesday, March 6, 2012 8:37 PM >Subject: Re: Fw: [security-77] Secure Coding (web app) Competition > > >This is a Java contest, web2py/Python is out. Wrong boards.

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
I dont know, but have you examined the GAE log? 2012/3/6 Sushant Taneja : > Hi, > > I thought the same but as you can see I have handled the Timeout exception > in the code. > If its the Timeout then why I am unable to catch the exception ? > > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamand

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Hi, I thought the same but as you can see I have handled the Timeout exception in the code. If its the Timeout then why I am unable to catch the exception ? On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: > > Looks its a timeout. > Maybe I am wrong but you can state an update too

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
Looks its a timeout. Maybe I am wrong but you can state an update too many records. GAE has time limitations, I dont know how much because I dont use it anymore. Search for the GAE docs on these limitations. 2012/3/6 Sushant Taneja : > Hi All, > > I am building a invite module. > In the controller

[web2py] Re: Fw: [security-77] Secure Coding (web app) Competition

2012-03-06 Thread Robert Kooij
This is a Java contest, web2py/Python is out. Wrong boards. ;) "The web application will be based on Google’s App Engine for Java. Progamming with Python and Go is not allowed." On Tuesday, March 6, 2012 8:16:06 AM UTC+1, Luther Goh Lu Feng wrote: > > Fyi for web2py developers > > - Forwarde

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

2012-03-06 Thread Sanjeet Kumar
i am able to send the mail through the cron job but when i am going to send the mail by fetching the email id from the database i got confused in the logic :- i have the followng code : list = [] import datetime currentdate = datetime.datetime.now() for row in db(db.employee.time == currentdate

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

2012-03-06 Thread weheh
Thanks, Bruno, I will try this. I am curious to learn more. Could you spend a moment to explain why it works this way? For instance, why can't the module import current and set current.auth=auth? On Mar 6, 2:45 pm, Bruno Rocha wrote: > in model after all (in the last line of the last model) inclu

[web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Hi All, I am building a invite module. In the controller, I have the following code : try: some initial stuff try: ... some stuff update_request_query = (db.INVITE_SIGNUP.email_id == request_email_id) db(update_request_query).update(activation_key=key,activ

[web2py] Re: form.element() focus

2012-03-06 Thread Alan Etkin
> the form shares its view with other forms In that case maybe you need a conditional block to focus just if the element is to be present: {{ if request.controller == "second_form": }} {{ =SCRIPT("$(document).ready(...);") }} {{ pass }}

[web2py] Re: Legacy databases

2012-03-06 Thread Alan Etkin
With a quick look at the code, it seems to me that the driver was replaced instead of providing an optional uri. For optional driver there is need for more code allowing the choice between both drivers. On 5 mar, 15:17, Ralo Tannahill wrote: > Is it safe (from the perspective of queries syntax or

Re: [web2py] view with 2 forms

2012-03-06 Thread Alessandro Aguiar
Carlos, thanks for the reply. What I want is to write a comment to the correct post. In the view I list all the posts, I put an input in to comment this post. Oh what I want is when the user replies to a post in the comment input is corretament associated with your post. thank you Em 6 de março

[web2py] Re: Difference between storing session in memcache v/s DB

2012-03-06 Thread Sushant Taneja
Thanks. On Monday, March 5, 2012 12:24:04 AM UTC+5:30, Massimo Di Pierro wrote: > > Sessions with web2py on GAE must go in DB, else they are not reliable (you > may find yourself logged out because cache is cleared). > > On Saturday, 3 March 2012 23:12:34 UTC-6, Sushant Taneja wrote: >> >> Hi, >>

Re: [web2py] fit image to shape

2012-03-06 Thread Carlos Costa
You will need an extra library to accomplish this, like PIL http://www.pythonware.com/products/pil/ 2012/3/6 mwk : > I would like to have an uploaded image displayed inside a specific > shape.  For instance, I would like to have an uploaded image fill a > circle or fill an octagon shape, or other

Re: [web2py] view with 2 forms

2012-03-06 Thread Carlos Costa
You will need to pass the post ID in the url or var or something. And I think you want to show comments related to the post not another posts. comments = db(db.comment.id=request.args(0)).select() Pass this to the view. 2012/3/6 Ale : > Good morning everyone. I am making a simple application, bu

[web2py] fit image to shape

2012-03-06 Thread mwk
I would like to have an uploaded image displayed inside a specific shape. For instance, I would like to have an uploaded image fill a circle or fill an octagon shape, or other shape. How can I accomplish that with We2py? Thanks Mark

Re: [web2py] How to use XML data

2012-03-06 Thread Carlos Costa
As I can see, you got the XML and outputed it to the view. I dont see what you want more. Tell us. 2012/3/6 Praveen Bhat : > Hello, > > I have come to the point where the whole XML document is returned, as u can > see in the attached file. > > I have used the following code: > > Controller: > > de

Re: [web2py] uWSGI Question

2012-03-06 Thread Phyo Arkar
got it . i better use --http :port On Tue, Mar 6, 2012 at 4:59 PM, Roberto De Ioris wrote: > > > Thank you very much! i am going to give uWSGI standalone mode a try! > > > Forgot an important point: > > > --http :port > will spawn the http router/filter/proxy > > --http-socket :port > will let

[web2py] Re: Python Code in DB

2012-03-06 Thread Hassan Alnatour
but it dose not render the Css and Html !!

Re: [web2py] uWSGI Question

2012-03-06 Thread Roberto De Ioris
> Thank you very much! i am going to give uWSGI standalone mode a try! Forgot an important point: --http :port will spawn the http router/filter/proxy --http-socket :port will let uWSGI speaking the http protocol (instead of the uwsgi one). You need the first form if you plan to put uWSGI

Re: [web2py] uWSGI Question

2012-03-06 Thread Phyo Arkar
Thank you very much! i am going to give uWSGI standalone mode a try! On Tue, Mar 6, 2012 at 4:47 PM, Roberto De Ioris wrote: > > > I would like to know about uWSGI . i haven't tried it yet. > > > > 1 - Is that a gateway to interface between other web servers ? > > (Apache/Cherokee/nginx etc)

Re: [web2py] uWSGI Question

2012-03-06 Thread Roberto De Ioris
> I would like to know about uWSGI . i haven't tried it yet. > > 1 - Is that a gateway to interface between other web servers ? > (Apache/Cherokee/nginx etc) it depends, if you need a specific webserver front-end you can use it and connect to uWSGI via one of the supported protocols (oviously th

[web2py] uWSGI Question

2012-03-06 Thread Phyo Arkar
I would like to know about uWSGI . i haven't tried it yet. 1 - Is that a gateway to interface between other web servers ? (Apache/Cherokee/nginx etc) 2 - It seems that can be use as a webserver alone but how it works. Is that reliable /Fast? 3 - It was mentioned that The download/upload corruptio

[web2py] Two gae questions

2012-03-06 Thread rif
1. What is the status of mysql database for gae? 2. Is there any better solution than this ( http://www.web2pyslices.com/main/slices/take_slice/63) to write blobs to blobstore? Thank you, -rif

Re: [web2py] Using Spawn in Web2Py with Web2Py Python Implementation

2012-03-06 Thread Phyo Arkar
what do you mean by web2py's python interpreter? web2py do not have its own intepreter. it runs on Python interpreter. You will like to look for web2py's built-in cron documentation. And do not use old/depreciated os.spawn if its possible to upgrade your python to 2.7 , use subprocess.Popen On

Re: [web2py] Re: web2py 1.99.7 is OUT

2012-03-06 Thread Phyo Arkar
i would prefer to have DEV and Stable(production) branches (or labels) . Due to 2-3 times of broken updates , i am reluctant to update my web2py to latest version , until people reports less problems with that particular update version. I am seeing many Opensource software , both big and small ha

[web2py] Pickling error afger latest update from trunk.

2012-03-06 Thread Johann Spies
I get this when I log in: PicklingError: Can't pickle : it's not the same object as gluon.storage.Storage I have updated the code from the trunk this morning. Putting back the stable version from the zip file solved the problem for me. Regards Johann -- Because experiencing your loyal love i