Found another error, but I can't figure out an solution.
But it must be rather simple.
I use the following model and without auth ofcourse
if not request.env.web2py_runtime_gae:
## if NOT running on Google App Engine use SQLite or other DB
dbp = DAL('mysql://root:MerMB#2#@192.168.2.29/perf
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 90
Any progress on this feature?
This could be really nice.
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 wrote:
> I wasn't able to find in the web, even in this group, a multiple files
> upload system with the f
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 u
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 rece
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
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(
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 n
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
> sup
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
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 "i
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
any insight?
On Oct 20, 5:51 pm, Francisco Costa 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)
> toauth=Auth(globals(), mongo)
>
> bu
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 ta
Thanx Antony! I can't believe it was as simple as that...
On Oct 27, 5:50 pm, Anthony 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 Thursda
I'm sure assistance with documentation would be appreciated by all!
On Oct 26, 10:16 am, Hong-Khoan Quach
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
> have anything on your TO
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 tabl
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 to
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 wrote:
>
>
> On Thu, Oct 27, 2011 at 5:51 PM,
Does this help?
http://www.youtube.com/watch?v=ntkxvNxEKXk
2011/10/27 Massimo Di Pierro
> Please list the specs you need. Should not take much to do.
>
> On Oct 26, 4:55 pm, Ismael Serratos wrote:
> > Looking for the same...
> >
> > 2011/10/6 António Ramos
> >
> >
> >
> >
> >
> >
> >
> > > H
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
On Thu, Oct 27, 2011 at 5:51 PM, Richard Vézina 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 of doing it?
>
Include
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 wrote:
> The grid css
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 r
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.
Th
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
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 agains
Sure. On the road now, but shortly.
On Oct 27, 2011, at 10:57 AM, Massimo Di Pierro
wrote:
> Any suggestion for improvement?
>
> On Oct 25, 3:32 pm, Jonathan Lundell wrote:
>> On Oct 25, 2011, at 1:18 PM, Anthony wrote:
>>
>>> On Tuesday, October 25, 2011 4:08:20 PM UTC-4, pepper_bg wrote:
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 wrote:
> hello one and all,
>
> here is the default
Any suggestion for improvement?
On Oct 25, 3:32 pm, Jonathan Lundell wrote:
> On Oct 25, 2011, at 1:18 PM, Anthony 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 keys are and write different
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 wrote:
> Hi Massimo
>
> Here are the steps to reproduce this problem in web2py 1.99.2 (these
> steps worked fine on 1.98.x ve
I'll try to keep an eye on it.
On Oct 27, 1:47 pm, Massimo Di Pierro
wrote:
> Thanks this is useful! Mind that the API may still fluctuate a bit.
>
> On Oct 26, 4:38 pm, Cliff wrote:
>
>
>
>
>
>
>
> > You can find a digest of posts about SQLFORM.grid here:
>
> >https://docs.google.com/document/d
Which version? Is the problem reproducible? Can you tell us more?
Perhaps open a ticket
On Oct 26, 11:24 am, Richard Bruskiewich
wrote:
> I'm a recent fan of web2py, having adopted it for some major
> institutional projects in global agriculture. So far, so good - very
> happy - but I have a recu
fixed and uploading, thanks.
On Oct 26, 11:10 am, tg 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
>
>
> regards
>
Thanks this is useful! Mind that the API may still fluctuate a bit.
On Oct 26, 4:38 pm, Cliff 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 you get starte
Please list the specs you need. Should not take much to do.
On Oct 26, 4:55 pm, Ismael Serratos wrote:
> Looking for the same...
>
> 2011/10/6 António Ramos
>
>
>
>
>
>
>
> > Hello, i´d like to suggest this app
>
> > Room and Resource(auto, projector etc) Reservation with a nice callendar
> > li
fixed
On Oct 26, 4:54 pm, Bob St John 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 I believe i
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 wrote:
> What is the Web2py way of making session variables unique to one
> browser
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 wrote:
> CJM,
>
> Are you using apache using wsgi? if so, you're with me. You cannot
> import
> pyodbc.http://ochiba77.blogspot.com/2011/10/how-t
Again, that's richardeng2005 @ hotmail . com
Richard
On Oct 27, 1:25 pm, horridohobbyist 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 CONi HIS OUR IND CNT"'
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 "r
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 re
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 ac
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 ma
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?
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"
Need this one..cant wait..
On Oct 25, 10:04 am, Massimo Di Pierro
wrote:
> One more update of the onlinebookposted:
>
> http://web2py.com/book
>
> Includes:
>
> - italian translation
> - japanese translation
> - english (revised)
>
> The revised english version includes:
>
> [x] LICENSE
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 26,
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 wrote:
> Massimo Di Pi
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
application
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 situati
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 escreveu:
> I´m using web2py 1.99.2 for windows
>
> :(
>
>
> 2011/10/27 Ross Peop
Thank you Anthony.
Richard
On Thu, Oct 27, 2011 at 10:24 AM, Anthony 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 read a cou
I´m using web2py 1.99.2 for windows
:(
2011/10/27 Ross Peoples
> 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
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.9
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
>
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 al
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?
>
>
like the uglifier on Ruby?
2011/10/21 Farsheed Ashouri
> 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
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 version
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 update
Cheers,
Working code:
response.headers['Content-Type'] = "application/octet-stream"
response.headers['Content-Disposition'] = 'attachment; filename=%s' %
filename
return content
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 http://web2py.
On 26 October 2011 19:15, Cliff 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, a.id]))
a
On 26 October 2011 21:20, peter 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 http://ukjazz.net/store
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.
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 cl
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 "mysite.
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 = db(db.
>
> 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 pr
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:
d
Thanks, that would be much appreciated!
On Oct 27, 3:28 am, howesc wrote:
> i will write something up for you soon
73 matches
Mail list logo