[web2py:34263] [RESOLVED] Trying to upload file through flex

2009-10-30 Thread Adi
It works! Thanks. On Oct 21, 6:26 pm, mdipierro wrote: > Try > > db.videodata.insert(flvcopy=db.videodata.flvcopy.store > (request.vars.Filedata.file,'test1.flv')) > > On Oct 21, 2:13 am, Adi wrote: > > > Here's an update: > > > The POST request when seen as text looks like this: > > >

[web2py:34262] Re: web2py update script

2009-10-30 Thread Jonathan Lundell
On Oct 30, 2009, at 8:44 PM, Thadeus Burgess wrote: > I usually just > > svn update && rm -R applications/examples applications/welcome That's cool if you want to update to root; I'm aiming for the release points (with checkpointing). --~--~-~--~~~---~--~~ You

[web2py:34261] Re: Ability to transfere one database to another.

2009-10-30 Thread Jason Brower
Heh, oh yeah. :) Thanks, Jason Brower On Fri, 2009-10-30 at 23:04 -0500, Thadeus Burgess wrote: > db.export_to_csv_file(open('/path/to/file.csv', 'wb')) > > db.import_from_csv_file(open('/path/to/file.csv', 'rb')) > > -Thadeus > > > > > On Fri, Oct 30, 2009 at 10:50 PM, Jason Brower > wrot

[web2py:34260] Re: web2py update script

2009-10-30 Thread Jason Brower
If I had svn that would work. (I haven't checked.) Regards, Jason On Fri, 2009-10-30 at 22:44 -0500, Thadeus Burgess wrote: > I usually just > > svn update && rm -R applications/examples applications/welcome > > -Thadeus > > > > > On Fri, Oct 30, 2009 at 10:33 PM, mr.freeze > wrote: >

[web2py:34259] Re: Ability to transfere one database to another.

2009-10-30 Thread Thadeus Burgess
db.export_to_csv_file(open('/path/to/file.csv', 'wb')) db.import_from_csv_file(open('/path/to/file.csv', 'rb')) -Thadeus On Fri, Oct 30, 2009 at 10:50 PM, Jason Brower wrote: > > I have the unfortunate fact that I have been using sqlite3 for some > time, but my data is getting a little unst

[web2py:34258] Ability to transfere one database to another.

2009-10-30 Thread Jason Brower
I have the unfortunate fact that I have been using sqlite3 for some time, but my data is getting a little unstable. How do I best transfere that data from one database to another without direct access to the admin screens as it is hosted remotely? For right now, I guess my best approach would be

[web2py:34257] Re: web2py update script

2009-10-30 Thread Jason Brower
Yeah, I wish it had it's only little self updater. And the best would be to go back a step as well. Regards, Jason Brower On Fri, 2009-10-30 at 16:36 -0700, Jonathan Lundell wrote: > In case anyone is interested. I use it under OS X, but it ought to > work under any unixalike. Put it in (say)

[web2py:34256] Re: web2py update script

2009-10-30 Thread Thadeus Burgess
I usually just svn update && rm -R applications/examples applications/welcome -Thadeus On Fri, Oct 30, 2009 at 10:33 PM, mr.freeze wrote: > > This is useful. Perhaps worth making a slice? > > http://www.web2pyslices.com/main/default/user/login?_next=/main/slices/make_slice > > > On Oct 30,

[web2py:34255] Re: web2py update script

2009-10-30 Thread mr.freeze
This is useful. Perhaps worth making a slice? http://www.web2pyslices.com/main/default/user/login?_next=/main/slices/make_slice On Oct 30, 6:36 pm, Jonathan Lundell wrote: > In case anyone is interested. I use it under OS X, but it ought to   > work under any unixalike. Put it in (say) update.

[web2py:34254] web2py update script

2009-10-30 Thread Jonathan Lundell
In case anyone is interested. I use it under OS X, but it ought to work under any unixalike. Put it in (say) update.sh in the same directory as web2py/, and run it to: 1. create a snapshot of your current web2py/, renamed to its web2py version 2. download the new source version 3. unzip it

[web2py:34253] 1.70.1 is OUT

2009-10-30 Thread mdipierro
It fixes some problems introduced by new features in 1.69.1. It also includes: - db(...).select().as_dict() - Experimental distributed transactions with mysql, postgresql and firebird - Improved validators - ability to call wsgi apps from actions def index(): return somewsgiapp (requ

[web2py:34252] Re: how to generate absolute url ?

2009-10-30 Thread Alex Fanjul
Thanks Yarko I'll give it a try! Alex F El 30/10/2009 19:58, Yarko Tymciurak escribió: > this is standard RE (although Massimo has added some convenience > forms, I didn't see any used in this thread)... > > Have you tried something like re-try.appspot.com? > > > On 10/30/09, Alex Fanjul wrote:

[web2py:34251] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
I was using Twisted 2.6.2 so I guess the twisted people fixed it. On Oct 30, 4:53 pm, Wes James wrote: > Massimo, > > That fixed it.  Thx for your work on this.  BTW, just before your fix > here I had tried python 2.6.4 and it still had a problem. > > -wes > > On Fri, Oct 30, 2009 at 3:24 PM, md

[web2py:34250] Re: how to disable soft cron when running mod_wsgi daemon

2009-10-30 Thread mdipierro
In wsgihandler.py replace application = ExecuteOnCompletion2(gluon.main.wsgibase, callback) with application = gluon.main.wsgibase You may want to rename this into wsgihandler2.py so it does not get overwritten when you upgrade. On Oct 30, 4:34 pm, Fred wrote: > In my testing, setting noc

[web2py:34249] Re: Google Adsense

2009-10-30 Thread Alex Fanjul
This snippet sounds to me like a great plugin, any volunteer? :-D Alex F El 30/10/2009 16:51, Chris S escribió: > I've apparently got some orphaned HTML tags, so I'll get that all > cleaned up. I'm sure that's what's causing the problem. > > On Oct 30, 10:33 am, Chris S wrote: > >> I'll se

[web2py:34248] Re: Mail.send

2009-10-30 Thread Julio
> I don't think so, if that were the case then I would not be able to send > mail from my local computer either. You mean using your own computer as the mail server? If that is the case then I still think is the RDNS entry, if you look at python's smptlib.py source, it will try to do a socket.ge

[web2py:34247] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread Wes James
Massimo, That fixed it. Thx for your work on this. BTW, just before your fix here I had tried python 2.6.4 and it still had a problem. -wes On Fri, Oct 30, 2009 at 3:24 PM, mdipierro wrote: > > I think I fixed it in trunk. There seems to be a bug in python 2.5 and > python 2.6.1 (fixed in 2.

[web2py:34246] Re: how to disable soft cron when running mod_wsgi daemon

2009-10-30 Thread Fred
In my testing, setting nocron=True in options_std.py or options.py has no effect in the mod_wsgi context. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web

[web2py:34245] Re: how to disable soft cron when running mod_wsgi daemon

2009-10-30 Thread mdipierro
I think nocron=True in options_std.py On Oct 30, 3:46 pm, Fred wrote: > I've set up external cron per the v2 web2py manual and I've got web2py > running (Version 1.68.2 (2009-10-27 13:05:52)) under mod_wsgi daemon > mode.  It looks to me like soft cron is still running in the daemon > process

[web2py:34244] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
I think I fixed it in trunk. There seems to be a bug in python 2.5 and python 2.6.1 (fixed in 2.6.2) that does allow copy_reg.pickle() to register an unpickler that is a staticmethod of the class/object being pickled. I moved the staticmethods outside the class and it works. Let me know if this w

[web2py:34243] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
If I change this: copy_reg.pickle(DALRef, DALRef.__pickler__, DALRef.__unpickler__) to this: copy_reg.pickle(type(DALRef), DALRef.__pickler__, DALRef.__unpickler__) ...it goes a little further but then throws error trying to find __getstate__ in copyreg.py: ProgrammingError: Cannot operate on a c

[web2py:34241] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
The problem is around there. The problem only exists with 2.5 and 2.6.1 not with 2.6.2 and it has to do with serializing DALRef. On Oct 30, 2:22 pm, "mr.freeze" wrote: > Perhaps you should be passing type(DALRef) to copy_reg.pickle instead > of DALRef and also implementing a __getstate__ functio

[web2py:34242] how to disable soft cron when running mod_wsgi daemon

2009-10-30 Thread Fred
I've set up external cron per the v2 web2py manual and I've got web2py running (Version 1.68.2 (2009-10-27 13:05:52)) under mod_wsgi daemon mode. It looks to me like soft cron is still running in the daemon process. How do I shut it off? The options.py file seems to have no effect when using ws

[web2py:34240] Re: Mail.send

2009-10-30 Thread Thadeus Burgess
I don't think so, if that were the case then I would not be able to send mail from my local computer either. I created this test python script, using smtplib. Ran the file on my local machine on the command line. Got the mail in my @gmail account. Uploaded said script to the server, ran it, and n

[web2py:34239] Re: Mail.send

2009-10-30 Thread Wes James
1. would traceroute help? 2. turn the firewall off temporarily for tests then bring back up when done just to see if firewall IS the issue. On Fri, Oct 30, 2009 at 2:25 PM, Julio wrote: > > I think you need to contact the slicehost support folks and ask them > to set RDNS for the new ip to you

[web2py:34238] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-30 Thread Fred
On Oct 22, 7:09 pm, Graham Dumpleton wrote: > >http://www.web2py.com/AlterEgo/default/show/240 > > This page also has wrong information, you shouldn't be setting > WSGIPythonHome. I just changed that page to remove the reference to WSGIPythonHome. When I wrote that page I could not get web2py to

[web2py:34237] Re: Mail.send

2009-10-30 Thread Julio
I think you need to contact the slicehost support folks and ask them to set RDNS for the new ip to your domain, I have a feeling that the external mail server (google?) is trying to rdns your domain (i.e. "is example.com's ip really who it says it is?) and the response is from one of slicehost's d

[web2py:34236] Re: web2py uglyness

2009-10-30 Thread Yarko Tymciurak
...that is self-explanatory (I think 'reload' is too)... On 10/30/09, Alex Fanjul wrote: > > force_reload? its self explanatory. > > El 30/10/2009 14:20, DenesL escribió: >> +1 rename 'force' to 'reload' >> >> > >> >> > > -- > Alejandro Fanjul Fdez. > alex.fan...@gmail.com > www.mhproject.org >

[web2py:34235] Re: Mail.send

2009-10-30 Thread Thadeus Burgess
It really makes no sense to me at all. When running the app locally, with the exact same settings, the email gets delivered. However when placed on my slicehost server, only emails in the same domain name get sent (I can log into the other servers webmail and the email is there) So strange!... I

[web2py:34234] Re: Mail.send

2009-10-30 Thread Thadeus Burgess
Yes. Still the same result, only emails within the same domain get delivered. What is weird is this was all working before the A record switch, which only should effect the root domain, not its subdomains. -Thadeus On Fri, Oct 30, 2009 at 2:34 PM, mr.freeze wrote: > > Have you tried port 587

[web2py:34233] Re: Mail.send

2009-10-30 Thread mr.freeze
Have you tried port 587 on the server? mail.settings.server = mail.example.com:587 On Oct 30, 2:27 pm, Thadeus Burgess wrote: > Also, mail.send() is always returning True. > > -Thadeus > > On Fri, Oct 30, 2009 at 2:25 PM, Thadeus Burgess wrote: > > > Would anybody know why I can send mail using

[web2py:34232] Re: Mail.send

2009-10-30 Thread Thadeus Burgess
Also, mail.send() is always returning True. -Thadeus On Fri, Oct 30, 2009 at 2:25 PM, Thadeus Burgess wrote: > Would anybody know why I can send mail using SMTP through Evolution, yet > when using the exact same credentials for web2py Mail(), email does not get > sent? > > It is quite odd act

[web2py:34231] Mail.send

2009-10-30 Thread Thadeus Burgess
Would anybody know why I can send mail using SMTP through Evolution, yet when using the exact same credentials for web2py Mail(), email does not get sent? It is quite odd actually though. mail.settings.server = mail.example.com:25 mail.settings.sender = "thade...@example.com" mail.settings.login

[web2py:34230] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
Perhaps you should be passing type(DALRef) to copy_reg.pickle instead of DALRef and also implementing a __getstate__ function? copy_reg.pickle(type(DALRef), DALRef.__pickler__, DALRef.__unpickler__) I'm out of my depth but trying to help. On Oct 30, 1:41 pm, "mr.freeze" wrote: > Massimo, do yo

[web2py:34229] Re: web2py uglyness

2009-10-30 Thread Alex Fanjul
force_reload? its self explanatory. El 30/10/2009 14:20, DenesL escribió: > +1 rename 'force' to 'reload' > > > > > -- Alejandro Fanjul Fdez. alex.fan...@gmail.com www.mhproject.org --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[web2py:34228] Re: computed values after register / login

2009-10-30 Thread cpicada
Thank you very much! It does exactly what I needed. After reading your message I came back to "Settings and Messages" in your book (pages 237-241) and it has always been there. You may have won a convert today, although not a brilliant one. cpicada.wordpress.com (aka "blind and slow") On Oct 30,

[web2py:34227] Re: how to generate absolute url ?

2009-10-30 Thread Yarko Tymciurak
this is standard RE (although Massimo has added some convenience forms, I didn't see any used in this thread)... Have you tried something like re-try.appspot.com? On 10/30/09, Alex Fanjul wrote: > > Massimo, the regexp you write is not the 'standard' regular expresions > (for example in htacce

[web2py:34226] Re: how to generate absolute url ?

2009-10-30 Thread Alex Fanjul
Massimo, the regexp you write is not the 'standard' regular expresions (for example in htaccess), is it? Do you know any online tool to check this expressions as this http://gskinner.com/RegExr/ but for your kind of code? Thanks alex f El 30/10/2009 6:33, mdipierro escribió: > Sorry. I misunde

[web2py:34225] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
Massimo, do you get the error on T3 running from trunk? On Oct 30, 12:43 pm, mdipierro wrote: > I understand that but that is fixed in trunk. Please try and I will > release 1.70. > > On Oct 30, 12:05 pm, Wes James wrote: > > > I'm not sure this affecting what is going on.  It is simply logging

[web2py:34224] Re: tinyMCE output being escaped

2009-10-30 Thread mdipierro
Can you email me the app so that I can try reproduce the problem? On Oct 30, 1:28 pm, Nick Jennings wrote: > No one has any ideas about my initial problem? > > On Oct 30, 4:33 pm, Nick Jennings wrote: > > > So, now that we figured out a bug/previously unknown implementation > > detail, any chan

[web2py:34223] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
No one has any ideas about my initial problem? On Oct 30, 4:33 pm, Nick Jennings wrote: > So, now that we figured out a bug/previously unknown implementation > detail, any chance someone can help me with my original problem? > > The HTML data is being stored in the DB correct, as has been > conf

[web2py:34222] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread Wes James
I tried 1.70.1 with snow leopard (python 2.6.1) and leopard (python 2.5.1) and get the same error right now: Traceback (most recent call last): File "/opt/web2py-1.69.1/gluon/main.py", line 486, in wsgibase session._try_store_on_disk(request, response) File "/opt/web2py-1.69.1/gluon/globa

[web2py:34221] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
I get the error with a stock T3 install running from trunk. On Oct 30, 12:43 pm, mdipierro wrote: > I understand that but that is fixed in trunk. Please try and I will > release 1.70. > > On Oct 30, 12:05 pm, Wes James wrote: > > > I'm not sure this affecting what is going on.  It is simply log

[web2py:34220] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
I understand that but that is fixed in trunk. Please try and I will release 1.70. On Oct 30, 12:05 pm, Wes James wrote: > I'm not sure this affecting what is going on.  It is simply logging in > to t3 wiki and the error comes up, there is no record in the session - > plain t3 wiki usage - loggin

[web2py:34219] Re: computed values after register / login

2009-10-30 Thread mdipierro
On Oct 30, 12:05 pm, cpicada wrote: > I just want to know if the built-in authentication system has a hook > somewhere so I can do it easily. > As I said, I am very new to this framework. I am still in the phase in > which I risk reinventing the wheel ten times a day if I don't refrain > from b

[web2py:34218] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
I should point out that it is DALRef.__unpickler__ when called from DALRef.__pickler__ On Oct 30, 12:22 pm, "mr.freeze" wrote: > It's DALRef.__unpickler__ I think.  Fails at line 68 of copy_reg.py : > >         if base is self.__class__: >             raise TypeError, "can't pickle %s objects" %

[web2py:34217] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mr.freeze
It's DALRef.__unpickler__ I think. Fails at line 68 of copy_reg.py : if base is self.__class__: raise TypeError, "can't pickle %s objects" % base.__name__ with these values: "base"= type: "self"= function: "self.__class__"= type: On Oct 30, 12:05 pm, Wes James wrote:

[web2py:34216] Re: Google Adsense

2009-10-30 Thread Chris S
Ah great, that's handy. Apparently while I did have some orphan's my real problem was that I was trying to put it in a block in a table which had a col-span attribute. Apparently that's a bad thing, and it's working great now. Just had to clean up the orphan tags and remove that col-span attri

[web2py:34215] Re: computed values after register / login

2009-10-30 Thread cpicada
I just want to know if the built-in authentication system has a hook somewhere so I can do it easily. As I said, I am very new to this framework. I am still in the phase in which I risk reinventing the wheel ten times a day if I don't refrain from being too "creative". - Is there something like a

[web2py:34214] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread Wes James
I'm not sure this affecting what is going on. It is simply logging in to t3 wiki and the error comes up, there is no record in the session - plain t3 wiki usage - logging in. As I mentioned, this works fine in 1.68.1, go to 1.69.1 and the error shows up. Fran is having the same issue -wes

[web2py:34213] Re: Google Adsense

2009-10-30 Thread mdipierro
try python web2py/scripts/cleanhtml.py /path/to/layout.html it will help you find orphan tags. On Oct 30, 10:51 am, Chris S wrote: > I've apparently got some orphaned HTML tags, so I'll get that all > cleaned up.  I'm sure that's what's causing the problem. > > On Oct 30, 10:33 am, Chris S wr

[web2py:34212] Re: web2py uglyness

2009-10-30 Thread mdipierro
ERRATA^2 The uglyness is back, just encapsulated in local_import (same syntax as proposed). The problem is the orginal implementation does not handle __init__.py properly. Doing so would be too expensive. Massimo On Oct 30, 11:07 am, mdipierro wrote: > ERRATA: > > After more tests > > []

[web2py:34211] Re: web2py uglyness

2009-10-30 Thread mdipierro
ERRATA: After more tests [] > I found and implemented a better way. With the code in trunk we can > now do: > >    d = local_import('a.b.c') > > - it is not based on exec actually I when running on GAE the first version did not work. on GAE it uses execfile. > - it searches in applicaiton

[web2py:34210] Re: Google Adsense

2009-10-30 Thread Chris S
I've apparently got some orphaned HTML tags, so I'll get that all cleaned up. I'm sure that's what's causing the problem. On Oct 30, 10:33 am, Chris S wrote: > I'll see how I can best explain this. > > - Layout.html --- > >     >       >         >           >          

[web2py:34209] Re: tinyMCE output being escaped

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 10:27 AM, mdipierro wrote: > > yes but in the shell remember to do > > db.commit() > > else your transaction may lock the web app and if it locks for too > long it is no good. > really, really no good on a production, live, running system; less of a concern on your

[web2py:34208] Re: how to generate absolute url ?

2009-10-30 Thread akonsu
thanks. this is terrific! in the link i was expecting to see the url generated by the URL method but not the one mapped through routes_out, and was going to criticize this. but instead i see the right url. this has a very good usability. konstantin On Oct 30, 1:33 am, mdipierro wrote: > Sorry.

[web2py:34207] Re: crud and many to many relationship.

2009-10-30 Thread salingrosso
That's a pity! My tutorial for the creation of a cd database begin to be more complex but in some way more interesting! :-) There's a tutorial for the creation of custom widgets? I didn't find much on this topic on the book. :-/ 2009/10/30 mdipierro > > You cannot using crud unless you make you

[web2py:34205] Re: Google Adsense

2009-10-30 Thread Chris S
I'll see how I can best explain this. - Layout.html --- {{title=response.title or 'response.title'}} {{=A(title, _href=URL (request.application,'default','index'))}} {{=response.subt

[web2py:34206] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
So, now that we figured out a bug/previously unknown implementation detail, any chance someone can help me with my original problem? The HTML data is being stored in the DB correct, as has been confirmed, and when I try to display it in the 'show' view, even when using the XML function, it still

[web2py:34204] Re: tinyMCE output being escaped

2009-10-30 Thread mdipierro
yes but in the shell remember to do db.commit() else your transaction may lock the web app and if it locks for too long it is no good. On Oct 30, 10:06 am, Yarko Tymciurak wrote: > On Fri, Oct 30, 2009 at 9:59 AM, Nick Jennings wrote: > > > When I do that I get the ipython console and the act

[web2py:34203] Re: crud and many to many relationship.

2009-10-30 Thread mdipierro
You cannot using crud unless you make your own widget. Massimo On Oct 30, 10:18 am, Doxaliber wrote: > Hello everyone! > - > This is my model: > db.define_table('autori', >     Fi

[web2py:34202] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
aha, good to know, thank you! On Oct 30, 4:06 pm, Yarko Tymciurak wrote: > On Fri, Oct 30, 2009 at 9:59 AM, Nick Jennings wrote: > > > When I do that I get the ipython console and the actual web2py server > > does not start. > > Nick - > > Just to clarify for you, there is nothing wrong with ha

[web2py:34201] Re: Google Adsense

2009-10-30 Thread mdipierro
works for me. Where did you put it exactly? Perhaps is a place hidden by the css? On Oct 30, 9:56 am, Chris S wrote: > I was trying to ad the google search bar from Adsense where I could > search my web2py page with google.  The way it works after running > through setup options you're given a c

[web2py:34200] crud and many to many relationship.

2009-10-30 Thread Doxaliber
Hello everyone! - This is my model: db.define_table('autori', Field('nome_autore', 'string', length=300), Field('bio', 'text')) db.define_table('case_discografiche', Fie

[web2py:34199] Re: tinyMCE output being escaped

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 9:59 AM, Nick Jennings wrote: > > When I do that I get the ipython console and the actual web2py server > does not start. > Nick - Just to clarify for you, there is nothing wrong with having TWO command lines running simultaneously: a server, AND a command line next to

[web2py:34198] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
When I do that I get the ipython console and the actual web2py server does not start. On Oct 30, 3:45 pm, mdipierro wrote: > You need to specify  an appname > > python web2py.py -S appaname -M > > On Oct 30, 9:06 am, Nick Jennings wrote: > > > Oh thats cool! So I started up the web2py server w

[web2py:34197] Re: tinyMCE output being escaped

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 9:45 AM, mdipierro wrote: > > You need to specify an appname > > python web2py.py -S appaname -M > Massimo: You are missing the critical piece in this thread: specifying an appname is what you need if you start a web2py shell from the command line. What Nick has stum

[web2py:34196] Google Adsense

2009-10-30 Thread Chris S
I was trying to ad the google search bar from Adsense where I could search my web2py page with google. The way it works after running through setup options you're given a code snippet to past into any page you want. I figured it would be easy but It's not working 100% for me yet. The code googl

[web2py:34195] Re: web2py uglyness

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 9:44 AM, mdipierro wrote: > > reload is a reserved keyword but ok. I will change this. > ? reload() i s a Python builtin function ... which does what you describe this as doing. I think this is consistent, but more importantly - a "word" that says more clearly what this

[web2py:34194] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread Wes James
What has changed from 1.68.1 to 1.69.1 though to cause this. I'll have to look at my code and see what you are saying. I works fine in 1.68.1 -wes On Fri, Oct 30, 2009 at 8:42 AM, mdipierro wrote: > > You are storing in  session something that cannot go in a session. For > example a recor

[web2py:34193] Re: tinyMCE output being escaped

2009-10-30 Thread mdipierro
You need to specify an appname python web2py.py -S appaname -M On Oct 30, 9:06 am, Nick Jennings wrote: > Oh thats cool! So I started up the web2py server with the -M module: > > python web2py.pl -M > > Then when I went to the python shell I could mess with my db objects: > > In[2]: > post =

[web2py:34192] Re: web2py uglyness

2009-10-30 Thread mdipierro
reload is a reserved keyword but ok. I will change this. On Oct 30, 9:02 am, Yarko Tymciurak wrote: > On Fri, Oct 30, 2009 at 8:20 AM, DenesL wrote: > > > +1 rename 'force' to 'reload' > > +1 on this rename from me also it's just clearer, more explicit, "self > documenting" > > One of my pe

[web2py:34191] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
You are storing in session something that cannot go in a session. For example a record. You can only store in a session a record id, not a record. This is because the record will have changed when the session is retrieved. On Oct 30, 8:59 am, Wes James wrote: > This is what I'm getting now: > >

[web2py:34190] Re: computed values after register / login

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 9:23 AM, cpicada wrote: > > Yes, but it doesn't do exactly what I am looking for. I need to > compute values *before* the registration happens, and in this case it > works at login and only if the user was registered and logged out > already. If I have: > > def f(form): fo

[web2py:34189] Re: computed values after register / login

2009-10-30 Thread cpicada
Yes, but it doesn't do exactly what I am looking for. I need to compute values *before* the registration happens, and in this case it works at login and only if the user was registered and logged out already. If I have: def f(form): form.vars.username='apu' auth.settings.login_onvalidation=f ...

[web2py:34188] Re: tinyMCE output being escaped

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 9:06 AM, Nick Jennings wrote: > > Oh thats cool! So I started up the web2py server with the -M module: > > python web2py.pl -M > > Then when I went to the python shell I could mess with my db objects: > > In[2]: > post = db(db.post.id==1).select()[0] > > Out[2]: > > In[3]:

[web2py:34187] Re: run 2 web2pys with wsgihandler/apache

2009-10-30 Thread Wes James
They are a complete web2py in each folder apache pointing to them with the scriptalias as shown. I access http://host/qpac and it works fine. I access http://host/qpac2 and i get simply "Invalid Request" -wes On Thu, Oct 29, 2009 at 6:33 PM, Graham Dumpleton wrote: > > > > On Oct 30, 9:44 am,

[web2py:34186] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
Oh thats cool! So I started up the web2py server with the -M module: python web2py.pl -M Then when I went to the python shell I could mess with my db objects: In[2]: post = db(db.post.id==1).select()[0] Out[2]: In[3]: print post.body Out[3]: dfsdf sdf sd sdghjfghjfgjh fs kk ' kk;' k' ;;' jkl

[web2py:34185] Re: web2py uglyness

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 8:20 AM, DenesL wrote: > > +1 rename 'force' to 'reload' > +1 on this rename from me also it's just clearer, more explicit, "self documenting" One of my pet-peeves are web2py checkins that say "fixed bug" ugh! I should accelerate getting us to google code and me

[web2py:34184] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread Wes James
This is what I'm getting now: Traceback (most recent call last): File "/opt/web2py-1.69.1/gluon/main.py", line 483, in wsgibase session._try_store_on_disk(request, response) File "/opt/web2py-1.69.1/gluon/globals.py", line 369, in _try_store_on_disk cPickle.dump(dict(self), response.s

[web2py:34183] Re: plugin system again

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 5:35 AM, Jon Romero wrote: > > how about this: > The (main) problem (as I see it) with Massimo's approach is polluting > directories with plugin files (and maybe making it more difficult to > add/remove plugins). > That is just the most obvious issue with that approach...

[web2py:34182] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
Aha, I thought massimo was referring to the python shell which is in the admin interface. When I print the body from the show controller, then view record, this is what comes up on the console: dfsdf sdf sd sdghjfghjfgjh fs kk ' kk;' k' ;;' jklkl;lhjjfghjkfhkfhjkfhjkfhjkfhjkfhjkfh When I view t

[web2py:34181] Re: tinyMCE output being escaped

2009-10-30 Thread Yarko Tymciurak
On Fri, Oct 30, 2009 at 7:16 AM, Nick Jennings wrote: > > I'm very new to python, and not sure how to use the python console. > Thanks for reporting this - it looks like the web-based shell is failing at this (at least in the latest version on launchpad). Try the command line shell for now: $

[web2py:34180] Re: web2py uglyness

2009-10-30 Thread DenesL
+1 rename 'force' to 'reload' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+u

[web2py:34179] Re: computed values after register / login

2009-10-30 Thread mdipierro
yes def f(form): form.vars.two = form.vars.one+1 auth.settigns.login_onvalidation = f and on the right side a function that can computes new form.vars from existing form.vars. On Oct 30, 4:21 am, cpicada wrote: > Is there a way to process the data entered at the register form before > doing th

[web2py:34178] Re: plugin system again

2009-10-30 Thread mdipierro
I think we need something like this, to avoid conflicts. We also need a plugin to contain an optional install script/uninstall script to add and remove items for cron and languages for example. On Oct 30, 5:35 am, Jon Romero wrote: > how about this: > The (main) problem (as I see it) with Massim

[web2py:34177] Re: web2py uglyness

2009-10-30 Thread Timbo
Disregard the first part of my original post. I've looked at your code and you've done the logical thing. But your original email did not state it properly. For the record of those reading: If you have a module that you want to use in applications// modules, with this new addition you can: mo

[web2py:34176] Re: renaming validators

2009-10-30 Thread mdipierro
On Oct 30, 4:32 am, Iceberg wrote: > Glad to know this undocumented convention. I think this is explained in chapter 1 of the book but I may be wrong. > Now I understand better why > Massimo is not eager to do validators' i18n in a class-attribute, > because it tends to mislead developers to

[web2py:34175] Re: image manipulation

2009-10-30 Thread mdipierro
On Oct 30, 4:32 am, Pepe wrote: > Hi, > > i've installed PIL for windows but,  what i have to do? > > have I to copy some files to "modules" folder of my app? > > or i have only to call PIL in the controller with "from PIL import > Image" correct. Assuming you are running from source. > sorr

[web2py:34174] Re: changing a table definition.

2009-10-30 Thread mdipierro
No. This would go after the table definitions (the old table definition). db(db.address.number==None).update(number=0) On Oct 30, 2:40 am, annet wrote: > Massimo, > > > 1) you inserted records that had Null values for number > > As far as I can tell I didn't, because the number field's notnull

[web2py:34173] Re: problems with t3 going from 1.68.1 to 1.69.1

2009-10-30 Thread mdipierro
This is because you are storing in a session something that is not pickable like a row or set of rows. On Oct 30, 2:25 am, Fran wrote: > On Oct 29, 11:15 pm, mdipierro wrote: > > > Fixed in trunk. I had to study to fix this one. > > This is a major problem and calls for a new release asap. If i

[web2py:34172] computed values after register / login

2009-10-30 Thread cpicada
Is there a way to process the data entered at the register form before doing the actual registration? I am looking for a way to add computed values to a user record during registration, login and profile modification. I am sorry if this is a silly question. I am very new to web2py (I have been w

[web2py:34171] Re: Google Groups is Dead

2009-10-30 Thread Timbo
Thank you. Yes I was referring to Google Groups, not a supposed feature of pyForum. -tim On Oct 28, 5:17 pm, Richard wrote: > I think he was meaning that search sucks in Google Groups (not > pyforum). Correct me if wrong. > > On Oct 29, 2:29 am, Julio wrote: > > > - Provides working search-ab

[web2py:34170] Re: web2py uglyness

2009-10-30 Thread Timbo
I like the idea and I am very much against ugliness...however: d = local_import('a.b.c') is way uglier in my book than: import a.b.c as d Asthetics aside, it does not solve the original problem very well. The problem is not being able to do: import c as d when d is in apps/init/modules becau

[web2py:34169] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-10-30 Thread JorgeRpo
Cool contribution ;) I think it is not mandatory, but for the sake of have an order of information, you would do well by posting it also in web2pyslices. On Oct 30, 7:18 am, Jon Romero wrote: > I've made a short tutorial on using CKEditor with > widgets.http://jon.is.emotionull.com/post/227873

[web2py:34168] Re: tinyMCE output being escaped

2009-10-30 Thread Jon Romero
inside your code put: print post.body and then check the console/terminal from which you've started web2py. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py:34167] Using CKEditor for editing text fields (short tutorial) using widgets

2009-10-30 Thread Jon Romero
I've made a short tutorial on using CKEditor with widgets. http://jon.is.emotionull.com/post/227873650/using-widgets-in-web2py-integrating-ckeditor Hope you enjoy it! PS: Also, is this the correct place to announce small hints/tutorials or everything should go directly to web2pyslices? --~--~-

[web2py:34166] Re: tinyMCE output being escaped

2009-10-30 Thread Nick Jennings
I'm very new to python, and not sure how to use the python console. when i bring it up, and try to do anything i get errors i don't understand. I tried to create a post var with: post = db(db.post.id==1).select()[0] which did not work. clearly im missing something fundamental here, and would appr

[web2py:34165] Re: plugin system again

2009-10-30 Thread Jon Romero
how about this: The (main) problem (as I see it) with Massimo's approach is polluting directories with plugin files (and maybe making it more difficult to add/remove plugins). Besides that, I think it is a very easy way to add plugin capabilities to web2py (without changing much of its architectur

[web2py:34164] Re: renaming validators

2009-10-30 Thread Iceberg
Glad to know this undocumented convention. Now I understand better why Massimo is not eager to do validators' i18n in a class-attribute, because it tends to mislead developers to further adjust them and then possibly affect other apps. :-) On Oct30, 11:31am, mdipierro wrote: > There is a reason

  1   2   >