[web2py:11271] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
P.S. I think it might be nice for web2py to provide some sort of feedback to let the end-user know why the form.accept() call rejected the db insertion. Otherwise, the next time someone runs into this issue they will again have to load the debugger (assuming they have one) to diagnose why they my

[web2py:11270] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
Hi Voltron and Massimo, On Nov 6, 8:10 am, voltron <[EMAIL PROTECTED]> wrote: > SQLField('Jons_blob'    ,  'blob', default = ""), Yes, thank you for that! This worked and fixed the issue. Consequently, I've found an erratum for the web2py manual! :-) The line in the web2py manual on p.220:

[web2py:11269] Re: Contributing: Branches on Launchpad

2008-11-05 Thread Yarko T
and I don't see a branch named ~mdpeirro/web2py/main --- but I _do_ see one called ~mdpierro/web2py/devel strange indeed... Sphinx project this week moved off of SVN to Mercurial, hosting at http://www.bitbucket.org/birkenfeld/sphinx/ Ultimately, it would be nice to have a web2py hosted merc

[web2py:11268] Re: Web2Py Manual Desktop Edition

2008-11-05 Thread ural
Hi ! Today, i want to repeat my request for a copy of the e-manual of the w2py. Please let me know your answer. Thanks On 5 Kasım, 11:03, ural <[EMAIL PROTECTED]> wrote: > unfortunately amazon.com has the normal paper-publıshed book only. > I prefer e-book because of -0- deliverytime at least. >

[web2py:11267] Full text Search for Sqlite and how to include it with Web2py

2008-11-05 Thread Steve Shepherd
Hi Folks Have been doing some extensive reading on Google gears. They include a sqlite utility call fts2 which provides full text search capabilities. Here is the link: http://www.sqlite.org/cvstrac/wiki?p=FtsTwo to the module. Any thoughts on how thiose could be implemented in web2py. The table

[web2py:11266] Re: t2

2008-11-05 Thread seeker
Hi guys, Any chance of adding a chapter to the T2 manual describing the steps/ process/requirements of converting a custom layout file to a T2 compatible layout? Would be nice to have such instructions for converting a layout to a standard Web2Py layout as well. I seem to remember such a descri

[web2py:11265] Some unhandled expections on fcgihandler

2008-11-05 Thread Phyo Arkar
Massimo; When i run web2py in FCGI , there is no visible problem but there are some Socket errors on the background . "Broken pipe" , seems communicatiion terminated before finished and it is not handled. socket.error: (32, 'Broken pipe') Unhandled exception in thread started by > Traceback (mo

[web2py:11264] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread mdipierro
yes On Nov 5, 11:10 pm, voltron <[EMAIL PROTECTED]> wrote: > I think Massimo means this: > > SQLField('Jons_blob', 'blob', default = ""), > > right massimo? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2p

[web2py:11263] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread voltron
I think Massimo means this: SQLField('Jons_blob', 'blob', default = ""), right massimo? --~--~-~--~~~---~--~~ 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@

[web2py:11262] Re: Important typo found in web2py manual

2008-11-05 Thread Jonathan Benn
Hi Massimo, On Nov 5, 7:01 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I think the http header are case independent but anyway, I agree that > should be fixed. It will be in the next verision of the manual. > > Thanks for reporting this. You're welcome. I reported it because Firefox and/or the

[web2py:11261] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
Hi Massimo, On Nov 5, 7:00 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Sorry that is not the proper thing to do. The problem is that some > database do no allow NULL values in blobs. I didn't think it was the correct fix, but it worked! ;) > You just need to make sure that 'blob' files have d

[web2py:11260] T2, Web2py Core? Specs finalized?

2008-11-05 Thread voltron
Has anything been finalized about the draft concepts on the T2 component? The docs still label it as a plugin, and I remember that there was an ongoing discussion about that never ended with final decisions. Another thing, I am somewhat wary if new users are being urged to use T2 in its draft for

[web2py:11259] Re: dataTables in web2py how to.

2008-11-05 Thread voltron
Hello Annet, The steps are simple, but they have to be followed well. 1. Create a copy of the web2py_ajax.html file 2. Reference the datatables plugin from your copy of web2py_ajax.html file 3. Reference the CSS that comes with the plugin too, otherwise the plugin would not worlk 4. The URLs to

[web2py:11258] Re: Contributing: Branches on Launchpad

2008-11-05 Thread mdipierro
Just today my t2 branch got corrupted. I never did a merge. I always commit and push into "main" branch. There is an old "devel" branch that I never use but I do not how to delete from launchpad. Today I tried commit and told me it was not in sync with "main" So I checked out "main" again and it

[web2py:11257] Re: puppy demo

2008-11-05 Thread mdipierro
There was a bug in posted version. I fixed and I am reposting now. Download t2 again in 1h. Also something bad happened to by bzr branch. It got corruped. Hope it is fixed not. Massimo On Nov 5, 9:06 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > Massimo, > > It is a straight copy from your puppy

[web2py:11256] Re: Contributing: Branches on Launchpad

2008-11-05 Thread voltron
I tried HG, the command client, worked well. I dunno. I will try our new versions of the clients if the come out --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, sen

[web2py:11255] Re: Contributing: Branches on Launchpad

2008-11-05 Thread Yarko T
are you talking command line client? It works well enough; some prefer mercurial (that's what Sphinx documentation project just moved to from SVN)... The whole concept of a distributed system (as opposed to SVN) will allow more people to contribute more readily so it's worth these early grow

[web2py:11254] Re: Contributing: Branches on Launchpad

2008-11-05 Thread voltron
As cool as the features for BZR, it is just "pain" for those spoiled by SVN users like me, none of the BZR clients I used worked. I just did not have the time or patience to hack it up till it worked. I do not think its because anyone is afraid of BZR, its just that things work, and work well wit

[web2py:11253] Re: puppy demo

2008-11-05 Thread Wes James
Massimo, It is a straight copy from your puppy demo from your t2.pdf which has http://www.vimeo.com/1790354. I downloaded the t2 plugin and the puppy app - no changes, just started using it. I'm going to follow your demo line for line and see if that works. thx, -wes On Wed, Nov 5, 2008 at 8

[web2py:11252] Re: puppy demo

2008-11-05 Thread mdipierro
send me your packed app and I will look at it. Massimo On Nov 5, 8:56 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > no - i was just look at code on one computer and typing in the laptop > - this code is from his tar file... - it's spelled there fine... > > -wes > > On Wed, Nov 5, 2008 at 6:59 PM,

[web2py:11250] Re: puppy demo

2008-11-05 Thread Wes James
no - i was just look at code on one computer and typing in the laptop - this code is from his tar file... - it's spelled there fine... -wes On Wed, Nov 5, 2008 at 6:59 PM, ceej <[EMAIL PROTECTED]> wrote: > > Could it be you spelled download wrong :) dwonload != download > > Also try taking the s

[web2py:11248] Re: puppy demo

2008-11-05 Thread ceej
Could it be you spelled download wrong :) dwonload != download Also try taking the static decorator away. On Nov 5, 4:03 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > it is from the link on the vimeo demo site web2py.app.puppy.tar > > it has @t2.requires_login(next='login') > def dwonload(): >  

[web2py:11247] Re: Existing forum app

2008-11-05 Thread mdipierro
Correction: # model db.py from applications.plugin_t2.modules.t2 import T2 db=SQLDB('sqlite://storage.db') db.define_table('thread',SQLField('title')) t2=T2(request,response,session,cache,T,db) db.thread.represent=lambda thread: \ A(thread.title,_href=t2.action('thread',thread.id)) #controller

[web2py:11246] Re: web2py will play an important role in Computational Finance?

2008-11-05 Thread tommy
We are at phase I of this project. We built couple of robots to send some orders to the trading system. I think it is not difficult to get the real data from internet. Maybe we can use the RSS to import the data from other websites. Most likely the data has some delay. I will do more research on i

[web2py:11245] Re: Existing forum app

2008-11-05 Thread Yarko T
HI Richard - I wasn't suggesting _doing_ stuff in Django - I was suggesting looking at the code - the data structures should be easy to port, and maybe even some of the logic that has to do with the data... Porting is always interesting. And looking at what others do for end results can be a goo

[web2py:11244] Re: Existing forum app

2008-11-05 Thread mdipierro
You can create a minimalist forum with this code: # model db.py from applications.plugin_t2.modules.t2 import T2 db=SQLDB(...) db.define_table('thread',SQLField('title')) db.thread.represent=lambda thread: A(thread.title,_href=t2.action('thread',thread.id)) t2=T2(request,response,session,cache,T

[web2py:11243] Re: puppy demo

2008-11-05 Thread Wes James
it is from the link on the vimeo demo site web2py.app.puppy.tar it has @t2.requires_login(next='login') def dwonload(): return t2.download() in the puppy/controllers/default.py -wj On Wed, Nov 5, 2008 at 4:55 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > No. PIL is not required. > > Do you

[web2py:11242] Re: puppy demo

2008-11-05 Thread mdipierro
No. PIL is not required. Do you have the action? def download(): return t2.download() Massimo On Nov 5, 5:09 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I'm going through the puppy demo. I installed the puppy app (tar > file) and I can add a picture, but it is not showing. It was a > shift-

[web2py:11241] Re: Existing forum app

2008-11-05 Thread Baron
and I should add - programming with web2py is more pleasant. On Nov 6, 10:52 am, Baron <[EMAIL PROTECTED]> wrote: > hello Yarko, > > suggesting Django on this forum? Blasphemy! > > Thanks for the research but I'm already using web2py for some other > stuff so I don't want to bring in another fra

[web2py:11240] Re: Existing forum app

2008-11-05 Thread Baron
hello Yarko, suggesting Django on this forum? Blasphemy! Thanks for the research but I'm already using web2py for some other stuff so I don't want to bring in another framework because it would make distribution and maintenance harder. Richard On Nov 5, 8:06 pm, "Yarko T" <[EMAIL PROTECTED]>

[web2py:11239] puppy demo

2008-11-05 Thread Wes James
I'm going through the puppy demo. I installed the puppy app (tar file) and I can add a picture, but it is not showing. It was a shift-command-4 grab on a make that mad a png. I converted the png to a jpg in uploaded over the old file, but still no show. Any idea why. PIL is installed on my ma

[web2py:11238] Re: Existing forum app

2008-11-05 Thread Baron
hello, just very basic - users, forums, threads, posts, but nice looking. The chatroom app has users, threads, posts, and a good layout, so it seems mostly there. But you suggest t2? I'll have a look into this. Richard On Nov 5, 6:23 pm, mdipierro <[EMAIL PROTECTED]> wrote: > could you list t

[web2py:11237] Re: t2.display image file

2008-11-05 Thread pmate
Ok, thanks for your kind answers. On Nov 5, 7:54 am, mdipierro <[EMAIL PROTECTED]> wrote: > yes and no. > > {{=t2.include()}} will write the html head part that includes all > requires css and js. They are > >           '/plugin_t2/static/t2/scripts/jquery.js', >           '/plugin_t2/static/t2/s

[web2py:11236] Re: web2py -> irc

2008-11-05 Thread Alfonso de la Guarda
Hi, I use pidign for multi-talk services, including IRC. Right now i am in the channel using it. Saludos, Alfonso de la Guarda COS www.cosperu.com alfonsodg.blogspot.com alfonsodg.wordpress.com Telef. 997550914 On Wed, Nov 5, 2008 at 15:59, Yarko

[web2py:11235] Re: web2py -> irc

2008-11-05 Thread Yarko T
I've used mIRC, but it's "annoy-ware" - after a while they say "pay! pay!" Some one on #chipy suggested xchat, which hooked right up thru my corp firewall... so I'm happy... On Wed, Nov 5, 2008 at 2:56 PM, Phyo Arkar <[EMAIL PROTECTED]> wrote: > For linux / unix , irssi is the coolest > for win

[web2py:11234] Re: web2py -> irc

2008-11-05 Thread Phyo Arkar
For linux / unix , irssi is the coolest for windows mIRC is ok. On Wed, Nov 5, 2008 at 8:30 PM, Yarko T <[EMAIL PROTECTED]> wrote: > Thanks for this, Wes - > I never looked into web based IRC - mibbit seems pretty good; > I checked out http://www.web-irc.org/ > too, but I like that mibbit puts s

[web2py:11233] Re: web2py -> irc

2008-11-05 Thread Yarko T
Thanks for this, Wes - I never looked into web based IRC - mibbit seems pretty good; I checked out http://www.web-irc.org/ too, but I like that mibbit puts something in the tab when people said stuff Cool! Yarko On Wed, Nov 5, 2008 at 1:40 PM, Wes James <[EMAIL PROTECTED]> wrote: > > If yo

[web2py:11232] Re: Possible bug in IS_URL

2008-11-05 Thread Kyle Smith
I don't believe this is entirely correct. Spaces and apostrophes absolutely _should_ be represented in a URL encoded however section 2.2 of the spec discusses unsafe characters and their representations. "Usually a URL has the same interpretation when an octet is represented by a character and wh

[web2py:11231] Re: Cannot import from CSV file

2008-11-05 Thread Phyo Arkar
Thanks! its ok now On Wed, Nov 5, 2008 at 4:03 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > Do you have the first row with the column names? > > > On Nov 5, 6:50 am, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > > Hello all; > > > > Any one tried importing from CSV file? > > > > I got the error unabl

[web2py:11230] web2py -> irc

2008-11-05 Thread Wes James
If you don't want to use an irc client, you can go to mibbit.com and click on the server link and then type in something like irc.freenode.net and type in the nick you want and in the channel box use #web2py then click on Go and come and have a piece of web2py (cherry i guess, i like apple) -wj

[web2py:11229] Re: t2

2008-11-05 Thread Wes James
On Wed, Nov 5, 2008 at 11:58 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > http://mdp.cti.depaul.edu/examples/static/t2.pdf Grazie! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To po

[web2py:11228] Re: t2

2008-11-05 Thread Yarko T
Massimo has an evolving document on http://launchpad.net/t2 You can grab a copy of the current PDF file from the source / doc area current version today is here: http://bazaar.launchpad.net/~mdipierro/t2/main/files/44?file_id=docs-20080922043548-uj1qtzubnbxj3dm6-8 download button is on right

[web2py:11227] Re: t2

2008-11-05 Thread mdipierro
http://mdp.cti.depaul.edu/examples/static/t2.pdf On Nov 5, 12:27 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > where is info on how to use t2 web2py site and google isn't saying > much - i must be blind - do you have a braille version? :) > > -wj --~--~-~--~~~---~--~---

[web2py:11226] Re: GrooverWiki *FIX*

2008-11-05 Thread mdipierro
web2py does some metaprogramming. It adds one line to your default.py before executing it. This is there for backward compatibility of compiled apps. Massimo On Nov 5, 12:46 pm, Christophe Gragnic <[EMAIL PROTECTED]> wrote: > --- En date de : Mer 5.11.08, ceej <[EMAIL PROTECTED]> a écrit : > G

[web2py:11225] GrooverWiki *FIX*

2008-11-05 Thread Christophe Gragnic
--- En date de : Mer 5.11.08, ceej <[EMAIL PROTECTED]> a écrit : Grahack asked me if I could take a look at GrooverWiki and see why he was getting an error on start up, it's because the text fields are blob and need to be text. The fix works for me. Thanks again Ceej. Moreover, the error folder of

[web2py:11224] Re: Some code in Appliance "GeoIP" gives a bad example

2008-11-05 Thread Yarko T
Good catch! Unless you're doing this for simple local testing, this doesn't look like safe practice... On Wed, Nov 5, 2008 at 12:16 PM, Stefan Scholl <[EMAIL PROTECTED]>wrote: > > Hi! > > In controller file default.py: > >data = ZipFile(StringIO(urlopen("http://www.maxmind.com/download/ >

[web2py:11223] Re: Possible bug in IS_URL

2008-11-05 Thread Yarko T
The regular expression for URI in Appendix B, p.28 of http://www.ietf.org/rfc/rfc2396.txt(or http://www.faqs.org/rfcs/rfc2396.html) might be helpful... On Wed, Nov 5, 2008 at 6:25 AM, Jonathan Benn <[EMAIL PROTECTED]>wrote: > > On Nov 5, 3:12 pm, achipa <[E

[web2py:11222] Re: ssl_error_rx_record_too_long

2008-11-05 Thread airdrummer
> What happens if you try getting web2py to bind to port 443 instead of socket.error: (13, 'Permission denied') because ports<1024 are privileged --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "we

[web2py:11221] t2

2008-11-05 Thread Wes James
where is info on how to use t2 web2py site and google isn't saying much - i must be blind - do you have a braille version? :) -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post

[web2py:11220] Re: ssl_error_rx_record_too_long

2008-11-05 Thread airdrummer
> server or the client? client, i think...ffx allows you to accept a self-signed cert... --~--~-~--~~~---~--~~ 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@googl

[web2py:11219] Re: wdgihandler on osx

2008-11-05 Thread Wes James
i'm getting further. In app/controllers/default.py i changed the localhost to a real hostname and changed cas/cas that i had to just cas On Wed, Nov 5, 2008 at 11:14 AM, Wes James <[EMAIL PROTECTED]> wrote: > Where do I put the wsighandler.py? Where ever put it how does it know > where to i

[web2py:11218] Re: server startup invalid url

2008-11-05 Thread airdrummer
fedora 8, ffx 3.0.3 --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTE

[web2py:11217] Some code in Appliance "GeoIP" gives a bad example

2008-11-05 Thread Stefan Scholl
Hi! In controller file default.py: data = ZipFile(StringIO(urlopen("http://www.maxmind.com/download/ geoip/database/GeoIPCountryCSV.zip").read())) data = StringIO(data.read(data.namelist()[0])) while True: chunk = data.readline() if not chu

[web2py:11216] wdgihandler on osx

2008-11-05 Thread Wes James
Where do I put the wsighandler.py? Where ever put it how does it know where to import gluon.main from? I've tried several things, but it is not working. I did finally got RewriteRule ^app($|/.*) http://127.0.0.1:port/app$1 [P] this to kinda work with cas, but when i click on login, i get htt

[web2py:11215] GrooverWiki *FIX*

2008-11-05 Thread ceej
Hi all, Grahack asked me if I could take a look at GrooverWiki and see why he was getting an error on start up, it's because the text fields are blob and need to be text. In your db.py file delete it all and replace with: Here is a pastie of it http://paste.pocoo.org/show/90274/ that might be de

[web2py:11209] Re: Cannot import from CSV file

2008-11-05 Thread mdipierro
Do you have the first row with the column names? On Nov 5, 6:50 am, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > Hello all; > > Any one tried importing from CSV file? > > I got the error unable to parse but when i try it directly via csv module in > normal python it parses well. --~--~-~--~

[web2py:11214] dataTables in web2py how to.

2008-11-05 Thread Christophe Gragnic
--- En date de : Mer 5.11.08, annet <[EMAIL PROTECTED]> a écrit : But what about the , doesn't that mean everything in between this is commented out? It's an HTML comment, not a JS comment. It's here to prevent the browser to display the JS code if it's not JS capable. --~--~-

[web2py:11213] Re: dataTables in web2py how to.

2008-11-05 Thread annet
Massimo, But what about the , doesn't that mean everything in between this is commented out? So basically I could just put my $('#example').dataTable(); line of code right after the $(document).ready(function() { ... in web2py_ajax.html. Annet. --~--~-~--~~~---~--~

[web2py:11211] Re: Wikis, forums, cookbooks - I'm a bit confused

2008-11-05 Thread mdipierro
It is not a technical difficulty. Right now we have some other priorities (about 5 patches in the queue, getting the registration for pycon ready). Moreover the issue of breaking existing links which rank well on google. This list will stay. Launchpad is the preferred hosting. Everything else sho

[web2py:11212] Re: apache and web2py

2008-11-05 Thread mdipierro
There are a lot of examples about this on AlterEgo and config scripts in the manual (including the free chapters posted). On Nov 5, 8:29 am, "Wes James" <[EMAIL PROTECTED]> wrote: > last night i tried to get mod_rewrite to work with web2py - no go. > Same with mod_proxy. I then tried wsgi-py stu

[web2py:11210] Re: dataTables in web2py how to.

2008-11-05 Thread mdipierro
Not everything here is for backward compatibility. popup, fade, collapse and ajax are because one should use the equivalent jquery functions. The rest is necessary to have effects on forms (like the sliding erros, datepicker, clock) and real-time client side validation of forms. On Nov 5, 9:33

[web2py:11208] Re: Important typo found in web2py manual

2008-11-05 Thread mdipierro
I think the http header are case independent but anyway, I agree that should be fixed. It will be in the next verision of the manual. Thanks for reporting this. Massimo On Nov 5, 6:27 am, Jonathan Benn <[EMAIL PROTECTED]> wrote: > On p.220, for this line: > > response.headers['Content-type']=co

[web2py:11207] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread mdipierro
Sorry that is not the proper thing to do. The problem is that some database do no allow NULL values in blobs. You just need to make sure that 'blob' files have default='' On Nov 5, 6:23 am, Jonathan Benn <[EMAIL PROTECTED]> wrote: > Hi all, > > I tried implementing the code seen on p.220 of the

[web2py:11206] Re: upload type

2008-11-05 Thread mdipierro
You can set SQLField('name','upload',uploadfield=False) and deal with the upload manually form=SQLFROMF(db.table) if form.accepts(request.vars): open('whatever','w').write(request.vars.filefield.read()) db(db.table.id==form.vars.id).update_record(name='whetever') On Nov 5, 5:46 am, "Phyo

[web2py:11205] Re: dataTables in web2py how to.

2008-11-05 Thread annet
Denes, Thanks for your reply. One more question though, web2py_ajax.html contains the following element: