It goes right after the form=SQLFORM(...). Nice one, Mr. Freeze.
--~--~-~--~~~---~--~~
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 unsubscrib
Where did you put this line of code;
> form[0][-1][1].append(INPUT
> (_type='button',_value='Cancel',_onclick="window.location='%s';"%URL
> (r=request,f='index')))
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
yes
say cell=sheet['cell_name']
when the cell is modified cell.onchange is called so you can point it
to a lambda that takes an action like storing it in the db. For
example:
cell.onchange=lambda cell=cell: db(db.cells.name==cell.name).update
(value=cell.computed_value)
Caveat: you must reset c
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
--~--~-~--~~~---~--~~
You received this message because you are subs
On Thu, Jul 2, 2009 at 23:16, mdipierro wrote:
> Do you need to embed an ajax spreadsheet in you app. Now you have it:
>
> http://www.vimeo.com/5432441
> http://www.web2py.com/appliances/default/show/53
>
> Please let know about bugs
Cool!
Are there options to save values that user entered (maybe
On Fri, Jul 3, 2009 at 00:53, Hans Donner wrote:
> "Sorry, there is no page with that URL. Perhaps you meant to type
> something similar?"
There are two URLs:
http://www.vimeo.com/5432441
http://www.web2py.com/appliances/default/show/53
--
Álvaro Justen
Peta5 - Telecomunicações e Software Li
but these work
On Fri, Jul 3, 2009 at 4:16 AM, mdipierro wrote:
>
> Do you need to embed an ajax spreadsheet in you app. Now you have it:
>
> http://www.vimeo.com/5432441
> http://www.web2py.com/appliances/default/show/53
>
> Please let know about bugs
>
> Massimo
> >
>
--~--~-~--~~-
"Sorry, there is no page with that URL. Perhaps you meant to type
something similar?"
On Fri, Jul 3, 2009 at 4:43 AM, mdipierro wrote:
>
>
>
> On Jul 2, 9:16 pm, mdipierro wrote:
>> Do you need to embed an ajax spreadsheet in you app. Now you have it:
>>
>> http://www.vimeo.com/5432441http://www
On Jul 2, 9:16 pm, 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/53
>
> Please let know about bugs
>
> Massimo
--~--~-~--~~~---~--~~
You recei
Do you need to embed an ajax spreadsheet in you app. Now you have it:
http://www.vimeo.com/5432441
http://www.web2py.com/appliances/default/show/53
Please let know about bugs
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Could you post the entire model?
Massimo
On Jul 2, 9:08 pm, Yarko Tymciurak wrote:
> Massimo refers to this:
>
> File "C:\Python25\Lib\site-packages\MySQLdb\connections.py", line
> 35, in defaulterrorhandler
> raise errorclass, errorvalue
> ProgrammingError: (1146, "Table 'happo.auth_user'
Massimo refers to this:
File "C:\Python25\Lib\site-packages\MySQLdb\connections.py", line
35, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1146, "Table 'happo.auth_user' doesn't exist")
when he says "...somewhere in a validator..." - he is guessing at what might
be w
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://hadoop.apache.org/hbase/ **
http://project-voldemort.com/ *
htt
What do you mean by a validator? I did not create new validator. It was my
first db.py. For your info, the code work well in SQLite but not in MySQL.
Powered by Telkomsel BlackBerry®
-Original Message-
From: mdipierro
Date: Thu, 2 Jul 2009 17:54:48
To: web2py Web Framework
Subject: [
I do not think so. check if you have a 'happo' somewhere in a
validator. It does not belong there.
On Jul 2, 5:46 pm, Mico Siahaan wrote:
> Hai all,
>
> I am learning web2py. In db.py I activate/create auth_user tables. But
> it seemed that web2py failed to generate needed tables.
>
> Here is my
of but I'd change
if 'IS_IN_SET' in str(table[field].requires):
with
if hasattr(table[field].requires,'options')
or something like it
On Jul 2, 5:29 pm, Fran wrote:
> On Jul 2, 2:07 am, mdipierro wrote:
>
> > This is not so really up to me. I like the idea of XFORM and home one
> > of you
Hai all,
I am learning web2py. In db.py I activate/create auth_user tables. But
it seemed that web2py failed to generate needed tables.
Here is my db.py
if request.env.web2py_runtime_gae: # if running on Google App Engine
from gluon.contrib.gql import *
### connect to Google BigTable
On Jul 2, 2:07 am, mdipierro wrote:
> This is not so really up to me. I like the idea of XFORM and home one
> of you will take the lean and the task of building it.
ok, here's a 1st cut for feedback on approach.
Controller:
http://paste.pocoo.org/show/126409/
View:
http://paste.pocoo.org/show/
I am not sure the problem is in one place. cetrainly in sqlhtml.py but
I cannot exclude that html.py needs to be modified too.
Massimo
On Jul 2, 1:41 pm, Vidul Petrov wrote:
> Thank you, Massimo!
>
> Is the problem in sqlhtml.py (class OptionsWidget) ?
>
> On Jul 2, 8:55 pm, mdipierro wrote:
>
I also did it this way on PyCon server - from a PC (for rsync, I installed
cygwin - I couldn't stand to be without shell and basic utilities when I
still _had_ to use a windows box).
the "script" is rather simple in this sense:
$ rsync -n -exclude-from rsync.deploy.ignore -avup source destinatio
Thank you, Massimo!
Is the problem in sqlhtml.py (class OptionsWidget) ?
On Jul 2, 8:55 pm, mdipierro wrote:
> Yes there is a problem. This will probably not be fixed today but
> within the week.
>
> Massimo
>
> On Jul 2, 11:21 am, Vidul Petrov wrote:
>
>
>
> > My point is that the widgets by
That is a feature, although one those that I wish I had tought through
better when I designed validators.
On Jul 2, 12:18 pm, MikeEllis wrote:
> That fixed it. Thanks Massimo.
> Is that behavior a design feature or just a quirk of
> implementation? :-)
> Mike
>
> On Jul 2, 11:39 am, mdipierro w
Mind that this is not thread safe. You want to generate a random
filename and delete the file when done.
On Jul 2, 11:45 am, __Kyo__ wrote:
> It would be
>
> def makepdf():
> from reportlab.pdfgen import canvas
> import gluon.contrib.pyrtf as q
> print ('--')
> c=canvas.Canvas("p
Yes there is a problem. This will probably not be fixed today but
within the week.
Massimo
On Jul 2, 11:21 am, Vidul Petrov wrote:
> My point is that the widgets bypass the validators.
>
> On Jul 2, 6:53 pm, Fran wrote:
>
> > On Jul 2, 3:29 pm, Vidul Petrov wrote:
>
> > > db.person.gender.req
This works for me:
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick="window.location='%s';"%URL
(r=request,f='index')))
On Jul 2, 12:26 pm, annet wrote:
> I would like to append a cancel button to the forms returned by some
> of the functions in tools.py
>
> I tried adding t
I would like to append a cancel button to the forms returned by some
of the functions in tools.py
I tried adding this:
form[0][1][1].append(INPUT
(_type='button',_value='Cancel',_onclick="window.location='%s';"%URL
(r=request,f='index')))
... to the login function, but that does not work. Wha
That fixed it. Thanks Massimo.
Is that behavior a design feature or just a quirk of
implementation? :-)
Mike
On Jul 2, 11:39 am, mdipierro wrote:
> field.requires = [IS_IN_DB(db,'%s.%s'%(tbname,fname))]
>
> no select
>
> field.requires = IS_IN_DB(db,'%s.%s'%(tbname,fname))
>
> select
>
> On Jul
It would be
def makepdf():
from reportlab.pdfgen import canvas
import gluon.contrib.pyrtf as q
print ('--')
c=canvas.Canvas("primer.pdf")
c.drawString(150,400, "REPORTLAB")
c.showPage()
c.save()
response.headers['Content-Type']='application/pdf'
response.header
Hey all,
Thought you might be interested in a python debugger for firefox, it's
like FirePHP http://firepython.binaryage.com/ maybe we could integrate
this into web2py? There is already a way for django :)
--~--~-~--~~~---~--~~
You received this message because yo
My point is that the widgets bypass the validators.
On Jul 2, 6:53 pm, Fran wrote:
> On Jul 2, 3:29 pm, Vidul Petrov wrote:
>
> > db.person.gender.requires = IS_IN_SET(("Male","Female"))
>
> IS_IN_SET(['Male', 'Female'])
>
> F
--~--~-~--~~~---~--~~
You received
Yarko,
Read your discussion with Xie. I have come to realize my situation is
a little different. lxml is a package not a module. Hence there is no
lxml.py to discover. Looking at the situation there is a directory --
.../site-packages/lxml-2.2.2-py2.5-i686.egg/...
and this directory is in the p
Thank you, Fran,
The same result - it does not matter if the argument is a list or a
tuple.
The problem is that I cannot make the validation work when no element
is chosen.
On Jul 2, 6:53 pm, Fran wrote:
> On Jul 2, 3:29 pm, Vidul Petrov wrote:
>
> > db.person.gender.requires = IS_IN_SET(("
On Jul 2, 3:29 pm, Vidul Petrov wrote:
> db.person.gender.requires = IS_IN_SET(("Male","Female"))
IS_IN_SET(['Male', 'Female'])
F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To p
On Jul 1, 2:17 am, Jason Brower wrote:
> Looks very fun!
looks very basic. it's where pyjamas was, approximately two years
ago, minus the widget-set infrastructure.
it's quite easy to write a python-to-javascript translator: pyjs.py
was 1200 lines of code (is now 2400 thanks to six months o
On Thu, Jul 2, 2009 at 12:45, Jason Brower wrote:
> Isn't there a way to redirect to a page after a successful login?
> Regards,
> Jason
>From Auth class we have:
def login(
self,
next=DEFAULT,
onvalidation=DEFAULT,
onaccept=DEFAULT,
log=DEFAULT,
meeh, I don't know :)
Regards,
Jason
On Thu, 2009-07-02 at 08:05 -0700, AchipA wrote:
> Great tip ! How would you go about handling tickets/errors ?
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web
Isn't there a way to redirect to a page after a successful login?
Regards,
Jason
--~--~-~--~~~---~--~~
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@googlegroup
On Jul 2, 2009, at 7:30 AM, Speedbird wrote:
> Just my 2 cents here, I personally update my apps via rsync/ssh from
> my own PC at home to my external server miles away, rsync will only
> copy differences and ignore certain files/directories, etc (all is
> configurable), perfect for me for produc
field.requires = [IS_IN_DB(db,'%s.%s'%(tbname,fname))]
no select
field.requires = IS_IN_DB(db,'%s.%s'%(tbname,fname))
select
On Jul 2, 9:46 am, MikeEllis wrote:
> (Note: there's a thread from last year on this subject, but for some
> reason it's only providing links to reply to author and not
On Thu, Jul 2, 2009 at 11:55, __Kyo__ wrote:
> thanks, and here it is a part of my code, i do not know what to write
> in to me return.
Try this:
> def makepdf():
> from reportlab.pdfgen import canvas
> import gluon.contrib.pyrtf as q
filename = "/home/.../primer.pdf" #we do not reco
Yarko,
Read your reply to Xie. I come to realize the situation I am
experiencing is a little different. lxml is loaded as a package not a
module. There is a python egg directory
.../site-packages/lxml-2.2.2-py2.5-linux-686.egg/...
contained in that directory is .../lxml/__init__.py. There is no
Great tip ! How would you go about handling tickets/errors ?
--~--~-~--~~~---~--~~
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 fr
thanks, and here it is a part of my code, i do not know what to write
in to me return.
def makepdf():
from reportlab.pdfgen import canvas
import gluon.contrib.pyrtf as q
c=canvas.Canvas("/home/.../primer.pdf")
c.drawString(150,400, "REPORTLAB")
c.showPage()
c.save()
(Note: there's a thread from last year on this subject, but for some
reason it's only providing links to reply to author and not to the
group)
The following model code is working correctly except that the
generated SQLFORM has INPUT elements instead of select elements even
though I've specifed an
Just my 2 cents here, I personally update my apps via rsync/ssh from
my own PC at home to my external server miles away, rsync will only
copy differences and ignore certain files/directories, etc (all is
configurable), perfect for me for production deployment, I'd be happy
to share the shell scrip
Hi,
While testing some of the exmaples from the latest manual, the
IS_IN_SET() validator confused me:
db.define_table("person",
SQLField("gender", notnull=True),
SQLField("desserts", notnull=True))
db.person.gender.requires = IS_IN_SET(("Male","Female"))
db.person.gender.widge
yes
in
rows=db().select(db.mytable.date,db.mytable.clicks.sum
(),db.mytable.impressions.sum(),groupby=db.mytable.date)
for row in rows:
print row._extra[db.mytable.clicks.sum()]
Massimo
On Jul 2, 6:22 am, "Sebastian E. Ovide"
wrote:
> is there any way to access to the sum column ? in th
If you find out let me know I need this too.
On Jul 2, 6:06 am, Carl wrote:
> hi,
>
> Is there a document/guideline detailing how one can extend markdown2?
> I want to add my own handlers (line handling and perhaps block
> handling)
>
> thanks
>
> Carl
--~--~-~--~~~--
exec('from applications.%s.modules.util import *' %
request.application)
assuming util.py is under modules
On Jul 2, 3:55 am, Yarko Tymciurak wrote:
> On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote:
>
> > On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> > > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
>
>
Almost all admin funcionality is available form command line but from
web2py command line
python web2py.py -S admin
>>> import gluon.admin
>>> help(gluon.admin)
On Jul 2, 2:46 am, AchipA wrote:
> I would also kind of like more admin functionality available from the
> command line. Web is cool a
following up from another thread
http://groups.google.com/group/web2py/browse_frm/thread/aac58263328d9e8f/96af57e862484949
rows.colnames=["date","id","clicks","impressions"]
for rename the cols
and
row._extra["date"]
for acceding the field
=-
On Thu, Jul 2, 2009 at 8:08 PM, Hans Donner wr
"I have renamed a query columns setting colnames."
Could you be more precise what you did, eg by showing us some code?
As it looks now you did something that you shouldn't have.
On Thu, Jul 2, 2009 at 1:38 PM, Sebastian E.
Ovide wrote:
> Hi Massimo
>
> I have renamed a query columns setting coln
Hi Massimo
I have renamed a query columns setting colnames. For some reason the _extra
operator is returning a string for a field that is date. In another server
running the same web2py version _extra is returning datetime for the same
field (instead of date)
Version 1.64.1 (2009-06-11 15:48
is there any way to access to the sum column ? in this way we would not need
to rename that column
On Sat, Jun 20, 2009 at 6:43 AM, mdipierro wrote:
>
> Changing colnames that have the form "table.field" is a NO NO. That is
> what I was referring to.
> colnames that refer to aggregates can
hi,
Is there a document/guideline detailing how one can extend markdown2?
I want to add my own handlers (line handling and perhaps block
handling)
thanks
Carl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py
On Jul 2, 5:11 pm, Yarko Tymciurak wrote:
> 2009/7/2 小谢
>
>
>
>
>
> > On Jul 2, 4:55 pm, Yarko Tymciurak wrote:
> > > On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote:
>
> > > > On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> > > > > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
>
> > > > > ..
>
> > >
On Thu, Jul 2, 2009 at 11:41 AM, Joe Barnhart wrote:
>
> I don't know exactly what you're asking for, but I have to say that MY
> server won't ever expose FTP on an open port. And restarting my
> server is a *big* deal since it terminates all processes (of which web
> server is only one) so I tr
2009/7/2 小谢
>
>
>
> On Jul 2, 4:55 pm, Yarko Tymciurak wrote:
> > On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote:
> >
> > > On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> > > > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
> >
> > > > ..
> >
> > > > > Thanks. It really helped. It's lucky that the proj
On Jul 2, 4:55 pm, Yarko Tymciurak wrote:
> On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote:
>
> > On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> > > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
>
> > > ..
>
> > > > Thanks. It really helped. It's lucky that the project is still in its
> > > > early s
On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote:
>
> On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
> >
> > ..
> >
> > > Thanks. It really helped. It's lucky that the project is still in its
> > > early stage and we'll be refactoring the existing code with
well, there is a simpler thing:
if you go to http://myserver/
web2py tries - in order - to start an app called "init"; if it doesn't
exist, it looks for an app called "welcome".
The first level, most simple solution is to just call your app "init".
You can use routes, then, for less trivial th
I would also kind of like more admin functionality available from the
command line. Web is cool and all, but if your web2py install has no
https (or maybe even http if it's an intranet install) and you only
can access it via ssh and lynx which is dead in the water because of
JS in web2py... a pyth
Hello,
Is there anything for multilingual database content? I want to store
in the database content for multiple languages (not static text
translation). I came up to this:
# Languages
db.define_table("cultures",
SQLField("culture","string",length=20,notnull=True,default=""))
# My table !
d
On Jul 2, 2:30 am, Yarko Tymciurak wrote:
> On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote:
>
> ..
>
> > Thanks. It really helped. It's lucky that the project is still in its
> > early stage and we'll be refactoring the existing code with respect to
> > web2py's conventions.
>
> Glad it helped.
If I understand your idea:
1. besides you can generate a .w2p package and upload using a browser (what
web2py already do) you want a option to deploy it putting it in the server
and web2py 'magically' install it?
Maybe it can be interesting for big aplications, that don't fit so well to
upload in
On Jul 2, 2:57 pm, Сл wrote:
> Hi everyone
>
> I'm encapsulating a couple of classes into a file under myapp/modules
> and initialize some of them with "db" object. The weired thing is that
> after one successful query I got "cursor already closed" exception
> later on. Any suggestions?
Oh, th
66 matches
Mail list logo