[web2py:25615] Re: xhtml vs html

2009-07-03 Thread Jonathan Lundell
On Jul 3, 2009, at 8:20 PM, mdipierro wrote: > > You clearly know about this more than I do. I'm hoping there are people on this list who know more than either of us. > For legacy issues we cannot change the content-type: text.html but we > can change the in the scaffolding app. I ask only

[web2py:25614] second life users?

2009-07-03 Thread mdipierro
I made a Second Life gadget that can talk to web2py so you can write a web2py app to talk to people in Second Life. If anybody is interested let me know. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2p

[web2py:25613] Re: eStore appliance

2009-07-03 Thread mdipierro
Not sure that works. I never tried it. eStore works with google checkout and that is more solid than paypal massimo On Jul 3, 11:20 pm, suiato wrote: > just restarted to work on eStore yesterday, trying to use it as a > reference for one of my projects. > it's a good and useful example for me t

[web2py:25612] Re: web2py function to pretty-print HTML (for insertion into AMY or TEXTAREA)?

2009-07-03 Thread dlypka
I found BeautifulSoup to do it. On Jul 3, 9:51 am, dlypka wrote: > If I load some raw HTML into  eamy or a simple TEXTAREA, I need to > have it pretty-printed first, to avoid the long lines which mess up > the display. > I see there are various python libaries to do this. > > But does web2py alr

[web2py:25611] Re: eStore appliance

2009-07-03 Thread suiato
just restarted to work on eStore yesterday, trying to use it as a reference for one of my projects. it's a good and useful example for me to learn translation and system in web2py. Google checkout for merchants is still not available in countries other than US and UK, though its application pages

[web2py:25610] Re: xhtml vs html

2009-07-03 Thread mdipierro
You clearly know about this more than I do. For legacy issues we cannot change the content-type: text.html but we can change the in the scaffolding app. As long as there are no major objections I say we should follow your advice. I look forward to your html patches. ;-) Massimo On Jul 3, 9:19 p

[web2py:25609] xhtml vs html

2009-07-03 Thread Jonathan Lundell
By way of background, web2py generates xhtml pages, with these doctypes (I'm not clear on why one or the other is chosen; perhaps someone could enlighten me): http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " The problem is, web2

[web2py:25608] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
On Jul 3, 7:33 pm, Jonathan Lundell wrote: > On Jul 3, 2009, at 5:26 PM, mdipierro wrote: > > > Thank you. I will fix this as soon as I have time although this is not > > a priority since it is only an example app BUT if you find other > > similar problems in admin or examples or welcome and co

[web2py:25607] Re: need an ajax spreadsheet

2009-07-03 Thread Jonathan Lundell
On Jul 3, 2009, at 5:26 PM, mdipierro wrote: > Thank you. I will fix this as soon as I have time although this is not > a priority since it is only an example app BUT if you find other > similar problems in admin or examples or welcome and could submit a > patch that would be excellent. Glad to.

[web2py:25606] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
Thank you. I will fix this as soon as I have time although this is not a priority since it is only an example app BUT if you find other similar problems in admin or examples or welcome and could submit a patch that would be excellent. Massimo On Jul 3, 7:19 pm, Jonathan Lundell wrote: > On Jul

[web2py:25605] Re: need an ajax spreadsheet

2009-07-03 Thread Jonathan Lundell
On Jul 3, 2009, at 4:55 PM, mdipierro wrote: > > Actually we try be compliant. whete is the empty form? there should > not be any. Here's the entire report: http://validator.w3.org/check?uri=http://www.web2py.com/examples/spreadsheet Among other things, the tag requires a valid type, and the

[web2py:25604] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
Actually we try be compliant. whete is the empty form? there should not be any. On Jul 3, 6:17 pm, Jonathan Lundell wrote: > On Jul 3, 2009, at 1:48 PM, mdipierro wrote: > > > > > with that looks like this:http://www.web2py.com/examples/spreadsheet > > I'm new to the web2py game, so pardon me if

[web2py:25603] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread mdipierro
it is the same as for define_table() it applies to all tables created by define_tables() On Jul 3, 4:59 pm, Mico Siahaan wrote: > Massimo, thanks it solved. Actually what is 'migrate' parameter > purpose in define_tables function? > > regards, > > > > On Fri, Jul 3, 2009 at 8:49 PM, mdipierro wr

[web2py:25602] Re: Is session secure?

2009-07-03 Thread mdipierro
That is the point. security should not depend on the history but on the state of the user. Even you do not redirect the user there, nothing prevents the user from editing the url. On Jul 3, 5:24 pm, Fauché JM wrote: > Sorry, when session.group='Public' it never redirect on sas because in > code

[web2py:25601] Re: need an ajax spreadsheet

2009-07-03 Thread Jonathan Lundell
On Jul 3, 2009, at 1:48 PM, mdipierro wrote: > > with that looks like this: http://www.web2py.com/examples/spreadsheet I'm new to the web2py game, so pardon me if this is a settled question. I'm wondering whether you wouldn't want to try to do stuff like this in an (x)html-compliant manner. N

[web2py:25600] Re: External Libraries...

2009-07-03 Thread Yarko Tymciurak
On Fri, Jul 3, 2009 at 3:54 PM, JohnMc wrote: > > "You code below is correct, you just have to make sure the libraries > are in the search path." > > Right as always, Massimo is. However I did not feel comfortable > flopping around in web2py.py. So after a little research I redicovered > the pyth

[web2py:25599] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread Fran
On Jul 3, 10:59 pm, Mico Siahaan wrote: > Massimo, thanks it solved. Actually what is 'migrate' parameter > purpose in define_tables function? It allows you to auto-create the database & alter column definitions. F --~--~-~--~~~---~--~~ You received this message

[web2py:25598] Re: Is session secure?

2009-07-03 Thread Fauché JM
Sorry, when session.group='Public' it never redirect on sas because in code : form=...choice of a group in [auth_membership+'Public'] if form.accepts(request.vars,session): session.group=form.vars.group_choice if session.group != 'Public': redirect(URL(r=request,f='sas')) --~--~--

[web2py:25597] Re: Is session secure?

2009-07-03 Thread Fauché JM
In fact the 'Public' group don't exist in db.auth_membership (it is a 'virtual group' and can't be created) when trying my code it works and if session.group='Public' the user is redirect by "auth.on_failed_authorization"... But is it secure to use a session.variable in @auth.requires_membership

[web2py:25596] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread Mico Siahaan
Massimo, thanks it solved. Actually what is 'migrate' parameter purpose in define_tables function? regards, On Fri, Jul 3, 2009 at 8:49 PM, mdipierro wrote: > > Haha! > >> Then using phpmyadmin I create user, and create database happo. > > but you did not set > > auth.define_tables(migrate=False

[web2py:25595] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread mdipierro
Can I ask you to make an alterego entry about this? On Jul 3, 4:41 pm, gluegl wrote: > Pylons and CouchDB Integration and other Python<->CouchDB > linkshttp://code.google.com/p/couchdb-python/http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-t...http://pylab.blogspot.com/searc

[web2py:25594] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread gluegl
Pylons and CouchDB Integration and other Python<->CouchDB links http://code.google.com/p/couchdb-python/ http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-than.html http://pylab.blogspot.com/search/label/couchdb http://chrismoos.com/2009/02/21/couchdb-and-pylons-user-registratio

[web2py:25593] Re: Is session secure?

2009-07-03 Thread mdipierro
It depends on the missing code but I do not think it is secure because this @auth.requires_membership(session.group) will work even if session.group='Public' On Jul 3, 4:30 pm, Fauché JM wrote: > hello, > In my application I have a function with Public and Privates ways, > Do you think it is s

[web2py:25592] Is session secure?

2009-07-03 Thread Fauché JM
hello, In my application I have a function with Public and Privates ways, Do you think it is secure to do like this: def index(): if not session.group:session.group='Public' redirect(URL(r=request,f='function')) return dict() def fonction(): ... if session.group=='Public':

[web2py:25591] Re: requires_login with registration

2009-07-03 Thread mdipierro
It is not a bug. It is a hook to create cas methods. Look into the docstring for gluon/contrib/login_methods/ gae_google_account.py Massimo On Jul 3, 3:58 pm, DenesL wrote: > That is what I have been doing but I am slow getting it. > > Line 814 in tools.py says: >   cas_user = cas.get_user() >

[web2py:25590] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
please download it again. The first version I posted had a security issue. On Jul 3, 3: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 change

[web2py:25589] Re: requires_login with registration

2009-07-03 Thread DenesL
That is what I have been doing but I am slow getting it. Line 814 in tools.py says: cas_user = cas.get_user() Do I have to define a get_user function or is that a bug and it should say cas_user = cas.get_or_create_user() --~--~-~--~~~---~--~~ You received t

[web2py:25588] Re: External Libraries...

2009-07-03 Thread JohnMc
"You code below is correct, you just have to make sure the libraries are in the search path." Right as always, Massimo is. However I did not feel comfortable flopping around in web2py.py. So after a little research I redicovered the python .pth file. I added a lxml.pth file to .../site-packages p

[web2py:25587] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
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 change it > for every cell or change it in sheet.py > Here is a much better index html that makes it look more like Excel: > >

[web2py:25586] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
I do not know. It is a problem with download. On Jul 3, 3:19 pm, Fran wrote: > On 3 July, 18:17, Yarko Tymciurak wrote: > > > My spreadsheet.tar is 65798 bytes; > > Same here with fresh download (correct .w2p extension now) > > > Here are some checksums: > > $ ls -l sp* > > -rw-rw-r--. 1 yak007

[web2py:25585] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
sheet['cell_name'].size=4 # is the default. You will have to change it for every cell or change it in sheet.py Here is a much better index html that makes it look more like Excel: {{extend 'layout.html'}} /* the code in this page is here just to provide an example none of the css markup

[web2py:25584] Re: need an ajax spreadsheet

2009-07-03 Thread Yarko Tymciurak
On Fri, Jul 3, 2009 at 3:19 PM, Fran wrote: > > On 3 July, 18:17, Yarko Tymciurak wrote: > > My spreadsheet.tar is 65798 bytes; > > Same here with fresh download (correct .w2p extension now) > > > Here are some checksums: > > $ ls -l sp* > > -rw-rw-r--. 1 yak007 yak007 65798 2009-07-02 22:09 spr

[web2py:25583] Re: requires_login with registration

2009-07-03 Thread mdipierro
You need to look into the code. gluon.tools On Jul 3, 2:51 pm, DenesL wrote: > def index in my controller? > > tools.login does a bunch of things based on the settings before it > gets to the form, so I feel it would be better to set > auth.settings.login_form. > What are the parameters for auth

[web2py:25582] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On 3 July, 18:17, Yarko Tymciurak wrote: > My spreadsheet.tar is 65798 bytes; Same here with fresh download (correct .w2p extension now) > Here are some checksums: > $ ls -l sp* > -rw-rw-r--. 1 yak007 yak007 65798 2009-07-02 22:09 spreadsheet.tar > $ sha1sum spreadsheet.tar > f0630cc59ea0647836

[web2py:25581] Re: requires_login with registration

2009-07-03 Thread DenesL
def index in my controller? tools.login does a bunch of things based on the settings before it gets to the form, so I feel it would be better to set auth.settings.login_form. What are the parameters for auth.settings.login_form? --~--~-~--~~~---~--~~ You receiv

[web2py:25580] Re: need an ajax spreadsheet

2009-07-03 Thread Hans
great stuff massimo!!! how can the size of the cells be adjusted? Basically I want wider cells. Thanks, Hans On Jul 3, 4:16 am, mdipierro wrote: > Do you need to embed an ajax spreadsheet in you app. Now you have it: > > http://www.vimeo.com/5432441http://www.web2py.com/appliances/default/show

[web2py:25579] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread Hans Donner
Nice ! On Fri, Jul 3, 2009 at 3:54 AM, gluegl wrote: > > I compiled a list of top Key-Value Store (NoSQL) > > http://code.google.com/p/scalaris/ * > http://couchdb.apache.org/ * > http://labs.mudynamics.com/wp-content/uploads/2009/04/icouch.html > interactive online tutorial > http://hado

[web2py:25578] Re: override default model values in SQLFORM

2009-07-03 Thread mdipierro
No you just do db.table.field.default = "another default value" before SQLFORM or before crud.update On Jul 3, 1:16 pm, David Zejda wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > > I have table with a "subject" field, with default value specified in model. > > Now I woul

[web2py:25577] Re: requires_login with registration

2009-07-03 Thread mdipierro
def index(): form=SQLFORM(db.auth_table, fields=['email','password'] if FORM.accepts(request.vars,session): user=session.user=auth.get_or_create_user(form.vars) redirect() return dict(form=form) On Jul 3, 12:56 pm, DenesL wrote: > I want to be able to login

[web2py:25576] override default model values in SQLFORM

2009-07-03 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have table with a "subject" field, with default value specified in model. Now I would like to generate forms to add and update records. In the forms the default value specified in the model has to be overriden on certain conditions. I trie

[web2py:25575] want to help web2py?

2009-07-03 Thread mdipierro
here is what you can do: OUTREACH - talk about it - help us make a better web page (change css and improve test) - help us improve the look and feel of the admin app (possibly css only) DOCS and TESTS - help us complete the Sphinx documentation look into web2py/doc and web2py/applications/exampl

[web2py:25574] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread Yarko Tymciurak
On Fri, Jul 3, 2009 at 12:46 PM, DenesL wrote: > > > > That seems to make an arguemnt to move to (some?) column versoin of this > > db... when looking also at things like Cassandra and Voldemort, this > (to > > me at least) is making an additional argument to make a DAL for > column-based

[web2py:25573] Re: requires_login with registration

2009-07-03 Thread DenesL
I want to be able to login OR register with the form shown by @auth.requires_login. --~--~-~--~~~---~--~~ 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@googlegro

[web2py:25572] Re: requires_login with registration

2009-07-03 Thread mdipierro
I guess I do not understand what you want to do. I was assuming you wanted registered users (logged in) to be able to register other users. It is asking for username and password becuase you must be logged in to register somebody else. On Jul 3, 12:35 pm, DenesL wrote: > On Jul 3, 12:39 pm, mdip

[web2py:25571] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
I got the problem. appliances is an old app and it sets the content disposition to .tar even if the app is a .w2p. web2py can upload both .tar and .w2p but, on some systems, it gets confused when the extension is wrong. I think I fixed it in appliances. Massimo On Jul 3, 12:20 pm, Yarko Tymciura

[web2py:25570] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread DenesL
On Jul 3, 1:00 pm, Yarko Tymciurak wrote: > This is an interesting > read:http://tokyocabinet.sourceforge.net/tokyoproducts.pdf > > I wonder if you shouldn't be comparing tokyo tyrant to memcached, in which > case they are comparable. You could be right, I only went skin deep. > The way I read

[web2py:25569] Re: requires_login with registration

2009-07-03 Thread DenesL
On Jul 3, 12:39 pm, mdipierro wrote: > not sure. > > Try > > @auth.requires_login() > def register_other(): > return dict(form=auth.register(next=URL(r=request,f='index'))) > > and see it does what you want or not. Huh? you lost me there. Where should register_other go? It can't be just aft

[web2py:25568] Re: need an ajax spreadsheet

2009-07-03 Thread Yarko Tymciurak
BTW - also renaming the download to spreadsheet.w2p works fine - web2py is able to install it, and it also runs no problems. Massimo - talk about backwards compatibility - since appliances (still) generates *.tar files, why not have application install tolerate the *.tar files, as it has in the pa

[web2py:25567] Re: need an ajax spreadsheet

2009-07-03 Thread Yarko Tymciurak
Here's what I found: - this downloads a tar file; web2py 1.65 is able to install it that way; I just untarred, and moved to my web2py/appliances.- it runs; it edits; (authentication wasn't enables, so login gave invalid function, but that's it. I recall an issue w/ old Firefox's and incomplete

[web2py:25566] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread Yarko Tymciurak
This is an interesting read: http://tokyocabinet.sourceforge.net/tokyoproducts.pdf I wonder if you shouldn't be comparing tokyo tyrant to memcached, in which case they are comparable. The way I read this table, what it says is that tokyo-cabinet (the database) is almost as fast as python-dicts, i

[web2py:25564] Re: eStore appliance

2009-07-03 Thread mingodad
I was caught too by the error messages "too small or too large" I sugest to add the folowing to the css part on layout.html: .error { background-color: red; color: white; padding: 3px } It was borroed from T3, this way the error messages will not pass unnoticed. As well I'm intrigged why the *_

[web2py:25563] Re: shell history improvement

2009-07-03 Thread mdipierro
nice please email it to me. On Jul 3, 11:18 am, sherdim wrote: > Hello! > > The current shell is pretty for copy-paste operations but  the > scrolling through recent command history is useful for interactive > using. > > Here is the update for JavaScript function, which allows such > scrolling u

[web2py:25565] Re: eStore appliance

2009-07-03 Thread mdipierro
eStore is now an old app. It needs lots of work. Massimo On Jul 3, 11:36 am, mingodad wrote: > I was caught too by the error messages "too small or too large" > I sugest to add the folowing to the css part on layout.html: > > .error { background-color: red; color: white; padding: 3px } > > It w

[web2py:25562] Re: requires_login with registration

2009-07-03 Thread mdipierro
not sure. Try @auth.requires_login() def register_other(): return dict(form=auth.register(next=URL(r=request,f='index'))) and see it does what you want or not. On Jul 3, 10:55 am, DenesL wrote: > In my app I have an @auth.requires_login() before most of the actions > but this only show

[web2py:25561] Re: Generate Radio Button from form_factory

2009-07-03 Thread mdipierro
I think this will do. form=SQLFORM.factory(SQLField('name',requires=IS_IN_SET (('True','False')),widget=SQLFORM.widgets.radio.widget)) On Jul 3, 10:55 am, Yannick wrote: > Hello mate, > I have a stupid question here...Just wonder can I generate a radio > button form from an SQLField using form

[web2py:25560] shell history improvement

2009-07-03 Thread sherdim
Hello! The current shell is pretty for copy-paste operations but the scrolling through recent command history is useful for interactive using. Here is the update for JavaScript function, which allows such scrolling up and down as in a standard shell. Instead of command completion it shows possi

[web2py:25559] requires_login with registration

2009-07-03 Thread DenesL
In my app I have an @auth.requires_login() before most of the actions but this only shows me a form asking for username and password (since I have field username in auth_user table), but I would like to be able to register a new user too instead. It seems that I need to set auth.settings.login_fo

[web2py:25558] Generate Radio Button from form_factory

2009-07-03 Thread Yannick
Hello mate, I have a stupid question here...Just wonder can I generate a radio button form from an SQLField using form_factory ? (The radio button should be True or False) Does anyone know how ? I tried different parameter in SQLField like 'boolean' etc.. but can't have radio button work... I thi

[web2py:25557] Re: os.system command works in Python shell, but not in a Web2py function

2009-07-03 Thread mdipierro
mind not to set the cwd in the app because it is not thred safe. You must set it before the web server starts. On Jul 3, 10:32 am, Angelo Compagnucci wrote: > I think i found the problem. > > The problem is that cwd for subprocess is not set into Web2Py. I > specified cwd during the instation of

[web2py:25556] Re: os.system command works in Python shell, but not in a Web2py function

2009-07-03 Thread Angelo Compagnucci
I think i found the problem. The problem is that cwd for subprocess is not set into Web2Py. I specified cwd during the instation of subprocess and all went well. I cannot find the problem because I have to lunch a .bat inside wich the path was not absolute so specifing cwd was required. Angelo

[web2py:25555] Re: datetime wrong locale.

2009-07-03 Thread mdipierro
web2py does not use i18n. It uses T. You can get the accepted language from T.accepted_language. You will have to set the local yourself. On Jul 3, 9:32 am, Robert Marklund wrote: > Hi, > it seams like the locale is not set for datetime objects used in modules > folder. > > with locale i mean th

[web2py:25554] Re: os.system command works in Python shell, but not in a Web2py function

2009-07-03 Thread mdipierro
All I can say I call subprocess in admin/controllers/gae.py and it works but it is tricky because you are starting a process from within a thread. Massimo On Jul 3, 9:04 am, Angelo Compagnucci wrote: > I have the same problem, > > A call to subprcess into controller subprocess.call(string) retu

[web2py:25553] Re: FirePython - python debugger for firefox.

2009-07-03 Thread sgtpep
Thank you for link to this great tool. Please check this thread about simillar solution http://groups.google.com/group/web2py/browse_thread/thread/cc13960a5079b2d5/864a5f56b1006139?lnk=gst&q=firephp#864a5f56b1006139 On 2 июл, 20:42, ceej wrote: > Hey all, > > Thought you might be interested in a

[web2py:25552] Re: web2py solution for debbuging with FirePHP/Firebug

2009-07-03 Thread sgtpep
Sorry for long reply delay. I subscribed to messages in this thread, but didn't recieved any notifications for some reason. Yes, I found this debugging solution very handy. It could be transparent for newbie, but useful for experienced user. Group user ceej discovered another logging Firefox exten

[web2py:25551] Re: need an ajax spreadsheet? Here is one

2009-07-03 Thread Álvaro Justen [Turicas]
On Fri, Jul 3, 2009 at 01:48, Francois (Jersey) wrote: > > > tried to install the spreadsheet application, but I have the following > error message: unable to install application spreadsheet. > > It is possible to download the file, but I believe file is corrupt This error is shown when this bloc

[web2py:25550] datetime wrong locale.

2009-07-03 Thread Robert Marklund
Hi, it seams like the locale is not set for datetime objects used in modules folder. with locale i mean that the language used by the T object should be set as locale. If this is correct how can i get the locale from web2py ? /R -- __ Robert Marklund

[web2py:25549] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On Jul 3, 2:44 pm, mdipierro wrote: > Is it possible the app is called "spreadsheet" and you have > "Spreadsheet" in the URL? Capitalizaiton sometimes matters. No, not the issue. Now I'm getting this error: File "C:/Bin/web2py/applications/spreadsheet/controllers/ default.py", line 5, in inde

[web2py:25548] Re: os.system command works in Python shell, but not in a Web2py function

2009-07-03 Thread Angelo Compagnucci
I have the same problem, A call to subprcess into controller subprocess.call(string) return errorcode 1, the same command (cut/paste) returns 0 in a python console. I cannot find anything wrong ... Thanks! 2009/5/12 mdipierro : > > In trunk, look at the file > > applications/admin/controllers/

[web2py:25547] web2py function to pretty-print HTML (for insertion into AMY or TEXTAREA)?

2009-07-03 Thread dlypka
If I load some raw HTML into eamy or a simple TEXTAREA, I need to have it pretty-printed first, to avoid the long lines which mess up the display. I see there are various python libaries to do this. But does web2py already have such a function somewhere? I see the CODE widget, but it does colori

[web2py:25546] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread mdipierro
Haha! > Then using phpmyadmin I create user, and create database happo. but you did not set auth.define_tables(migrate=False) So I am not sure what happened. You tests may have messed up various things. What to do? 1) delete database happo 2) delete everything in databases/ folder 3) recreate

[web2py:25545] Re: need an ajax spreadsheet

2009-07-03 Thread mdipierro
Is it possible the app is called "spreadsheet" and you have "Spreadsheet" in the URL? Capitalizaiton sometimes matters. On Jul 3, 2:08 am, Fran wrote: > On Jul 3, 6:15 am, mdipierro wrote: > > > If other problems have problems downloading I will repost tomorrow. > > I get the same error - dl'in

[web2py:25544] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-07-03 Thread DenesL
On Jul 2, 9:54 pm, gluegl wrote: >http://anyall.org/blog/2009/04/performance-comparison-keyvalue-stores-for-language-model-counts/ The posted results suggest a ten fold performance gain using tokyo cabinet over memcached (using libmemcached). There is a Tokyo Cabinet Python bindings package avai

[web2py:25543] Re: Why '@import' doesn't work in css?

2009-07-03 Thread 双木成林
oops!I found there isn't any request for that css. And finally I found it is because I lost an '@' at the begin of the css file in the sentence '@charset' Thx for helping me. On Fri, Jul 3, 2009 at 6:55 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > > On Fri, Jul 3, 2009 at 05:26

[web2py:25542] Re: Menu and "active" CSS class

2009-07-03 Thread Álvaro Justen [Turicas]
On Fri, Jul 3, 2009 at 06:44, Vidul Petrov wrote: > > Hi, > > Given that I have a menu like: > > response.menu = [ >    ['Home', request.function=='index', >       URL(request.application,'default','index'), []], >    ['New Post', request.function=='create', >       URL(request.application,'defaul

[web2py:25541] Re: Why '@import' doesn't work in css?

2009-07-03 Thread Álvaro Justen [Turicas]
On Fri, Jul 3, 2009 at 05:26, 双木成林 wrote: > Hi all. > I met a problem that all the '@import' I used in the css file do not work at > all. > I put the css file in the static folder, and the '@import' cant import the > file that even in the same folder. > I suppose if it is because web2py framework

[web2py:25540] Menu and "active" CSS class

2009-07-03 Thread Vidul Petrov
Hi, Given that I have a menu like: response.menu = [ ['Home', request.function=='index', URL(request.application,'default','index'), []], ['New Post', request.function=='create', URL(request.application,'default','create'), []], ] the "active" link does not work unless

[web2py:25539] Why '@import' doesn't work in css?

2009-07-03 Thread 双木成林
Hi all.I met a problem that all the '@import' I used in the css file do not work at all.I put the css file in the static folder, and the '@import' cant import the file that even in the same folder. I suppose if it is because web2py framework doesn't suggest us to use relative paths? But i still thi

[web2py:25538] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread Mico Siahaan
Hi Yarko, I will try as details as I could :). 1. This is my first try with web2py, basically I just want to make sample app. It will be a website that member can login and update his status so other member can know the update 2. For development, I am using win vista business and xampp for window

[web2py:25537] Re: Cancel button

2009-07-03 Thread annet
Problem solved, I had to restart web2py from the terminal. Thanks for your reply. Annet. --~--~-~--~~~---~--~~ 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:25536] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On Jul 3, 6:15 am, mdipierro wrote: > If other problems have problems downloading I will repost tomorrow. I get the same error - dl'ing in both FF3.5 & IE8 However the file un-tar's just fine & the appliance runs. However the JS fails with formulae (FF3.5 & IE8 again) Firebug shows 500 INTERNAL

[web2py:25535] Google app and AuthSub

2009-07-03 Thread weheh
I'm considering integrating a web2py app with a Google app and was wondering if anyone has ever gotten web2py to do authentication against a Google account using AuthSub? If so, any pointers to doc on the subject? I've found doc on the Google side. It says to use AuthSub. I haven't dived in yet, b