[web2py:25654] Re: html escaping a string

2009-07-04 Thread mdipierro
{{import cgi}} the replace {{=s.title}} with {{=cgi.escape(s.title,True)}} On Jul 4, 8:02 pm, "mr.freeze" wrote: > I am trying to pass a web2py string var that contains quotes, > apostrophes, slashes, etc. to an element's onmouseover  method > ( onmouseover="showTip(this,'{{=s.title}}','{{=s.no

[web2py:25655] Re: proposal: 'close' argument for html helpers

2009-07-04 Thread mdipierro
I do not see why anybody would use helpers this way. the purpose of helpers is not producting HTML code but provide a serverside representation of the DOM. Breaking a into two separate object just breaks the mechanism. Massimo On Jul 5, 12:38 am, Jonathan Lundell wrote: > On Jul 4, 2009, at 4

[web2py:25653] Re: proposal: 'close' argument for html helpers

2009-07-04 Thread Jonathan Lundell
On Jul 4, 2009, at 4:36 PM, Yarko Tymciurak wrote: > this seems obtuse... > > If arguments aren't used in this form of "helpers" then why not just > use the html? (why do you need a helper?) > > I may be missing something. The arguments are used (though not all of them, if close=True). I'll d

[web2py:25652] Re: IDEA: account setup for translations by non admins...

2009-07-04 Thread Jason Brower
Looks like that is what I will use as it would work well with launchpad. Regards, JAson On Sat, 2009-07-04 at 11:34 -0700, Fran wrote: > On Jul 4, 7:09 pm, Jason Brower wrote: > > I have people that would love to translate some of the stuff I am > > working on. But I don't want them to access

[web2py:25651] html escaping a string

2009-07-04 Thread mr.freeze
I am trying to pass a web2py string var that contains quotes, apostrophes, slashes, etc. to an element's onmouseover method ( onmouseover="showTip(this,'{{=s.title}}','{{=s.notes}}');" ) but I need to html escape it first in order to nest it in the javascript quotes. What is the best method? --

[web2py:25650] Re: No ticket issues ?

2009-07-04 Thread Piotr Banaszkiewicz
Hi, I had the same issue (on Linux). I just make a backup of my important apps in applications/ and then removed whole web2py folder. Then I moved my backup to the new web2py 1.65 folder. No problems so far. Regards, Piotr. Dnia sobota 04 lipca 2009 o 16:46:48 Fauché JM napisał(a): > Hello,

[web2py:25649] Re: proposal: 'close' argument for html helpers

2009-07-04 Thread Yarko Tymciurak
this seems obtuse... If arguments aren't used in this form of "helpers" then why not just use the html? (why do you need a helper?) I may be missing something. As for the parameters, if indeed this is of use, why not something like BODY() ... as is now BODY.open(args to your heart's content) B

[web2py:25648] proposal: 'close' argument for html helpers

2009-07-04 Thread Jonathan Lundell
I propose to add a "close" argument to the html helpers (gluon/html.py). 1. If there's no close argument, then the behavior is identical the current code. 2. It's an error to specify close= for a self-closing tag (like ), or to give it a value other than True or False. 3. close=False suppress

[web2py:25647] Re: other frameworks

2009-07-04 Thread mdipierro
I cannot tell about details since it is the first time I hear about it. I just had a quick look. There are many philosophical differences: 1) In page http://glashammer.org/gettingstarted.html#gettingstarted the app calls the libraries, while in web2py, the libraries call the app 2) they have no a

[web2py:25646] DB2 and Informix

2009-07-04 Thread mdipierro
can somebody send me a sample connection string for DB2 ad Informix, for the docs. thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@goog

[web2py:25645] other frameworks

2009-07-04 Thread Tim Michelsen
Hello Massimo, where do you see the main difference design of your framework to Glashammer http://glashammer.org/documentation.html? Best regards, Timmie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:25644] other frameworks

2009-07-04 Thread Tim Michelsen
Hello Massimo, where do you see the main difference design of your framework to Glashammer http://glashammer.org/documentation.html? Best regards, Timmie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:25643] new DAL

2009-07-04 Thread mdipierro
the new DAL is not here yet but we been to write new docs that should be compatible with both the old DAL and the new DAL. So the web2py in trunk allows db=DAL(...) instead of db=SQLDB(...) and db=DAL('gae') instead of db=GQLDB() and Field(...) instead of SQLField(...) is also removes the am

[web2py:25642] Re: proposed patches to welcome application

2009-07-04 Thread mdipierro
Can you email it to me please? On Jul 4, 2:23 pm, Jonathan Lundell wrote: > Two patches for the welcome app. > > The CSS patch makes a clearer distinction between the navigation   > column and the main column. Without it, the "Hello World" text tends   > to visually run into "Authentication". T

[web2py:25641] proposed patches to welcome application

2009-07-04 Thread Jonathan Lundell
Two patches for the welcome app. The CSS patch makes a clearer distinction between the navigation column and the main column. Without it, the "Hello World" text tends to visually run into "Authentication". The border is visually consistent with the rest of the page design, and IMO looks pre

[web2py:25639] Re: IDEA: account setup for translations by non admins...

2009-07-04 Thread Fran
On Jul 4, 7:09 pm, Jason Brower wrote: > I have people that would love to translate some of the stuff I am > working on.  But I don't want them to access my admin interface, nor do > they need to be on my local network.  Is it possible to let others > translate remotely and with accounts that I c

[web2py:25637] IDEA: account setup for translations by non admins...

2009-07-04 Thread Jason Brower
I have people that would love to translate some of the stuff I am working on. But I don't want them to access my admin interface, nor do they need to be on my local network. Is it possible to let others translate remotely and with accounts that I can setup for them (Or that they can setup)? Rega

[web2py:25638] Form technique question

2009-07-04 Thread JohnMc
>From time to time I have the need for a form but I wish to validate one or two lead items before I display the rest of the form for input. The two ways I have approached this are -- 1) Javascript. If the validation is rather simple I use Javascript. I build a custom form with a properly placed ,

[web2py:25640] Re: IDEA: account setup for translations by non admins...

2009-07-04 Thread JohnMc
Jason, Could you not just give them a copy of the language .py file to edit? Set up a ftp virtual directory that points to the web2py language directory and limit the user account there. Could do the same with webdav if its on a windows box. The helper could then see the results in the applicati

[web2py:25636] Re: need an ajax spreadsheet

2009-07-04 Thread mdipierro
something like ... $(document).ready(funciton(){$('#myoptions').hide();}); $('#r0c0').focus(function(){$('#myoptions').show();}); $('#r0c0').blur(function(){$('#myoptions').hide();}); $('#myoptions').change(function(){$('#r0c0').val($('#myoptions').val ()); $('#r0c0').keyup();}) // not sure

[web2py:25635] Re: need an ajax spreadsheet

2009-07-04 Thread Hans
That would work for me. Unfortunately I don't know how to register an event nor do I know how to open a popup. On Jul 4, 5:49 pm, mdipierro wrote: > At this time you cannot do select/option. You would have to register > an onfocus event that opens a popup and when you select a value it > copies

[web2py:25634] Re: GAE error

2009-07-04 Thread mdipierro
On a second look. I think you may be using an old web2py or perhaps an old gaehandler.py On Jul 4, 2:32 am, Vidul Petrov wrote: > Hi, > > Anybody any idea about the following error (it appears only in one > method)? > > E 07-04 12:21AM 09.771 > Traceback (most recent call last): >   File "/base

[web2py:25633] Re: IS_NOT_IN_DB() and no automatic drop box

2009-07-04 Thread mdipierro
The problem is here: db.adres.adressoort.widget=lambda f,v: OptionsWidget.widget(SQLField ('adressoort',db.adressoort,requires=db.adres.adressoort.requires [0]),v) because you are creating a widget for a new temp field that is associated to a table. I understand what you are trying to do. Let me

[web2py:25632] Re: No ticket issues ?

2009-07-04 Thread mdipierro
The second ticket you egt has the form admin.[code]. look into the file applicaitons/admin/errors/[code], the last few lines for an error, and perhaps send me that file. I suspect it is an issue with file permissions. Massimo On Jul 4, 9:46 am, Fauché JM wrote: > Hello, > Since I install 1.65.

[web2py:25631] Re: need an ajax spreadsheet

2009-07-04 Thread mdipierro
At this time you cannot do select/option. You would have to register an onfocus event that opens a popup and when you select a value it copies it in the cell and informs the sever. Doable in about 10 lines of code but a bit tricky. If you do it let me know. On Jul 4, 8:31 am, Hans wrote: > very

[web2py:25630] Re: eStore appliance

2009-07-04 Thread mdipierro
If build anything in this area let us know. I am very much interested. On Jul 4, 7:26 am, gluegl wrote: > With all due respect...http://www.prestashop.com/ (open source) > A Web2Py Prestashop would be a significantly better approach. > > Sincerely, > G --~--~-~--~~~--

[web2py:25629] Re: Is session secure?

2009-07-04 Thread mdipierro
No sessions only live server side On Jul 4, 6:32 am, Fauché JM wrote: > ok,I anderstand,but in URL I think there is only: path/args > Are session values appears in URL ? > Have the user any way to look at or/and setting session.values? > > Thank you > Jean-Marc --~--~-~--~~--

[web2py:25628] Re: GAE error

2009-07-04 Thread mdipierro
It is trying to update some translations file and cannot write on GAE (not allowed). Make sure all strings are translated before deploying on GAE. On Jul 4, 5:34 am, Vidul Petrov wrote: > Actually this happens only in the translation, when I removed some > duplicated records the problem was fixe

[web2py:25627] Re: xhtml vs html

2009-07-04 Thread Jonathan Lundell
On Jul 4, 2009, at 6:03 AM, dlypka wrote: > > The browser can simply indicate the desired format in its request. > If it wants XHTML, it can simply ask for it explicitly. > So web2py can just check the type and serve as requested. > All that may be needed is to devise a new protocol for requestin

[web2py:25626] Re: No ticket issues ?

2009-07-04 Thread Vidul Petrov
Hi, I saw no similar issues on NT 5.0 and above. Are you sure that it's an WEB2PY issue? On Jul 4, 5:46 pm, Fauché JM wrote: > Hello, > Since I install 1.65.0 (for windows) I can't read tickets issues ! > The link for ticket appear ,but when clicking on it, it call another > link for another t

[web2py:25625] No ticket issues ?

2009-07-04 Thread Fauché JM
Hello, Since I install 1.65.0 (for windows) I can't read tickets issues ! The link for ticket appear ,but when clicking on it, it call another link for another ticket(admin one).on so on. Is it a bug ? Am I alone in this case? Jean-Marc --~--~-~--~~~---~--~~ Y

[web2py:25624] Re: need an ajax spreadsheet

2009-07-04 Thread Hans
very nice! how can a cell be made a drop down selection with values from db ? On Jul 3, 10:48 pm, mdipierro wrote: > with that looks like this:http://www.web2py.com/examples/spreadsheet > > On Jul 3, 3:40 pm, mdipierro wrote: > > > sheet['cell_name'].size=4 # is the default. You will have to

[web2py:25623] Re: xhtml vs html

2009-07-04 Thread dlypka
The browser can simply indicate the desired format in its request. If it wants XHTML, it can simply ask for it explicitly. So web2py can just check the type and serve as requested. All that may be needed is to devise a new protocol for requesting the format. On Jul 4, 1:59 am, Jonathan Lundell w

[web2py:25622] Re: eStore appliance

2009-07-04 Thread gluegl
With all due respect... http://www.prestashop.com/ (open source) A Web2Py Prestashop would be a significantly better approach. Sincerely, G --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" gro

[web2py:25621] Re: Python FIPA MAS for Web2PY

2009-07-04 Thread gluegl
Here is an interesting FIPA Compliant MAS agent written in Python using XMPP as the MTP "Message Transfer Protocol" http://spade.gti-ia.dsic.upv.es/ *** http://www.plugcomputer.org/ exciting plug computer project to host your apps... http://www.plugcomputer.org/plugwiki/index.php/Main

[web2py:25620] IS_NOT_IN_DB() and no automatic drop box

2009-07-04 Thread annet
In a validator I combine IS_IN_DB() and IS_NOT_IN_DB. I tried solving the 'no automatic drop box' issue by adding a widget based on an unnamed function: db.define_table('adressoort', db.Field('soort',length=30,default='',notnull=True,unique=True), migrate='adressoort.table') db.adressoo

[web2py:25619] Python FIPA MAS for Web2PY

2009-07-04 Thread gluegl
http://code.google.com/p/pastiche/ Is there a Web2Py FIPA compliant MAS "Multi-Agent-System'? G --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2p

[web2py:25618] Re: Is session secure?

2009-07-04 Thread Fauché JM
ok,I anderstand,but in URL I think there is only: path/args Are session values appears in URL ? Have the user any way to look at or/and setting session.values? Thank you Jean-Marc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[web2py:25617] Re: GAE error

2009-07-04 Thread Vidul Petrov
Actually this happens only in the translation, when I removed some duplicated records the problem was fixed. Strange. On Jul 4, 10:32 am, Vidul Petrov wrote: > Hi, > > Anybody any idea about the following error (it appears only in one > method)? > > E 07-04 12:21AM 09.771 > Traceback (most recen

[web2py:25616] GAE error

2009-07-04 Thread Vidul Petrov
Hi, Anybody any idea about the following error (it appears only in one method)? E 07-04 12:21AM 09.771 Traceback (most recent call last): File "/base/data/home/apps/loadinfo-net/2.334535432559265741/gluon/ restricted.py", line 98, in restricted exec ccode in environment File "/base/data/