Thanks, that would be much appreciated!
On Oct 27, 3:28 am, howesc how...@umich.edu wrote:
i will write something up for you soon
In this thread:
http://groups.google.com/group/web2py/browse_thread/thread/bb5abc07b692a554/
AppReport was mentioned. I downloaded the plugin and followed the
instructions in the Examples:
https://github.com/lucasdavila/web2py-appreport/wiki/Docs-and-examples
This example results in an error:
A slight twist of my version is to use {key: value} instead of key:
value. The thought was to convert the string into dictionary-like datatype
more easily.
Using {key: value} format, the element of the field that has
list:string type stores it as {key: value}. The problem is that an
I have done it this way (code abstract not tested):
### model
db.define_table('t_persons',
Field('f_surname', type='string', notnull=True, label=T('Surname'),
length=32),
Field('f_name', type='string', notnull=True, label=T('Name'), length=32),
)
### controller
def myreport():
persons =
Dear all,
Is it possible to offer a file for downloading in web2py?
theFile = tempfile.NamedTemporaryFile()
with open(theFile.name, wb) as myFile:
myFile.write(something)
return response.download(request, theFile)
For instance, when a user goes to
It seems that the problem is more of general python problem than of web2py.
Before using string:list type field to store user-defined field, I didn't
experience having dict key values as non-ascii. Because of the new problem
definition, I did experience it and learned something new.
For just
Hi Paolo,
Thanks for your reply, the code you provided works, I'll convert it
into my own app, hope that works too.
Kind regards,
Annet.
On 26 October 2011 21:20, peter peterchutchin...@gmail.com wrote:
Adding in the css for grid actually spoilt things. I have managed to
get a good looking grid for CDs with graphics using smartform.grid,
How did you get wrapping of the text in the 'Description' column in your
your grid (if
On 26 October 2011 19:15, Cliff cjk...@gmail.com wrote:
So you need a column on the right for an Add to Cart button.
I have previously asked about custom edit buttons and this was the answer
(which works):
*links = [lambda row: A('Edit',_href=URL(controller,edit,
args=[update, tablename,
There is a request in that case, it's just that response.download is
expecting (a) the last argument in the URL to be the name of a file, and
(b) its second argument to be a db object. In this case, instead of
response.download, use response.stream(file, chunk_size, request).
See
Cheers,
Working code:
response.headers['Content-Type'] = application/octet-stream
response.headers['Content-Disposition'] = 'attachment; filename=%s' %
filename
return content
What is the Web2py way of making session variables unique to one
browser tab? This example illustrates the problem.
Model:
db.define_table('products', Field('quantity_on_hand', 'integer'))
db.define_table('jobs', Field('job_yield', 'integer'),
Field('product_id', db.products))
When a user
That is very odd. I have a production SSL site that I have been running for
months without an issue. Even my development server (which runs trunk, but
as of a week ago...haven't updated in a while) runs SSL only and it can run
for weeks at a time.
I guess the usual questions apply: what
like the uglifier on Ruby?
2011/10/21 Farsheed Ashouri farsheed.asho...@gmail.com
Is it possible to compress the output html before rendering out? I mean
using tools like compressors or tiddy to clean/compress the output code
automatically on output not on our source.
--
[]'s
Marco Tulio
If you have a function that does the compressing, I suppose you could do
something like:
def my_action():
[some code]
d = dict(...)
return compress_html(response.render(d))
Anthony
On Thursday, October 27, 2011 9:40:30 AM UTC-4, Marco Tulio wrote:
like the uglifier on Ruby?
Hello,
I suspect that I have a migration problem... There is some update function
that not working properly (not updating some fields and update others
correctly)...
I would like to know how to use correctly the migrate fake all at the DAL
level... In the book it says :
Migration problems can
Ok I just read a couple of lines above in book :
db = DAL(...,migrate_enabled=False)
Does it work in 1.98.2
Richard
On Thu, Oct 27, 2011 at 10:17 AM, Richard Vézina
ml.richard.vez...@gmail.com wrote:
Hello,
I suspect that I have a migration problem... There is some update function
that
Since 1.95.1. See http://web2py.com/examples/default/changelog (which is
accessible via the Download page).
Anthony
On Thursday, October 27, 2011 10:20:18 AM UTC-4, Richard wrote:
Ok I just read a couple of lines above in book :
db = DAL(...,migrate_enabled=False)
Does it work in 1.98.2
I´m using web2py 1.99.2 for windows
:(
2011/10/27 Ross Peoples ross.peop...@gmail.com
That is very odd. I have a production SSL site that I have been running for
months without an issue. Even my development server (which runs trunk, but
as of a week ago...haven't updated in a while) runs SSL
Thank you Anthony.
Richard
On Thu, Oct 27, 2011 at 10:24 AM, Anthony abasta...@gmail.com wrote:
Since 1.95.1. See http://web2py.com/examples/default/changelog (which is
accessible via the Download page).
Anthony
On Thursday, October 27, 2011 10:20:18 AM UTC-4, Richard wrote:
Ok I just
Also the same problem if i move my app to 1.982
The certficate was issued to apps.cires.pt but i´m acessing my app using the
ip and not the name
Can this be problem?
Em 27 de outubro de 2011 15:31, António Ramos ramstei...@gmail.comescreveu:
I´m using web2py 1.99.2 for windows
:(
Is there a reason for using represent to make redirection links? You
may have an easier time creating redirection links with the A()
helper:
http://web2py.com/book/default/chapter/05?search=redirect
Apparently there is a new callback feature to the A helper which might
be helpful in your
Hello,
I have been trying to find a way of how to upload a file in a database
using curl but i can't find any references. I have found a reference
that describes how to submit text so i guess that uploading a file
should possible as well. What i want to do is to upload a file from my
Very cool. I especially enjoyed the tactful handling of web2py's
criticisms amongst the Python community as well as the fascinating
physics tangent. M lattice quantum chromodynamics.
May this bring even more attention to web2py.
David
On Oct 26, 3:17 pm, Bruno Rocha rochacbr...@gmail.com
The lambda functions don't get called until the your data are actually
rendered, which happens after the second set of assignments to
some_function, some_action, etc. -- so both lambda functions end up using
the same (second) set of values for those variables.
Anthony
On Wednesday, October
Need this one..cant wait..
On Oct 25, 10:04 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
One more update of the onlinebookposted:
http://web2py.com/book
Includes:
- italian translation
- japanese translation
- english (revised)
The revised english version includes:
Hi,
I am wondering what is the best way to count how many times a file has
been downloaded. I have the following:
db.define_table('image',
Field('file', 'upload'),
Field('downloads','integer', default=0,readable=False,
writable=False))
I have a view that has the following:
{{=A(Download,
I don't think so. I access my dev machine using the IP all the time. Can
you try using the source code version instead of the binary and see if that
makes a difference?
response.download expects the last arg in the url to be the filename, so
you might be able to pass the image.id as the first arg:
args=[image.id, image.file]
Anthony
On Thursday, October 27, 2011 11:39:22 AM UTC-4, thodoris wrote:
Hi,
I am wondering what is the best way to count how many
If one clicks on 'data modified' in a windows folder, the files are
ordered with the most recent first.
In SQLFORM.grid if one has a column with a date in it, and one clicks
on the heading, they are sorted with the oldest first.
See www.ukjazz.net/store/albums
It would be nice if SQLFORM.grid
Well, in theory with Web2py we have models controllers and views.
However I find that 50% of the view work I have to do in
the .represent of the model. Then there is a lot of trial and error.
So the division of responsibilites is not as clean as one would hope.
Another reason for doing things in
I agree with you, but just as a lark, I tried to add a P3P header to
the user() action:
response.headers['P3P'] = 'CP=IDC DSP COR ADM DEVi TAIi PSA PSD
IVAi IVDi CONi HIS OUR IND CNT'
In theory, this should work, but I still can't login. Check out
stressrelief.co.nr using IE and login as
Again, that's richardeng2005 @ hotmail . com
Richard
On Oct 27, 1:25 pm, horridohobbyist horrido.hobb...@gmail.com wrote:
I agree with you, but just as a lark, I tried to add a P3P header to
the user() action:
response.headers['P3P'] = 'CP=IDC DSP COR ADM DEVi TAIi PSA PSD
IVAi IVDi
check web2py/gluon/dal.py
there is a try: import pyodbc. remove the try and check whay it fails.
Must be a patch issue.
On Oct 25, 9:39 pm, Omi Chiba ochib...@gmail.com wrote:
CJM,
Are you using apache using wsgi? if so, you're with me. You cannot
import
There is not one because this behavior is browser dependent and cannot
be controller by the server.
That said. If you know something we do not know let us know and we can
try improve it.
On Oct 27, 8:54 am, Cliff cjk...@gmail.com wrote:
What is the Web2py way of making session variables unique
fixed
On Oct 26, 4:54 pm, Bob St John bobinco...@gmail.com wrote:
using 1.99.2
in gluon.sqlhtml.SQLFORM.grid:
line 1489: return ondelete(table,request.args[-2],ret)
I think it should be: return ondelete(table,request.args[-1],ret)
As it is now, ondelete gets (table, table, ret), whereas
Please list the specs you need. Should not take much to do.
On Oct 26, 4:55 pm, Ismael Serratos ialejandr...@gmail.com wrote:
Looking for the same...
2011/10/6 António Ramos ramstei...@gmail.com
Hello, i´d like to suggest this app
Room and Resource(auto, projector etc) Reservation
Thanks this is useful! Mind that the API may still fluctuate a bit.
On Oct 26, 4:38 pm, Cliff cjk...@gmail.com wrote:
You can find a digest of posts about SQLFORM.grid here:
https://docs.google.com/document/d/1p-OXDn75Nt2qmXQ0lvjqr4tYIf2PTIQx6...
I know it is not complete, but it may help
fixed and uploading, thanks.
On Oct 26, 11:10 am, tg th.ga...@googlemail.com wrote:
At least for me to following is faster when reading...
- if not headers is None:
+ if headers is None:
+ headers={}
+ else:
for c in columns:#new implement dict
Which version? Is the problem reproducible? Can you tell us more?
Perhaps open a ticket
On Oct 26, 11:24 am, Richard Bruskiewich
richard.bruskiew...@delphinai.com wrote:
I'm a recent fan of web2py, having adopted it for some major
institutional projects in global agriculture. So far, so good -
I'll try to keep an eye on it.
On Oct 27, 1:47 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Thanks this is useful! Mind that the API may still fluctuate a bit.
On Oct 26, 4:38 pm, Cliff cjk...@gmail.com wrote:
You can find a digest of posts about SQLFORM.grid here:
Can you help me debug? Look into gluon.tools.py. There is a function
basic() Add some print statements. Is it called? What does it return?
On Oct 23, 7:48 pm, Robert Clark robert.cl...@niftybean.com wrote:
Hi Massimo
Here are the steps to reproduce this problem in web2py 1.99.2 (these
steps
Any suggestion for improvement?
On Oct 25, 3:32 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Oct 25, 2011, at 1:18 PM, Anthony abasta...@gmail.com wrote:
On Tuesday, October 25, 2011 4:08:20 PM UTC-4, pepper_bg wrote:
You can do
s.get(6,None)
Still have to anticipate what my
Sorry for the late response.
When you print a select() you get the default csv serialization.
For anything else I suggest you do it manually by looping over records
and columns. Or use the csv module if you need csv.
On Oct 25, 4:59 pm, lucas sjluk...@gmail.com wrote:
hello one and all,
here
Sure. On the road now, but shortly.
On Oct 27, 2011, at 10:57 AM, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Any suggestion for improvement?
On Oct 25, 3:32 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Oct 25, 2011, at 1:18 PM, Anthony abasta...@gmail.com wrote:
On
How about:
yield_key = 'old_job_yield_%s' % request.args(0)
session[yield_key] = old_job_yield
That way, the session key is unique to the particular job being edited, and
editing another job in a different tab won't overwrite the old_job_yield
associated with this job. That won't protect
Thank you Professor Di Pierro for your direct reply.
Since I am new to the community, I'm not sure how to log a ticket.
I'll look into that but if you will bear with me, here is perhaps the
additional information you are asking for:
I've deployed Web2PY Version 1.98.2 (2011-08-04 00:47:09)
The
This is what can be done in PHP. It was easy to build names for
session variables by string concatenation because PHP variables begin
with a dollar sign. So something like $_SESSION[$foobar] = 'hello,
world' would work. I'm not smart enough yet in Python to know if the
same thing is possible.
Anthony, thank you.
I didn't know that something like session[myvar] would work. I
thought it was only dot notation.
Thanks for the pointer on form.vars.
I'll look for more info on form.process().
I would be more worried about a record being left in a locked
condition than I would be about a
Hello Bruno,
I am giving a ride to new SQLFORM.grid actually... And I wonder if there is
a way to have a scroll bar for big table (large table)? Do I have to use
jQuery UI?
If so is there a predefined way of doing it?
Richard
On Tue, Oct 25, 2011 at 4:53 PM, Bruno Rocha rochacbr...@gmail.com
On Thu, Oct 27, 2011 at 5:51 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Hello Bruno,
I am giving a ride to new SQLFORM.grid actually... And I wonder if there is
a way to have a scroll bar for big table (large table)? Do I have to use
jQuery UI?
If so is there a predefined way
On Thursday, October 27, 2011 2:37:19 PM UTC-4, Richard Bruskiewich wrote:
I'm not sure how to log a ticket.
FYI: http://code.google.com/p/web2py/issues/list
Does this help?
http://www.youtube.com/watch?v=ntkxvNxEKXk
2011/10/27 Massimo Di Pierro massimo.dipie...@gmail.com
Please list the specs you need. Should not take much to do.
On Oct 26, 4:55 pm, Ismael Serratos ialejandr...@gmail.com wrote:
Looking for the same...
2011/10/6 António
Many thanks Bruno I was digging into the appadmin trying to get the overflow
stuff and putting it into my test view function.
With Datatables I didn't use overflow since a wild...
Thanks again.
Richard
On Thu, Oct 27, 2011 at 4:04 PM, Bruno Rocha rochacbr...@gmail.com wrote:
On Thu, Oct
I a noob to web2py; so much so I'm not sure if I'm asking the right
question!
I'm trying to change the default behavior of the id field in my table.
Instead of an auto-increment of 1, 2, 3, etc...I need it to auto-increment
11-01, 11-02, 11-03, etc. Even better it would be nice
I don't think web2py supports this currently, but I think you are on
the right track.
I think what I would suggest is an extension to auth.add_permission.
Something like auth.add_permission(group.id, 'name', 'object',
record_id, 'column_name', state_bool) where column_name is the name of
the
I'm sure assistance with documentation would be appreciated by all!
On Oct 26, 10:16 am, Hong-Khoan Quach hongkhoanqu...@googlemail.com
wrote:
I want to thank you all for your suggestions so far and please
post further suggestions :).
Massimo, Anthony or other contributors/committers, do you
Thanx Antony! I can't believe it was as simple as that...
On Oct 27, 5:50 pm, Anthony abasta...@gmail.com wrote:
response.download expects the last arg in the url to be the filename, so
you might be able to pass the image.id as the first arg:
args=[image.id, image.file]
Anthony
On
i don't know the answer, but i would go about finding the answer by:
- creating a form that lets me upload the file to web2py (see the book for
examples)
- run it in a browser while using tools that track the request sent to the
server with the file (chrome has this built in with the network
any insight?
On Oct 20, 5:51 pm, Francisco Costa m...@franciscocosta.com wrote:
Hi,
we are in the process of converting our MySQL DB toMongoDB(via
pymongo).
We have already convert the auth_user table.
Now we want to change theauthconnection fromauth=Auth(globals(), db)
Hi Massimo,
we already have fixed the bug and we sent you a patch. Didn't you
receive our mail?
Regards
Matteo and Hong-Khoan
Am 27.10.2011 19:56, schrieb Massimo Di Pierro:
Can you help me debug? Look into gluon.tools.py. There is a function
basic() Add some print statements. Is it called?
Dear Web2py users,
I have started playing around with Web2py. I am reading various parts
of the book. I am very satisfied with the framework and I find the
atmosphere of this mailing list very friendly. Thanks.
I have some more questions about the book.
1) Sometimes I see in the documentation
On Oct 27, 2011, at 10:57 AM, Massimo Di Pierro wrote:
Any suggestion for improvement?
I'm not sure when I'll have time to get around to it, but my idea is to
implement both Storage.__getattr__ and .__getitem__ in terms of
super(get(whatever, None)). (That's not quite the syntax, but you get
On Oct 27, 2011, at 5:03 PM, Jonathan Lundell wrote:
On Oct 27, 2011, at 10:57 AM, Massimo Di Pierro wrote:
Any suggestion for improvement?
I'm not sure when I'll have time to get around to it, but my idea is to
implement both Storage.__getattr__ and .__getitem__ in terms of
On Thursday, October 27, 2011 7:57:31 PM UTC-4, Archibald Linx wrote:
1) Sometimes I see in the documentation if form.process().accepted:
and sometimes if form.accepts(request.vars, session):. What's the
difference between the two ?
form.process() was added very recently and is now
On Thu, 2011-10-20 at 09:51 -0700, Francisco Costa wrote:
Hi,
we are in the process of converting our MySQL DB to MongoDB (via
pymongo).
We have already convert the auth_user table.
Now we want to change the auth connection from
auth = Auth(globals(), db)
to
auth = Auth(globals(),
I wasn't able to find in the web, even in this group, a multiple files
upload system with the followings requirements:
- upload the files together with form submit
- no frame, no flash, no ajax form submit but only jquery and python
- give a title to the uploading files
- simple to integrate and
I recently had a similar problem where I could import pyodbc at the
python shell, but I was getting a DLL error when I tried to import
pyodbc under mod_wsgi.
I suggest that you put import pyodbc inside your wsgihandler.py (or
at the top of db.py) and see what errors are being produced.
I had
using 1.99.2
SQLFORM.grid...
I don't see the need for this statement...
line 1641: if not searchable and not rows: return DIV(T('No records
found'))
If it was removed a user would see an empty grid rather than just a
div, no matter what the value of 'searchable' was.
An empty grid allows the
Thanks for this, I am using another jquery library for upload and I am going
o test this.
Can you provide a packed .w2p web2py application?
On Thu, Oct 27, 2011 at 10:40 PM, Paolo Caruccio paolo.carucci...@gmail.com
wrote:
I wasn't able to find in the web, even in this group, a multiple files
Any progress on this feature?
This could be really nice.
I got was this, it seems not to be carrying it. js
http://www.diigo.com/item/image/1iw09/9pki
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826
72 matches
Mail list logo