[web2py] Re: The book updates and status

2012-12-25 Thread Massimo Di Pierro
So should we go with Serif or Sans Serif? To me Serif seems more professional. Any kindle book I have is Serif. Street sign and google group posts are Sans Serif (Helvetica). massimo On Saturday, 22 December 2012 17:59:43 UTC-6, Alan Etkin wrote: > > > The font used on the online version is muc

Re: [web2py] upload field without the upload

2012-12-25 Thread Massimo Di Pierro
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/upload/web2py/CWNwcgo3wIU/1K_7wJBPh-0J On Tuesday, 25 December 2012 20:51:21 UTC-6, lucas wrote: > > ok, what if i just upload the file? how do i do that programmically? > lucas > --

Re: [web2py] upload field without the upload

2012-12-25 Thread lucas
ok, what if i just upload the file? how do i do that programmically? lucas --

Re: [web2py] images (uploaded files) not showing correctly after update?

2012-12-25 Thread Massimo Di Pierro
Was this ever fixed. Can you help me check? On Sunday, 2 October 2011 17:42:39 UTC-5, Carlos wrote: > > Hi, > > I solved this in my case (without a redirect) as follows: > > + wrap each upload widget html into a 'wrapper' div. > > + after the form accepts/process, find each of those wrapper elemen

Re: [web2py] upload field without the upload

2012-12-25 Thread lucas
well, i get this error Traceback (most recent call last): File "/opt/web-apps/web2py/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/opt/web-apps/web2py/applications/iquanta/controllers/site.py"

Re: [web2py] upload field without the upload

2012-12-25 Thread Massimo Di Pierro
You can do it and it will work. But you will not be able to download it using the "download" action. That is because it expects a certain format for filenames. You will need a custom download action that would know how to located the file from its name. Massimo On Tuesday, 25 December 2012 18:

[web2py] Re: Custom form delete Crud checkbox

2012-12-25 Thread Massimo Di Pierro
I am not convinced. It is in form.custom.delete why does it need to be also in form.custom.delete_this_record Perhaps in web3py we can rename it but why have it in two places in web2py? contains things which are not fields. The On Tuesday, 25 December 2012 16:43:47 UTC-6, Alan Etk

Re: [web2py] upload field without the upload

2012-12-25 Thread Bruno Cezar Rocha
AFAIK upload fields are just string fields, so you can insert any string there! db.table.insert(filefield="blah") should work! You just have to use Python glob, os, sh or shutil to take a list of files and then populate the database. On Tue, Dec 25, 2012 at 03:40:51PM -0800, lucas wrote: hel

[web2py] upload field without the upload

2012-12-25 Thread lucas
hello one and all, i am doing en masse data table using xml data to a table that has an upload field. the files are already present in the upload subdirectory but i need to populate the table with the data, including the file name that is the upload field. i hope that made sense. how do i po

[web2py] Re: Custom form delete Crud checkbox

2012-12-25 Thread Alan Etkin
> Since the name in the default form is "delete_this_record", shouldn't this be found in form.custom.delete_this_record also? In case it should, here is a patch for allowing queries to the deletable widget by it's form name -- diff -r 13d7e5ff851d gluon/sqlhtml.py --- a/gluon/sqlhtml.py Tue

[web2py] Re: Custom form delete Crud checkbox

2012-12-25 Thread Alan Etkin
El lunes, 24 de diciembre de 2012 19:09:30 UTC-3, Massimo Di Pierro escribió: > > I just added this to the web2py book in trunk. Will push it tomorrow. > > Since the name in the default form is "delete_this_record", shouldn't this be found in form.custom.delete_this_record also? --

Re: [web2py] Re: Graph Model (proposal to contribute)

2012-12-25 Thread Jose
El martes, 25 de diciembre de 2012 14:21:00 UTC-3, Alan Etkin escribió: > > > On Tuesday, December 25, 2012 12:45:31 PM UTC-3, Jose wrote: > El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro > escribió: >> >> Not yet. It is the queue. >> > > If you are using mercurial t

Re: [web2py] Re: Graph Model (proposal to contribute)

2012-12-25 Thread Alan Etkin
> > I've moved the table style to web2py.css and changed the xml generation > with helpers to cleanup appadmin. Attached are the proposed diffs for > appadmin.py and web2py.css. > > Oops! That would never work (sorry, I didn't know the library requires special html input). This new patch instea

Re: [web2py] Re: Graph Model (proposal to contribute)

2012-12-25 Thread Alan Etkin
El martes, 25 de diciembre de 2012 12:45:31 UTC-3, Jose escribió: > > El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro > escribió: >> >> Not yet. It is the queue. > > I've moved the table style to web2py.css and changed the xml generation with helpers to cleanup appadm

[web2py] Re: Merry Christmas everybody!

2012-12-25 Thread Kostas M
+1 --

[web2py] Re: How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread Paolo Caruccio
Il giorno martedì 25 dicembre 2012 19:41:17 UTC+1, Paolo Caruccio ha scritto: > > My simple way: > > a) stop apache server > b) start web2py server in standard way by double clicking web2py.py in > order that it creates its own files > c) in displayed window set the admin password > d) stop web

[web2py] Re: How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread Paolo Caruccio
My simple way: a) stop apache server b) start web2py server in standard way by double clicking web2py.py in order that it creates its own files c) in displayed window set the admin password d) stop web2py server and check that in web2py folder there are "options_std.py" and "parameters_8000.py"

[web2py] Re: How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread Massimo Di Pierro
http://web2py.com/books/default/chapter/29/13#Setting-password On Tuesday, 25 December 2012 08:25:38 UTC-6, at wrote: > > > Hi > > After setting up web2py+apache with wsgi on windows, I can see web2py > admin page at http://localhost/admin/default/index. But it is asking > password to log into t

[web2py] Re: Unable to load module mod_wsgi on Windows

2012-12-25 Thread at
Thanks for the help I've tried the same module with apache 2.2 and it's working now. Downloaded mod_wsgi from here Regards On Monday, 24 December 2012 22:49:18 UTC+5, Paolo Caruccio wrote: > > If you plan to use mod_wsgi 3.4 in apache 2.4 on windows download

[web2py] Re: Merry Christmas everybody!

2012-12-25 Thread Gerd
Frohe Weihnachten und ein gutes neues Jahr! Am Montag, 24. Dezember 2012 19:22:00 UTC+1 schrieb Massimo Di Pierro: > > Merry Christmas everybody! > --

Re: [web2py] Re: Graph Model (proposal to contribute)

2012-12-25 Thread Alan Etkin
> On Tuesday, December 25, 2012 12:45:31 PM UTC-3, Jose wrote: El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro escribió: > > Not yet. It is the queue. > If you are using mercurial trunk with Linux try: web2py path]$ touch NEWINSTALL And restart web2py. I think this i

Re: [web2py] Problem with routing

2012-12-25 Thread Jonathan Lundell
On 25 Dec 2012, at 7:58 AM, elyase wrote: > I have two controllers 'default.py' and 'error.py'. In my website > www.cubadena.com, if I try to access www.cubadena.com/default it correctly > redirects to the index() function inside the default controller, but if I do > the same with www.cubadena.

Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-25 Thread Bhaskar Ramachandran
Great!. Thank you all for the clarification. I will then re-write my code to have SQLFORM or SQLFORM.factory to later be able to inject html into the form. Really appreciate the help . I can now move forward!. Regards, Bhaskar On Tuesday, December 25, 2012 9:43:52 AM UTC-6, Anthony wrote: > >

[web2py] Problem with routing

2012-12-25 Thread elyase
I have two controllers 'default.py' and 'error.py'. In my website www.cubadena.com, if I try to access www.cubadena.com/default it correctly redirects to the index() function inside the default controller, but if I do the same with www.cubadena.com/error/ I get a: Not FoundThe requested URL /e

[web2py] Re: Concurrent HTTP requests (Ajax call blocking other requests)

2012-12-25 Thread Anthony
Yes, you have it right -- you can do session.forget(response) or session._unlock(response) (the former ultimately calls the latter). Anthony On Tuesday, December 25, 2012 3:58:00 AM UTC-5, raphael...@netaxis.be wrote: > > Hello, > > I'm a little confused here... I tried to put your code in the m

Re: [web2py] Re: Graph Model (proposal to contribute)

2012-12-25 Thread Jose
El miércoles, 19 de diciembre de 2012 19:50:53 UTC-3, Massimo Di Pierro escribió: > > Not yet. It is the queue. > Hello Massimo. I saw this and was implemented in the trunk. A new application is created from the welcome folder or from welcome.w2p? I created an application and is not avail

Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-25 Thread Anthony
> But what about the DOM objects like radio buttons, text area etc in the > html ?. When the view file is processed and the response object is working > on it to generate pure HTML , won't it create a DOM tree structure in > memory. ?. > No, if you just hand code the form HTML in the view but

[web2py] Re: Concurrent HTTP requests (Ajax call blocking other requests)

2012-12-25 Thread raphael . benedet
Hello, I'm a little confused here... I tried to put your code in the models (I suppose you mean db.py) as you suggest but it didn't work. Then, I put it in the controller for this AJAX method and it didn't work either. After that, I modified your code to unlock the response instead of the reque

[web2py] Smartgrid question.

2012-12-25 Thread dev . ldhughes
I am using a smartgrid to manage users and include a button that when selected will show a list of groups the user is a member of. I am using the latest release of web2py, v2.3.2 and when I set linked_tables=['auth_membership'] I end up with three buttons, [Auth_memberships(user_id)], [Auth_m

[web2py] How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread at
Hi After setting up web2py+apache with wsgi on windows, I can see web2py admin page at http://localhost/admin/default/index. But it is asking password to log into the administrative interface. How to set a password? Is there any default password for first time entrance? Thanks AT --

Re: [web2py] Re: fall back for memcached to db caching

2012-12-25 Thread Adnan Smajlovic
What I wanted to do is when there is no memcache installed, or something happens to it while running, the application should switch automatically to db sessions, rather than just throw an error. The code I got bellow re-creates the problem, but if I add an extra if notsession : session.connect(req

Re: [web2py] Merry Christmas everybody!

2012-12-25 Thread Martín Mulone
Merry Christmast! 2012/12/25 ゴー・ニコライ > Happy Festivus! > > > On Tuesday, December 25, 2012, Massimo Di Pierro wrote: > >> Merry Christmas everybody! >> >> -- >> >> >> >> > -- > > > > -- http://martinmulone.com.ar --