> It's too heavy. Also, reportlab is a fairly low-level API. Unless you're
> going to write a higher-level abstraction layer, it wouldn't "fit" in
> web2py. Plus, most people will want to take advantage of the speedups (which
> can't be included in the source version of web2py).
agree it ha
Making some progress but I need your help.
Given this:
db.define_table('t1',SQLField('name'))
db.define_table('t2',SQLField('t1',db.t1),SQLField('name'))
Are these valid MSSQL Statements?
1) db(db.t1.id>0)._select(orderby=db.t1.name,groupby=db.t1.name)
'SELECT t1.id, t1.name FROM t1 W
> It's too heavy. Also, reportlab is a fairly low-level API. Unless you're
> going to write a higher-level abstraction layer, it wouldn't "fit" in
> web2py. Plus, most people will want to take advantage of the speedups (which
> can't be included in the source version of web2py).
agree it ha
Found Pisa thank you, very interesting.
carlo
On 23 Dic, 23:21, Timothy Farrell wrote:
> easy_install reportlab
> dang, that's easy!
> ;-)
> mr.freeze wrote:It would be nice to have a feature system that allows either
> manual uploading (similar to the application upload) or on-demand download
On Dec 23, 6:39 pm, mdipierro wrote:
> db.table.exposed=[]
> you can set a list of fields that you want visible in T2.create/update
db.table.exposes=[] does indeed work for t2.create() & t2.update() :)
With db.table.displays for t2.display() & db.table.represent for
t2.itemize(), this gives
Consider:
db.define_table('person',
db.Field('uuid',length=64,default=uuid.uuid4
()),
db.Field
('modified_on','datetime',default=now),
db.Field('name'))
db.define_table('dog',
db.Field('uuid'
On Dec 23, 4:41 pm, mdipierro wrote:
> in latest trunk, _lastsql on GAE is a string but only says "select" ,
> "delete", "insert" etc. Better than nothing for now.
Thanks Massimo, and Happy Holidays!
--Jonathan
--~--~-~--~~~---~--~~
You received this message be
Hi Vince,
Dr. DiPierro wrote:
> db['_execute']=lambda *a,**b: timer(db,lambda:db._execute(*a,**b))
Look carefully at the line above, I believe that there may be an
infinite recursion. When you try to call db._execute, the method will
itself call db._execute and then once the thread tries to obt
Just like you would normally run a long-running process in web2py,
os.spawn is my favorite (python offers numerous methods).
But...do we really want a framework that installs software on demand
(without prompting an admin)? I say, let's just leave it to the
humans. It's one thing to make so
On Dec 24, 12:25 pm, mdipierro wrote:
> db.dog.owner.display=lambda id: db(db.person.id==id).select()[0].name
> and t2.displays(db.dog) will show you the owner's name not his id.
Perfect - all is now sorted :)
Many thanks,
F
--~--~-~--~~~---~--~~
You received thi
> On Dec 24, 12:25 pm, mdipierro wrote:
> > db.dog.owner.display=lambda id: db(db.person.id==id).select()[0].name
> > and t2.displays(db.dog) will show you the owner's name not his id.
Oops, still have an issue here.
If the owner field is blank for a record then this fails:
SyntaxError: SQLRows:
Hi Massimo -
They all threw errors. I listed the errors and how I fixed them below.
All of this was done directly in SQL SERVER 2005, but no test data.
Thanks for taking a look at this! I hope this info helps...
--
--STATEMENT 1
--
--ERROR
--Msg 8120, Level 16,
Thank you. I will send another round of tests.
Massimo
On Dec 24, 10:16 am, Mike wrote:
> Hi Massimo -
>
> They all threw errors. I listed the errors and how I fixed them below.
> All of this was done directly in SQL SERVER 2005, but no test data.
>
> Thanks for taking a look at this! I hope th
Upon deleting a record from a table, I would like to delete the
physical uploaded file (which resides in the uploads folder)
referenced by the record. The code provided on pages 173 and 174 in
the web2py manual doesn't work. I hope one of you knows why it doesn't
work.
Best regards,
Annet.
--~--
This should work (from T2, which deletes files by default):
if form.accepts(request.vars,session):
if request.vars.delete_this_record:
for f in form.table.fields:
if form.table[f].type=='upload' and form.table
[f].uploadfield is True:
Pisa is really nice, but i'm totally pro reportlab.
It's true that it is a little heavy but it's a great solution for
printing in web2py
Paolo
On Dec 24, 3:36 pm, Timothy Farrell wrote:
> Just like you would normally run a long-running process in web2py, os.spawn
> is my favorite (python offer
Merry Christmas to all of you and to your families.
Let's hope it will bring to all a little more of peace.
Paolo
On Dec 23, 6:09 pm, "Yarko Tymciurak" wrote:
> Whether you celebrate Christmas or not,
> I wish you all - Peace on Earth, and Goodwill amongst People...
>
> Thanks for the sense of
Merry Christmas Folks!
On Wed, Dec 24, 2008 at 2:26 PM, pmate wrote:
>
> Merry Christmas to all of you and to your families.
> Let's hope it will bring to all a little more of peace.
>
> Paolo
>
> On Dec 23, 6:09 pm, "Yarko Tymciurak" wrote:
> > Whether you celebrate Christmas or not,
> > I wis
18 matches
Mail list logo