[web2py] Re: widget.py: -f folder

2010-08-20 Thread Iceberg
On Aug 13, 11:49 pm, Jonathan Lundell wrote: > Remind me, please, what the function of the -f folder command line option is. > All the other startup method appear to use the location of the startup file > (eg wsgihandler.py). There was a discussion "When and how to use command line option -f FO

[web2py] Re: I fixed a bug in web2py!

2010-08-20 Thread Iceberg
I have to say, good catch, but bad fix from i18n point of view. Your "insert new " (one blank space at the end) string makes all current language translations for "insert new" become broken. As a general rule, please don't insert leading or trailing or any unnecessary space inside a T("blah") conte

[web2py] Re: integrate editarea in application

2010-08-20 Thread KMax
What does mean 'without going through the admin interface' ? Try search TEXTAREA in book? On 20 авг, 23:12, Cory Coager wrote: > How would I integrate editarea in my application without going through > the admin interface?

Re: [web2py] Re: My editor ...

2010-08-20 Thread Jason Brower
As much as I agree I don't. I feel there are a lot of features we could implement in an editor built for Web2Py. I would love to see features like the following: When in a method I can press a key and my browser (or the one built in) would jump to that page. Debug and stepping tools. (They exist,

[web2py] Re: My editor ...

2010-08-20 Thread mdipierro
Anyway... some food for thought... the paned windows can be achieved with jQuery UI plugins. The auto completion features can be provided by the Amy Editor (which is already in web2py admin but disabled because not supported by all browsers). Long term it would be nice to port what Stef has done t

[web2py] Re: oposite to XML operation or how to escape string

2010-08-20 Thread KMax
Yes, thanks. xmlescape(s) - makes tags safe On 20 авг, 17:16, mdipierro wrote: > something like this? > > ''.join(xmlescape(s) for s in t.split('&&')) > > On Aug 19, 11:25 pm, KMax wrote: > > > > > Hello > >  I have a string with '&&' which must be replaced by > >  If I change all && with and

Re: [web2py] Re: My editor ...

2010-08-20 Thread Michele Comitini
pyQt: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtextedit.html http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.html#details Also wxPython: http://docs.wxwidgets.org/stable/wx_wxview.html#wxview they are stable and ported on many platforms 2010/8/21 mdipierro

[web2py] Re: My editor ...

2010-08-20 Thread mdipierro
Qt includes this http://doc.trolltech.com/3.3/qtextbrowser.html would it help? Massimo On Aug 19, 6:04 pm, Stef Mientki wrote: >  On 19-08-2010 22:24, mdipierro wrote:> This is impressive. > thanks > >  I would like to distribute this with web2py (under > > contrib with its own license) > > What

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 21-08-2010 00:42, Alexandre Andrade wrote: > >The wysiwyg html editor is a docked Delphi application, so only suited for > >windows. > > Since Delphi is Pascal language, maybe it can reworked as a Lazarus project well that doesn't solve the problem with the RichView license, ok you could rewri

Re: [web2py] Re: My editor ...

2010-08-20 Thread Alexandre Andrade
>The wysiwyg html editor is a docked Delphi application, so only suited for windows. Since Delphi is Pascal language, maybe it can reworked as a Lazarus project http://www.lazarus.freepascal.org/ 2010/8/19 Stef Mientki > On 19-08-2010 22:24, mdipierro wrote: > > This is impressive. > thanks >

[web2py] polymaps

2010-08-20 Thread mdipierro
http://polymaps.org

[web2py] Re: patch for auth to work with web2py_component ajaxing

2010-08-20 Thread mdipierro
I see the problem. Let me think about your solution. On Aug 20, 3:36 pm, Jurgis Pralgauskis wrote: > hello, by default, if some function needs auth, w2p gives back some > text/html: > When I work with components ajax way, I don't want my content parts to > get mangled with it... > 1) if I am not

[web2py] Re: XML+URL continuing problem

2010-08-20 Thread mdipierro
This was discussed in a separate thread: 1) we changed in order to fix a bug 2) we found that broke backward compatibility and reverted the change 3) we changed again together with other parts of web2py in order to make sure that it does not break backward compatibility People should test it and

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-20 Thread mdipierro
yes and no. For example Michele just send me a new gluon/contrib/login_methods/ oauth10_account.py which provides OAuth 1.0 authentication. It did not affect anything else in web2py and I see no reason from freezing adding features like this. Mariano is working on a PDF library for web2py. Same ar

[web2py] XML+URL continuing problem

2010-08-20 Thread Michael Wolfe
Look at revisions 804, 808, and 811 in web2py's hg repos. R804: URL+XML, and oauth1.0 from Michele === (+6,-3) gluon/html.py === @@ -201,8 +201,8 @@ if regex_crlf.search(url): raise SyntaxError, 'CRLF Injection Detected' -return rewrite.filter_out(url, env) - +return XML(r

[web2py] Re: error when changing field type from float to decimal

2010-08-20 Thread mdipierro
sqlite does not support dropping columns. That prevents the migration from moving the data into a dummy columns to perform the conversion. If you do not have important data in the database I suggest you delete the databases/* files. Else give me some details about the model and I can provide a scr

[web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread mdipierro
With stable {{=XML(URL(...))}}. With the last trunk {{=URL(...)}}. If no major objection this new trunk feature will become stable. On Aug 20, 3:47 pm, Phyo Arkar wrote: > cool > > so =XML(=URL(,,,)) is the way to go? > > On Sat, Aug 21, 2010 at 1:20 AM, mdipierro wrote: > > fixed. ;-) > > > On

[web2py] Should we have a feature freeze and stability maintenance period in future?

2010-08-20 Thread Phyo Arkar
Like some projects , (what i saw is KDE4) should we go into Feature Freeze period? Well lets say , when web2py hit 1.90 version , stop developing about new features and we will go into -bug-squishing-contest , -Stress test, Test everything , try to crash web2py etc. -fix bugs, fix performance issu

[web2py] Re: error when changing field type from float to decimal

2010-08-20 Thread Philip
I am using SQLite. Thanks, Philip On Aug 17, 5:54 pm, mdipierro wrote: > The problem is that web2py relies on the database to perform the data > conversion. Which database do you use? > > Massimo > > On Aug 17, 4:38 pm, Philip wrote: > > > > > I have an application that is up and running (which

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Phyo Arkar
cool so =XML(=URL(,,,)) is the way to go? On Sat, Aug 21, 2010 at 1:20 AM, mdipierro wrote: > fixed. ;-) > > On Aug 20, 12:25 pm, Jonathan Lundell wrote: > > On Aug 20, 2010, at 10:17 AM, mdipierro wrote: > > > > > I did as you suggest. I also had to add lower(), upper() and __len__ > > > meth

[web2py] patch for auth to work with web2py_component ajaxing

2010-08-20 Thread Jurgis Pralgauskis
hello, by default, if some function needs auth, w2p gives back some text/html: When I work with components ajax way, I don't want my content parts to get mangled with it... 1) if I am not logged in, it would flood my tiny content area with big login page clone :) 2) in my case, I want my current c

Re: [web2py] Facebook oauth

2010-08-20 Thread Michele Comitini
Hello Narendran, Do not use that it is old.. now facebook is supported inside web2py distribution with oauth20_account.py you can find an example app here: http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloFacebook for a simple example usage of graph api

[web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread mdipierro
fixed. ;-) On Aug 20, 12:25 pm, Jonathan Lundell wrote: > On Aug 20, 2010, at 10:17 AM, mdipierro wrote: > > > I did as you suggest. I also had to add lower(), upper() and __len__ > > methods to the XML class. > > I think this is a good solution. Thanks Jonathan. > > oops: > > +    def upper(self

[web2py] Facebook oauth

2010-08-20 Thread Narendran
Hello all, I picked the Facebook oauth submitted by mcm from https://code.google.com/r/michelecomitini-facebookaccess/source/browse/gluon/contrib/login_methods/facebook_account.py (referred in this thread: http://groups.google.com/group/web2py/browse_thread/thread/be441047bf237f9/6ea33cf0d4bfba63?

[web2py] Re: Plugin example

2010-08-20 Thread mdipierro
Please use the {{=plugin_wiki.widget('comments',)}} from plugin wiki instead. On Aug 20, 10:50 am, "lddn...@gmail.com" wrote: > I try the plugin comments example but it loads the content 2 times in > the same page. Dont know how to remove it.

[web2py] Plugin example

2010-08-20 Thread lddn...@gmail.com
I try the plugin comments example but it loads the content 2 times in the same page. Dont know how to remove it.

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Jonathan Lundell
On Aug 20, 2010, at 10:17 AM, mdipierro wrote: > I did as you suggest. I also had to add lower(), upper() and __len__ > methods to the XML class. > I think this is a good solution. Thanks Jonathan. oops: +def upper(self): +return str(self).lower() > > Massimo > > On Aug 20, 11:3

[web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread mdipierro
I did as you suggest. I also had to add lower(), upper() and __len__ methods to the XML class. I think this is a good solution. Thanks Jonathan. Massimo On Aug 20, 11:31 am, Jonathan Lundell wrote: > On Aug 20, 2010, at 9:22 AM, Jonathan Lundell wrote: > > > On Aug 19, 2010, at 6:38 PM, mdipierr

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 12:54, Martin.Mulone wrote: > in linux gwibber use http://code.google.com/p/pywebkitgtk/, I think > you are right, there is no good way to support windows/linux/mac. I think webkit might be a good replacement. > Any > chances that you make the movie, in format movie and upload to >

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Jonathan Lundell
On Aug 20, 2010, at 9:22 AM, Jonathan Lundell wrote: > On Aug 19, 2010, at 6:38 PM, mdipierro wrote: > >> In trunk, I modified the definition of URL so that it returns the >> XML(..) helper wrapping the string. This will prevent >> >> {{=URL(...)}} >> >> from double escaping but will prevent yo

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Jonathan Lundell
On Aug 19, 2010, at 6:38 PM, mdipierro wrote: > In trunk, I modified the definition of URL so that it returns the > XML(..) helper wrapping the string. This will prevent > > {{=URL(...)}} > > from double escaping but will prevent you from doing > > 'http://127.0.0.:8000'+URL(..) Couldn't this

[web2py] integrate editarea in application

2010-08-20 Thread Cory Coager
How would I integrate editarea in my application without going through the admin interface?

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Jonathan Lundell
On Aug 20, 2010, at 8:29 AM, mdipierro wrote: > I changed and changed back. I am waiting for comments form other > developers. I am not sure what the best course of action is. What's an example of the framework breakage using the helper form of URL? > > Massimo > > On Aug 20, 8:23 am, Phyo Ar

[web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread mdipierro
I changed and changed back. I am waiting for comments form other developers. I am not sure what the best course of action is. Massimo On Aug 20, 8:23 am, Phyo Arkar wrote: > So the way it worked before was a bug and now (rev 853) it is a feature? > > On 8/20/10, mdipierro wrote: > > > On a seco

[web2py] Re: Trying to multiprocess

2010-08-20 Thread mdipierro
No problems but be careful that if a user request triggers the creation of a process you must have some mechanism to prevent proliferation of these processes else they eat memory and can cause a memory leak. Consider the web server may also kill the parent process and you have no control. On Aug 2

[web2py] Re: strange problem

2010-08-20 Thread Richard Vézina
Ok, I made a few more check and I am pretty sure it coming from web2py version... Do we lost this cause of list:integer, list:reference, etc.?? Richard 2010/8/20 Richard Vézina > Wrong report... I made some other test and I don't get anymore the > highlighted multiselection with crud.update...

[web2py] Re: strange problem

2010-08-20 Thread Richard Vézina
Wrong report... I made some other test and I don't get anymore the highlighted multiselection with crud.update... I change of version recently (1.81.4 -> 1.83.2). I look in my older app version and I have the highlighted multiselection with crud.update... Not sure if it comes from my app or the w

Re: [web2py] Re: currval psycopg2.OperationalError CLOSED

2010-08-20 Thread Richard Vézina
I just test the trunk, the problem it gone! Thank a lot. Regard Richard 2010/8/20 Richard Vézina > I will have a look at it and coming back to close the thread. > > Thanks > > Richard > > 2010/8/19 mdipierro > > It is a bug. Now fixed in trunk. Please give it a try. >> >> On Aug 19, 4:38 pm,

Re: [web2py] Re: currval psycopg2.OperationalError

2010-08-20 Thread Richard Vézina
I will have a look at it and coming back to close the thread. Thanks Richard 2010/8/19 mdipierro > It is a bug. Now fixed in trunk. Please give it a try. > > On Aug 19, 4:38 pm, Richard Vézina > wrote: > > Here the w2p model : > > > > db.define_table('table1', > > Field('table1_id','id'),

[web2py] strange problem

2010-08-20 Thread Richard Vézina
Hello Massimo, I face a new problem. I have a postgresql text field that serves to store a multiple referenced id. I don't use jquery plugin or anything else in my form to make the selection of the element (only CTRL+mouse clic over the representation of the id in the nav). No problem when the fie

Re: [web2py] Re: Automatic Translator

2010-08-20 Thread Alfonso de la Guarda
Hello, Just updated the version to 0.86, which fix a bug when text formatting expresions are inside the dictionary. Saludos, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net    Telef. 991935157 1024D/B23B24A4 5469 ED92 75A

[web2py] Re: auth.settings.retrieve_password_next not being honoured

2010-08-20 Thread Adi
Tried both. No change. I think retrieve_password is the form where an email to reset password is sent. After sending the mail I want to go to my own controller function. On Aug 20, 4:26 pm, mdipierro wrote: > I think you want to set reset_password_next > > auth.settings.retrieve_password_next >

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 12:20, mdipierro wrote: >> No, and as I use commercial libs, I'm not even allowed to make a dll, >> so I created an exe, which behaves more like a dll than like a exe ;-) > does the license allows you to make an exe but not a dll? Which > libraries are commercial? forgot to say, I ju

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 12:20, mdipierro wrote: >> No, and as I use commercial libs, I'm not even allowed to make a dll, >> so I created an exe, which behaves more like a dll than like a exe ;-) > does the license allows you to make an exe but not a dll? I'm not sure about a DLL, but I meant an ActiveX comp

[web2py] OAuth1.0a authentication preliminary support

2010-08-20 Thread Michele Comitini
Hello, Just to inform that it is possible to use web2py to make OAuth1.0a consumer applications! for instance you should be able to use it for twitter and linkedin. A scaffold install on GAE is available for you to test vs OAuth Sandbox (a conformance test): http://grafbook.appspot.com/helloOAuth

Re: [web2py] Re: Bug in URL(..,..,vars={})

2010-08-20 Thread Phyo Arkar
So the way it worked before was a bug and now (rev 853) it is a feature? On 8/20/10, mdipierro wrote: > On a second thought we should leave it alone. Else we break the > scaffolding app, i.e. 90% os apps out there.. Anyway,... I'd still > like to hear your opinions. > > On Aug 19, 8:38 pm, mdipie

Re: [web2py] Re: Trying to multiprocess

2010-08-20 Thread Phyo Arkar
i use with subprocess.Popen(shell=False) and it works fine tho, can you point me what are the problems? i really need to call commands from web2py so what i should use ? On 8/20/10, mdipierro wrote: > You should not use subprocess in a web2py application (if you really > need too, look into the

[web2py] Re: Trying to multiprocess

2010-08-20 Thread mdipierro
You should not use subprocess in a web2py application (if you really need too, look into the admin/controllers/shell.py) but you can use it in a web2py program running from shell (web2py.py -R myprogram.py). Massimo On Aug 20, 7:01 am, Phyo Arkar wrote: > well > > lets say i have about a thounsa

[web2py] Re: list:reference not working

2010-08-20 Thread Donut
The problem was my web2py version. This feature is in v1.83.2, not v1.81.4. On Aug 19, 2:17 pm, Donut wrote: > I had posted this question on stackoverflow.com but haven't gotten a > response as quick as I'd like. I figured this may be a more > appropriate place to post the question. > > I am tryi

[web2py] Trying to multiprocess

2010-08-20 Thread Phyo Arkar
well lets say i have about a thounsand files to be proccessed .. i need to extract text out of them , whatever file type it is (i use Linux "strings") command . i want to do in multi processed way , which works on multi-core pcs too. this is my current implementation : import subprocess,shlex

[web2py] Re: communication between view and controller

2010-08-20 Thread mdipierro
will look at it asap. On Aug 20, 6:15 am, David Waldrop wrote: > The application is attached.  Also, I sent a previous email asking if you > knew of a consultant/mentor in the DC area.  I feel I have a very solid > grasp on the concept and UX, but am not able to implement very efficiently. >  The

[web2py] Re: auth.settings.retrieve_password_next not being honoured

2010-08-20 Thread mdipierro
I think you want to set reset_password_next auth.settings.retrieve_password_next On Aug 20, 6:01 am, Adi wrote: > Hi, > > I'm setting auth.settings.retrieve_password_next = my_custom_url so > that after sending out reset password mail, the my_custom_url page > should open. However, web2py is tak

[web2py] Re: Login form for mobile web access

2010-08-20 Thread Adi
I've realized re-using code becomes quite a hastle - for example if you use 2 or 3 column layout for web, 1 column layout works best for mobile. I've created new controller and views to be shown on the mobile (even if they are duplicated), and use redirect() and auth.settings.myfunction_next where

[web2py] auth.settings.retrieve_password_next not being honoured

2010-08-20 Thread Adi
Hi, I'm setting auth.settings.retrieve_password_next = my_custom_url so that after sending out reset password mail, the my_custom_url page should open. However, web2py is taking user to default/index. Any help?

[web2py] Re: web2py russian group

2010-08-20 Thread Martin.Mulone
welcome! On 20 ago, 01:07, KMax wrote: > Thank you professor for announce. > > äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × ÇÒÕÐÐÕ. > > On 20 Á×Ç, 09:24, mdipierro wrote: > > > > > There is a web2py group in russian. > > >http://groups.google.ru/group/web2py_russian > > > If you are the owner please let me know and I wil

[web2py] Re: My editor ...

2010-08-20 Thread Martin.Mulone
in linux gwibber use http://code.google.com/p/pywebkitgtk/, I think you are right, there is no good way to support windows/linux/mac. Any chances that you make the movie, in format movie and upload to youtube?. On 20 ago, 05:08, Stef Mientki wrote: >  On 20-08-2010 04:36, dlin wrote:> Instead of

[web2py] Re: communication between view and controller

2010-08-20 Thread mdipierro
Would you email me a copy of this application (confidentially). I will take a look. On Aug 18, 8:15 pm, "david.waldrop" wrote: > I am making some customizations to the tagging plugin and am having a > problem.  See the code below: > > > {{=form.custom.begin}} > > > > {{for link in links:}} >

[web2py] Re: Login form for mobile web access

2010-08-20 Thread mdipierro
You cannot have extend in a conditional but you can have {{extend layout}} and in controller or model: if phone.screensize < 100: lauout='layout100.htm;' elif phone.screensize < 200: layout='layout200.html' else: layout='layout.html' On Aug 20, 5:38 am, Jason Brower wrote: > I buil

Re: [web2py] Re: Detecting mobile devices

2010-08-20 Thread Jason Brower
This program uses pywurfl. Say it in the documentation. Good lookup. I will have to read what they do as well. BR, Jason On Thu, 2010-08-19 at 22:50 -0700, Adi wrote: > Nice, thanks! > > By the way I just tested mobile.sniffer: > http://pypi.python.org/pypi/mobile.sniffer/0.1.1 > > So far it

Re: [web2py] Login form for mobile web access

2010-08-20 Thread Jason Brower
I built it ina a way that the phones had the same content but a different page. So you can use an if statement in the view (or the controller if you wanted) if phone.screensize < 100: {{extend 'layout100.html'}} elif phone.screensize < 200: {{extend 'layout200.html'}} else: {{extend 'layout.html'}

[web2py] Re: communication between view and controller

2010-08-20 Thread david.waldrop
The original problem still exists AND I now have a similar problem in another view. I am unsure of how the views communicate with their controller (or another one). Today I have decided to immerse myself into JQuery as it is the only path I am unfamiliar with and have not tried. I still am very

[web2py] Re: My editor ...

2010-08-20 Thread mdipierro
> No, and as I use commercial libs, I'm not even allowed to make a dll, > so I created an exe, which behaves more like a dll than like a exe ;-) does the license allows you to make an exe but not a dll? Which libraries are commercial?

[web2py] Re: oposite to XML operation or how to escape string

2010-08-20 Thread mdipierro
something like this? ''.join(xmlescape(s) for s in t.split('&&')) On Aug 19, 11:25 pm, KMax wrote: > Hello >  I have a string with '&&' which must be replaced by >  If I change all && with and XML it, it could miss other html > tag in a string >  I could join  ''.join(DIV(substr)), but I do n

[web2py] Login form for mobile web access

2010-08-20 Thread David Marko
I'm working on mobile access to my web app built on web2py. I'm using mobile.sniffer to detect mobile platform(which works quite well btw.) but I'm not sure how to switch login form based on this detection. (I need more simple login form than for standard web browser access) Any hint on this? Dav

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 04:36, dlin wrote: > Instead of using wx, I suggest to try QT, that's will let it portable, > and there is solution for webkit+qt. > That's will let it more portable between windows/linux/mac AFAIK, webkit is also supported under wxPython, (I'm sure it's for Mac), and it should also

Re: [web2py] My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 07:46, Jason Brower wrote: > SSH can do a graphical connection, so to say, from a server to a client. > It's very nice for stuff like this. > We could try it in wine. :P >From other experiments, I think it'll probably runs flawless in wine. > I use a delphi windows program in linux

Re: [web2py] Re: My editor ...

2010-08-20 Thread Stef Mientki
On 20-08-2010 03:24, dlin wrote: > It's so cool. thanks, > I often use linux & vim. > But, I think that will let my colleagues happy to work with windows. > And your slide is also very cool (what's tool you use?) I used a rather old version of wink: http://www.debugmode.com/wink/ cheers, Stef > O