[web2py] admin access password file

2013-06-11 Thread Paolo valleri
Hi all, I have to migrate a web2py app to a centos server. It has python 2.6.6, uwsgi 1.9.12. admin fails saying: "admin disabled because unable to access password file" the file (parameters_443.py) is there. I tried to debug the failure and I discover that, despite the fact that I use https,

[web2py] Re: how to change the content of an IFRAME from a jquery menu

2013-06-11 Thread Anthony
Google is your friend. :-) http://stackoverflow.com/questions/2930315/changing-iframe-source-with-jquery On Tuesday, June 11, 2013 6:59:37 PM UTC-4, aapaap wrote: > > hello, > > Starting again with web2py (did a simple experiment 3 years ago), > I'm struggling with changing the content of an IF

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Aravindan Rs
You can find the issue at https://code.google.com/p/web2py/issues/detail?id=1524 On Wednesday, 12 June 2013 04:35:48 UTC+5:30, Massimo Di Pierro wrote: > > Can you please open a ticket about this. We'll need to think about this > and we do not want to forget. > > On Tuesday, 11 June 2013 16:47:

[web2py] Re: PostgreSQL: duplicate key value...

2013-06-11 Thread Cliff Kachinske
Your source table defines id as an integer. Your target table defines id as a string with length 8. Therefore it will not auto increment. Suggest you look at the manual for your target database to see how to do an auto increment integer for primary key. On Monday, June 10, 2013 11:55:32 AM

[web2py] how to change the content of an IFRAME from a jquery menu

2013-06-11 Thread Stef Mientki
hello, Starting again with web2py (did a simple experiment 3 years ago), I'm struggling with changing the content of an IFrame. I've a few pages, one of them contains a vertical jquery menu on the left and an IFrame on the right (setting the width of the IFrame is also a small problem). Now I

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Massimo Di Pierro
Can you please open a ticket about this. We'll need to think about this and we do not want to forget. On Tuesday, 11 June 2013 16:47:08 UTC-5, Niphlod wrote: > > @derek : request.now is just a field that represents the row that needs to > go to the db. is then either inserted or updated accordin

[web2py] Re: requires_login() not working for second instance of auth

2013-06-11 Thread André Kablu
Nevermind... found that this is no bug... need to add auth.settings.controller = 'x' ;) Em segunda-feira, 10 de junho de 2013 23h17min49s UTC-3, André Kablu escreveu: > > I wrote some code here extending auth to create different sessions... > > Then I could create here the second instance of Au

[web2py] Re: Web2py Grid: Hiding from the main grid but show on other views

2013-06-11 Thread Massimo Di Pierro
I tried db.CodeMaster.Code_Example.readable = False I tried db.CodeMaster.Code_Example.writable = False Now put the two lines in the action before the grid(...) and it will only apply to that grid. On Tuesday, 11 June 2013 15:34:30 UTC-5, Joe Magaro wrote: > > Hi, I am just learning web2py and I

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Niphlod
@derek : request.now is just a field that represents the row that needs to go to the db. is then either inserted or updated accordingly to the record_id found (more precisely, it tries to update and then if no updates are detected it inserts it). at the beginning of the try_store_whatever there

[web2py] How to change default controller / default function

2013-06-11 Thread D Dan
It looks pretty straightforward base on the online book Default application, controller, and function default_application default_controller default_function When using the pattern-based system, the name of the default application, controller, and function can be changed from *init*, *default*,

[web2py] Web2py Grid: Hiding from the main grid but show on other views

2013-06-11 Thread Joe Magaro
Hi, I am just learning web2py and I have a working grid: form=SQLFORM.grid(db.CodeMaster,editable=auth.has_membership('Editor_Group'), create=auth.has_membership('Editor_Group'),deletable=auth.has_membership('Editor_Group') ) There is a field in db.CodeMaster that I would like to hide from

Re: [web2py] Re: web2canvas looks nice

2013-06-11 Thread joseph simpson
Google translate does a good job on most of this material.. On Tue, Jun 11, 2013 at 12:47 AM, Jason (spot) Brower wrote: > Excited to try this when it's in english. > BR, > Jason > > > On Mon, Jun 10, 2013 at 5:39 PM, Michael Herman wrote: > >> Interesting. There's huge potential for projects li

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Niphlod
apparently "the issue" (i.e. different strings can be generated for the same object) is documented at http://docs.python.org/2/library/pickle.html#id10 > > >>> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this grou

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Niphlod
strange that nobody reported issue with that before. @derek: unfortunately, every nested structure would need to be ordered to produce the same string. pickle just "states" that the object that you dump is the same one that you load, i.e. dict1 == dict2, but doesn't guarantee that the seria

[web2py] Re: using "_after_delete" callback when enable_record_versioning() is used

2013-06-11 Thread Lamps902
Thanks, Anthony - forgot about the _after_update callback. Could you please clarify how to use it in this situation? I was trying this: def create_after_update_callback(self, db, id): def update_mytable1_record(s, f, id): if not db(db.auth_user.id == id).is_ac

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Derek
To add on a bit more to this... it appears the hash is calculated by doing an md5 of the globals digest. However, it appears the 'update or insert' logic is strange. Line 555 of globals.py adds request.now to the modified_datetime, so in this case, wouldn't it always insert and never update? In

[web2py] Re: Session object gets written even when there is no change in the content

2013-06-11 Thread Derek
I don't think it would be too difficult to solve. Just use an 'OrderedDict' instead of a regular dict. http://docs.python.org/2/library/collections.html#collections.OrderedDict On Tuesday, June 11, 2013 9:21:21 AM UTC-7, Aravindan Rs wrote: > > Hi, > > We use web2py in GAE environment and during

[web2py] Session object gets written even when there is no change in the content

2013-06-11 Thread Aravindan Rs
Hi, We use web2py in GAE environment and during our performance tuning we realized that session objects are getting written in every request - even in requests which do not modify the session object. I raised an issue regarding this in the web2py issue tracker where I've provided details ( http

Re: [web2py] d3.js stays in view even after selecting menu change

2013-06-11 Thread Niphlod
usually with tabs you have to re-initiate your "something" as soon as the tab is shown because the element is hidden when the onload event is fired when loading the page. This happens, e.g., with google maps loaded in query ui tabs, so probably d3 has the same exact issue. Il giorno martedì 11

Re: [web2py] d3.js stays in view even after selecting menu change

2013-06-11 Thread António Ramos
I had problems also with fullcalendar inside twitter bootstrap tabs The fullcalendar only works in the first tab. Moving it to next tabs bring problems 2013/6/11 greaneym > I am learning D3 to use it in an app for visualization but having problems > with multiple graphs loading when I only

[web2py] d3.js stays in view even after selecting menu change

2013-06-11 Thread greaneym
I am learning D3 to use it in an app for visualization but having problems with multiple graphs loading when I only want one to show per menu selection. Using the bootstrap welcome app, I am able to load d3 examples using a tabbable nav menu, however, once loaded they do not go away between cl

[web2py] Re: I have an error with AutocompleteWidget

2013-06-11 Thread Massimo Di Pierro
Fixed now in trunk. On Monday, 10 June 2013 22:14:34 UTC-5, www.diazluis.com wrote: > > files presented below: > controller > modules > models > and throws error > > controller: > ## > @auth.requires_login() > def update(): > > ubicacion = db.ubicacion(auth_user=auth_user_id) > >

[web2py] Re: Combining rows

2013-06-11 Thread webpypy
yes, I am sure it is working without as_dict(). Regards, >> >> Ashraf >> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegrou

[web2py] Re: formatting dates as plain english text

2013-06-11 Thread ssuresh
oops..I somehow missed that.. pretty-dates is what i need..Thanx a lot -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.

[web2py] Re: web2py down after adding a table in db.py

2013-06-11 Thread Rocco
Ok, I solved using fake_migrate_all=True Thanks to Angelo, who helped me :) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegr

[web2py] Re: formatting dates as plain english text

2013-06-11 Thread 黄祥
had you already take a look pretty date? ref: http://www.web2py.com/book/default/chapter/14#Pretty-dates best regards On Tuesday, June 11, 2013 3:43:04 PM UTC+7, ssuresh wrote: > > Hi, > What is the preferred approach in converting datetimes to plain english > text as " 2 hours ago", "last mond

[web2py] formatting dates as plain english text

2013-06-11 Thread ssuresh
Hi, What is the preferred approach in converting datetimes to plain english text as " 2 hours ago", "last monday" ,"1 month ago" etc? Are there any web2py functions available or is it better to manipulate it using javascript libraries like http://momentjs.com/? regds, suresh -- --- You rece

[web2py] web2py down after adding a table in db.py

2013-06-11 Thread Rocco
Dear all, it's more than a year that I'm using web2py to develop scientific application for marine acoustic data analysis and stock assessment. For many years I used LAMP and moving to web2py has been very exciting. I saved a lot of developing time, and the products are better in look and usab

Re: [web2py] Re: web2canvas looks nice

2013-06-11 Thread Jason (spot) Brower
Excited to try this when it's in english. BR, Jason On Mon, Jun 10, 2013 at 5:39 PM, Michael Herman wrote: > Interesting. There's huge potential for projects like this: > >- http://javelinapp.com/ ( > > http://pandodaily.com/2013/06/10/javelin-the-lean-startup-app-thats-a-product-of-lea