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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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'))
--~--~--
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
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
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
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
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
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':
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()
>
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
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
"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
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:
>
>
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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 *_
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
81 matches
Mail list logo