Thanks.
Your quick response makes coding with web2py even more enjoyable.
On Mar 1, 11:00 am, Massimo Di Pierro
wrote:
> this should be fixed in trunk.
>
> 1.92 tried to make DAL case insensitive (like SQL) but turns out that
> is a bad idea because Python is not case insensitive and because SQ
On Feb 22, 2011, at 11:47 PM, Johann Spies wrote:
> Without the routes.py file I can work with the image in static/images but not
> when routes.py is active.
Is it possible that you were using URL calls like this:
URL(... c='static/images', f='filename') ?
If so, try changing them to th
On Tuesday, March 1, 2011 9:11:58 PM UTC-5, mikech wrote:
>
> I was communicating with my local Python User group, and got an opinion
> from one of the members a lot like this. Unfortunately I don't have the
> experience to answer effectively. Here is the response that I got:
>
> I don't rea
I´m trying to create a form where user enters a reference number from
bills. I have three criterias:
IS_EMPTY_OR
IS_NOT_IN_DB
this two works great, but to check that user hasn´t done a mistaken when
inputting the reference code I´d like to check that the reference code
checkbit is correct.
On Mar 1, 8:34 pm, Massimo Di Pierro
wrote:
>
> That is a difference. They follow "explicit is better than implicit"
> and that cause verbosity. We choose to follow "do not repeat yourself"
> and "everything should have a default" so web2py's code is more
> compact. If you like this you use.
>
>
E
Would there be any way to close the gap at all? I have liked working with
Web2py so far but I feel like the argument above may have some merit and
should not be dismissed.
Many of the recently reported bugs have been fixed. Please try the
nightly build from the download page and report any issue still
standing.
Massimo
Python has 31 keywords. exec is one of them. It cannot be that
evil ;-)
It is childish to criticize web2py for the use of a keyword without
understanding the algorithm in which the keyword is used.
Web2py was audited for security and did well:
http://www.pythonsecurity.org/wiki/web2py/
In fac
Hey Christian,
After adding your suggested changes (with a minor tweak) I'm happy to
say that it worked perfectly.
So it needed in dal.py around 2810:
elif filter.name=='__key__' and filter.op=='=':
if filter.value==0:
items = []
elif i
On Mar 1, 8:11 pm, mikech wrote:
> I was communicating with my local Python User group, and got an opinion from
> one of the members a lot like this. Unfortunately I don't have the
> experience to answer effectively. Here is the response that I got:
>
> I don't really have time to get into an ep
we included in the welcome app in trunk. Martin did all the work. Ic
consists of a revised base.css and two png files. Nothing more that
makes the app more complex.
On Mar 1, 3:55 pm, Martín Mulone wrote:
> see attach, Today I was playing a bit.
>
> 2011/3/1 JmiXIII
>
>
>
>
>
>
>
>
>
> > +1
> >
Hello,
We need to create unit tests for accions that access the database.
Does web2py provide tools to do this? The idea is to have a test
purpose database and populate it with test data at the moment the
tests run. Then, the test would use this fake data populated in the
database.
Thanks in adva
I was communicating with my local Python User group, and got an opinion from
one of the members a lot like this. Unfortunately I don't have the
experience to answer effectively. Here is the response that I got:
I don't really have time to get into an epic religious discussion but
I'll try and
my understanding is when there is an error in the submitted form then the
form is displayed again with the previous values embedded. (Unfortunately
this won't work for file uploads.)
So no, it won't work if the user browses another page and then comes back to
the form. Storing in session would
-1
I would prefer scaffold app to be simple so easier to modify.
If we want it to look good we need a designer. web2py is an awesome
framework but the designs always look amateur.
Thanks Christian for that code.
I'll test it and get back to you.
Cheers,
Matt
On Feb 3, 12:32 pm, howesc wrote:
> Matt,
>
> sorry for the delay. Since i don't have use for the key queries yet i'm
> gonna ask you to try something, and then we can ask massimo to include
> it
>
> * grab the
andrej,
the biggest thing is to not write joins. once you wrap your head around
that there is only a couple more things:
- web requests are limited to 30 seconds
- GAE make no guarantee about the ID field beyond it being unique (many
people think of ID's as strictly increasing integers, not o
Wow!
Congratulations ladies and gentlemen and welcome to the "big leagues".
We rock!!!
On 1 mar, 12:06, Anthony wrote:
> Jacob Kaplan-Moss (Django core developer) has taken his anti-web2y show on
> the road from Reddit to
> Quora:http://www.quora.com/Is-web2py-a-good-Python-web-framework
>
> I
If you really want to do this you shodl be able to but first you need
to ssh in and manually start Web2py from webapps/yourapp/web2py with
something like the following:
python2.5 web2py.py -p 80
Then shut it down and try again from the web interface
Let me know how it goes...
On 1 mar, 07:48, S
I think so but I cannot say for sure. I am not expert on mssql.
On Mar 1, 5:03 pm, Stef Mientki wrote:
> On 14-02-2011 22:17, Massimo Di Pierro wrote:> The difference is subtle.
>
> as SQLserver uses utf-16, the size will double,
> am I correct ?
>
> thanks,
> Stef Mientki
>
>
>
>
>
>
>
> > mssql
how could I dynamically re arrange custom form fields (mostly
textboxes) after a set of dates have been selected on a datepicker???
On Feb 17, 2011, at 10:37 AM, Johann Spies wrote:
> src="/kb/static/DSC_1403.png" (I moved the image from /kb/static/images to
> /kb/static - now it works.
>
> I would still like to know how to get imgages in static/images to work with
> this routing system.
>
> src="/sadec/static/sadc.png"
An interesting recent trend. I follow comp.lang.python as well and the
web2py-users group recently has more traffic than the python group. That
might be an indicator of the level of interest in this nice to work with
framework.
hello,
using mssql2, gives me an error in sql.py, trying to connect to the database
here:
elif self._uri.startswith('mssql2://'):
self._execute = lambda a: \
self._cursor.execute(unicode(a, 'utf8'))
TypeError: decoding Unicode is not supported
hello,
as text, ntext, image(blob), are deprecated,
I would suggest to change these in
varchar(max), nvarchar(max), varbinary(max)
Assuming this is a correct suggestion,
would it be enough to change the following
'mssql': {
'boolean': 'BIT',
'string': 'VARCHAR(%(length)s)',
On 14-02-2011 22:17, Massimo Di Pierro wrote:
> The difference is subtle.
as SQLserver uses utf-16, the size will double,
am I correct ?
thanks,
Stef Mientki
> mssql is the first version of the adapter, the one that everybody
> uses. It stores data as UTF8 but in ascii. That means the length of
>
I have three background processes like this:
https://groups.google.com/d/msg/web2py/nxYZxyFvE3U/ZD6OicoL4LQJ
@reboot root *applications/init/private/release_pending_orders.py
@reboot root *applications/init/private/expire_items.py
@reboot root *applications/init/private/mail_queue.py
import time
I have included a response to Jacob within my own answer to that question.
I liked your answer.
I can't speak to wether django is a good web framework: I haven't used
it. I suspect it is though. However, his review of web2py is not a good
review at all. It is based on no experience, based o
Hi Carlos.
Your solution worked perfectly. Though, I think this is a bug that has
to be fixed in next version.
Regards,
Lisandro.
On 23 feb, 19:28, Carlos wrote:
> Hi Lisandro,
>
> A workaround is to manually assign the following 'uploadfolder' value for
> the 'upload' type fields in the 'def
Now is working,
Thanks !!
On 1 mar, 20:24, Massimo Di Pierro wrote:
> Please check again.
>
> On Mar 1, 12:25 pm, salbefe wrote:
>
>
>
> > I have downloaded last updates form
> > Hello,
>
> > I have downloaded last updates from the mercurial repository and when
> > I try to execute web2py :
>
>
Does not work on 1.92.1 but works with trunk.
Thanks
On 1 mar, 15:56, Massimo Di Pierro wrote:
> I am using trunk and I cannot reproduce this problem.
>
> On Feb 28, 4:11 pm, rāma wrote:
>
> > SQLFORM factory field name with underscore doesn't submit properly in
> > the below case:
>
> > SQLFORM
The issue with stopping the server is that OSX takes time to release
the sockets.
The issue in your case may be different. Do you call thread or
processing?
Massimo
On Mar 1, 2:07 pm, pbreit wrote:
> I know there was a recent discussion about quitting web2py.app apparently
> not killing python
On Mar 1, 2011, at 12:07 PM, pbreit wrote:
> I know there was a recent discussion about quitting web2py.app apparently not
> killing python processes. I'm noticing the problem can be worsened by
> background processes which my Activity Monitor is showing the creation of
> neverending python proc
Thanks for the update
On Mar 1, 1:56 pm, Anthony wrote:
> Here you go:http://www.web2py.com/AlterEgo/default/show/106
>
> web2py used to be hosted athttp://mdp.cti.depaul.edu-- so for some of
> those older links, you can just replace that withhttp://www.web2py.com.
>
> Anthony
>
> On Tuesday, Mar
I know there was a recent discussion about quitting web2py.app apparently
not killing python processes. I'm noticing the problem can be worsened by
background processes which my Activity Monitor is showing the creation of
neverending python processes.
I guess the best case would be that quittin
this should work, no?
def index():
auth.logout()
response.flash="bye bye user"
On Mar 1, 1:12 pm, Ed Greenberg wrote:
> At the end of my controller function, I'd like to log the user out and
> send him back to the login screen, hopefully with a response.flash on
> the screen.
>
> I've
Please check again.
On Mar 1, 12:25 pm, salbefe wrote:
> I have downloaded last updates form
> Hello,
>
> I have downloaded last updates from the mercurial repository and when
> I try to execute web2py :
>
> >> python web2py.py
>
> I get the following error:
>
> ImportError: No module named simp
Ed you have to use session.flash;
Anytime you redirect your not in request scope anymore so request.flash
wont help;
On 3/1/11 2:12 PM, Ed Greenberg wrote:
At the end of my controller function, I'd like to log the user out and
send him back to the login screen, hopefully with a response.fla
At the end of my controller function, I'd like to log the user out and
send him back to the login screen, hopefully with a response.flash on
the screen.
I've tried several things, none of which work.
I tried sending him to URL(c='default',f='user',args=('logout')) which
got close. One was summari
fixed in trunk now.
On Mar 1, 11:13 am, surfnet3 wrote:
> The newest.
>
> On Mar 1, 9:17 am, Massimo Di Pierro
> wrote:
>
>
>
>
>
>
>
> > what web2py version? they should be the same.
>
> > On Mar 1, 1:19 am, surfnet3 wrote:
>
> > > I have the following model:
>
> > > db.define_table(
> > >
Here you go: http://www.web2py.com/AlterEgo/default/show/106
web2py used to be hosted at http://mdp.cti.depaul.edu -- so for some of
those older links, you can just replace that with http://www.web2py.com.
Anthony
On Tuesday, March 1, 2011 1:43:15 PM UTC-5, stargate wrote:
> I was on the fol
Try add
session._unlock(request)
at the top of the controller. Does it still lock?
On Mar 1, 12:55 am, Markus Schmitz wrote:
> Hi everybody,
>
> on my development system I use sqllite, because it allows me to
> conveniently backup my database, which contains a good amount of
> configuration dat
I was on the following page
http://www.web2py.com/php
When i click on
click here to learn more about web2py (for PHP programmers)
The link goes to a broken page.
Is there a alternative resource for this
try creating a new app from ssh and probably will work.
also, you can always dev on localhost and later upload the app to webfaction
Yes, I think the use of queues in general needs to go way up. I use a very
simple queue for emailing:
===models.py===
db.define_table('mail_queue',
Field('status'),
Field('email'),
Field('subject'),
Field('message'))
===mail_queue.py===
import time
while True:
rows = db(db.m
I have downloaded last updates form
Hello,
I have downloaded last updates from the mercurial repository and when
I try to execute web2py :
>> python web2py.py
I get the following error:
ImportError: No module named simplejson.scanner
File "C:\web2py\web2py.py", line 16, in
import gluon.widge
The newest.
On Mar 1, 9:17 am, Massimo Di Pierro
wrote:
> what web2py version? they should be the same.
>
> On Mar 1, 1:19 am, surfnet3 wrote:
>
>
>
>
>
>
>
> > I have the following model:
>
> > db.define_table(
> > 'person',
> > Field('name'),
> > format=lambda r: r.name,
> > )
Jacob Kaplan-Moss (Django core developer) has taken his anti-web2y show on
the road from Reddit to Quora:
http://www.quora.com/Is-web2py-a-good-Python-web-framework
I have included a response to Jacob within my own answer to that question.
Cheers,
Anthony
>> The problem comes when the user/browser gives up and cancels the request,
>> and immediately resubmits (or simply gets impatient and does a reload). In
>> my case, things would get so tangled that I'd have to restart web2py.
I think the proper way to deal with this is having a queue of tasks
Hi greenpoise,
You can do it for example via jQuery in the view.
Check out this link:
http://stackoverflow.com/questions/2458595/disable-a-textbox-using-css
You can create multiple fields and even have multiple records in the
same form.
Bruno, Thadeus and Massimo have all posted interesting way
On Mar 1, 8:55 am, Markus Schmitz wrote:
> More or less all my pages write some data to a table for logging
> purposes on access, so when the first browser connects, sqllite locks
> the DB. When the second browser connects, the DB is still locked, even
> though the page of the first request is lon
David,
If you can do any of the analysis ahead of time and store that, it might help.
That's what I had to do.
In my case, I also discovered that the database I was using wanted more RAM
than I could give it at the time and had to do my real-time analysis in smaller
chunks.
--
Lorin Rivers
On Mar 1, 2011, at 5:18 AM, darkblue_b wrote:
> as per the very simple instructions, I wrote a controller function to
> return a few items..
> generic.html and generic.xml work, but generic.json and generic.rss
> fail
>
> just learning still, I searched the newsgroup and found
>
>> Lorin Rivers
On Mar 1, 2011, at 6:21 AM, Massimo Di Pierro wrote:
>
> The problem is that not everything is json and rss serializable.
In that case, we ought to have a more helpful error than "no json". You're
suggesting that the json encoding call is failing?
> What
> does your action look like?
>
> On Ma
On Mar 1, 2011, at 6:23 AM, Anthony wrote:
> On Tuesday, March 1, 2011 8:11:01 AM UTC-5, KMax wrote:
> SQLite is not good solution for concurent users access.
> http://sqlite.org/faq.html#q5
>
> From that FAQ, it doesn't sound like SQLite should be locking out other
> requests for so long (only
On Mar 1, 2011, at 7:04 AM, DenesL wrote:
>
> just remove the
>
>else:
>response.flash='Fill in form'
>
> parts from your code.
>
> Since you are not redirecting after an accepts it just comes back to
> the same controller, creating new forms and resetting the
> response.flash messa
I like this. In trunk now.
On Feb 27, 12:46 pm, teemu wrote:
> Hi,
>
> I would like to suggest some changes to SQLFORM class. I heavily use
> 'formstyle=function' feature in my web2py-projects to create
> customized form layouts. However, there is one big disadvantage in
> behavior of the standar
test_runner in web2py_utils was designed around slice 67. test_runner lets
you do a little more, and handles more of the state management for you.
--
Thadeus
On Tue, Mar 1, 2011 at 5:57 AM, eddie wrote:
> I should add I'm on web2py version 1.92.1.
>
> And I should also add I'm extremely supp
this should be fixed in trunk.
1.92 tried to make DAL case insensitive (like SQL) but turns out that
is a bad idea because Python is not case insensitive and because SQL
is not always case insensitive (depends on settings).
On Feb 28, 10:23 am, surfnet3 wrote:
> The following codes are not worki
On Mar 1, 2011, at 2:48 AM, David Mitchell wrote:
> Bump
I tried something like that a while back with Python threads, for much the same
reason you describe. In my case, each thread was farming out an xml-rpc
request, each to a different server, an ideal case for this kind of thing,
since all o
I tried to use this. But what is myrecord in the context of a form which is
generated by SQLFORM.
I tried this :
{{=plugin_wiki.widget('comments',table='foreign_website',record_id=form.vars.id)}}
But the coments contain the Id 0 and show up on all records.
Yes I was aware of this... But there is some details missing in the
explanation... By default where are stored the inputed values? In
session? When the user disconnect would it be able to get back it data
the next time he connects... From keepvalues I can make what I want
with the inputed values...
Hi Annet,
just remove the
else:
response.flash='Fill in form'
parts from your code.
Since you are not redirecting after an accepts it just comes back to
the same controller, creating new forms and resetting the
response.flash messages.
On Mar 1, 8:07 am, annet wrote:
> I impleme
I am using trunk and I cannot reproduce this problem.
On Feb 28, 4:11 pm, rāma wrote:
> SQLFORM factory field name with underscore doesn't submit properly in
> the below case:
>
> SQLFORM.factory(Field('fieldname', - Submit OK
>
> SQLFORM.factory(Field('select_fieldname', - Submit failed
Looks like you have write permission in each app folder, but no write
permission inside the parent applications folder.
On Mar 1, 6:48 am, Saf Hulou wrote:
> I have the same problem. Installed today. Admin allows me to edit
> current apps such as the examples app - can create new views etc. No
>
On Tuesday, March 1, 2011 8:11:01 AM UTC-5, KMax wrote:
>
> SQLite is not good solution for concurent users access.
> http://sqlite.org/faq.html#q5
>From that FAQ, it doesn't sound like SQLite should be locking out other
requests for so long (only briefly during write operations) -- Markus sa
The problem is that not everything is json and rss serializable. What
does your action look like?
On Mar 1, 5:18 am, darkblue_b wrote:
> as per the very simple instructions, I wrote a controller function to
> return a few items..
> generic.html and generic.xml work, but generic.json and generic.r
what web2py version? they should be the same.
On Mar 1, 1:19 am, surfnet3 wrote:
> I have the following model:
>
> db.define_table(
> 'person',
> Field('name'),
> format=lambda r: r.name,
> )
>
> db.define_table(
> 'product',
> Field('name'),
> Field('buyer', db.person
I'm facing the pb I suppose :
Here is my models :
db.define_table("Poste",
Field("Poste", "string", notnull=False, default=None))
db.define_table("Article",
Field("CodeArticle","string", notnull=True, default=None),
Field("Designation","string", notnull=True, default=None))
db.def
SQLite is not good solution for concurent users access.
http://sqlite.org/faq.html#q5
On 1 мар, 12:55, Markus Schmitz wrote:
> Hi everybody,
>
> on my development system I use sqllite, because it allows me to
> conveniently backup my database, which contains a good amount of
> configuration data.
I implemented a one form search function:
def search():
rows=[]
form=SQLFORM.factory(
Field('company',length=54,requires=IS_NOT_EMPTY())
if form.accepts(request.vars,session):
rows=db(..).select(..)
if rows:
response.flash='Search result:'
el
I have the same problem. Installed today. Admin allows me to edit
current apps such as the examples app - can create new views etc. No
new apps though. Help would be much appreciated...
Thanks,
Saf
On Feb 22, 4:15 pm, JoeCodeswell wrote:
> Dear Webfacton Support and "web2py-users" Google Group,
>
http://web2py.com/book/default/chapter/08#Customizing-Auth
On Tue, Mar 1, 2011 at 10:16 AM, Werner Gillmer wrote:
> Hi
>
> Very new to web2py, how would I go about extending the registration
> page? I want to capture phone numbers etc. during registration as
> well.
>
>
> Thanks
I should add I'm on web2py version 1.92.1.
And I should also add I'm extremely supportive of the efforts to build some
better unit testing infrastructure like this, these examples are fantastic.
Hi all,
I'm looking at adding unit tests to a project I am working on. I had a
couple of questions.
First of all, is the testRunner.py approach, as documented in slice 67,
still a reasonable way to go, or has all the effort switched over to the
test_runner tool in the web2py_utils package?
I
You could use request.extension to modify the output accordingly, it
default to 'html' and is used to determine the extension of the view
file that will render the dictionary.
On Mar 1, 6:18 am, darkblue_b wrote:
> as per the very simple instructions, I wrote a controller function to
> return a
God bless you, Massimo!
GAE is quite powerful, supports many sql features, soon will be a great
update,
just be aware of those little differences
http://code.google.com/intl/ro-RO/appengine/docs/python/datastore/gqlreference.html
yes, I forgot to mention that. People gave VERY good feedback about that !
actually we made some jokes about that imagining Massimo supporting the
web2py community even in holidays with his Android ... :D
In my personal experience I've found answers in this groups faster than on
some other well k
Hi
Very new to web2py, how would I go about extending the registration
page? I want to capture phone numbers etc. during registration as
well.
Thanks
as per the very simple instructions, I wrote a controller function to
return a few items..
generic.html and generic.xml work, but generic.json and generic.rss
fail
just learning still, I searched the newsgroup and found
>Lorin Rivers Jan 13, 2:26 pm
>OK, if I specify which columns get ret
thanks Massimo.
The ability to have cache decorators in modules would be great.
On 1 March 2011 02:09, Massimo Di Pierro wrote:
> Jonathan and I have a plan to make this easy but it will not be in
> until 1.93 or 1.94.
>
> On Feb 28, 3:12 pm, pbreit wrote:
> > Yeah, I'm having a hard time figur
Bump
On 27 February 2011 20:32, David Mitchell wrote:
> Hello everyone,
>
> I've read through the message archive and there seems to be a fairly clear
> message: don't using the multiprocessing module within web2py.
>
> However, I'm hoping I might have a use case that's a bit different...
>
> I'
It's working for me.-
2011/3/1 Norbert Klamann
> Hello all,
> I would like to buy the book, if possible as a pdf because the delivery
> time to germany is measured in weeks.
> I tried the lulu link http://stores.lulu.com/web2py from
> http://www.web2py.com/book/default/chapter/04 , but it seems
Hi
I have some experience in RDB system (mysql, access), I have done some work
in zope (object oriented database), and now I would like to try some things
in nosql. So I have some questions
1. where can I find some useful resource for nosql
2. what can I do in design of my applicati
+1
--
On 28 fév, 21:45, "Lucas D'Avila" wrote:
> +1
>
> --
>
> Lucas D'Avilahttp://flavors.me/lucasdavila
>
> Sent from my phone
> Em 28/02/2011 17:26, "Anthony" escreveu:
>
> > +1
>
>
Hello all,
I would like to buy the book, if possible as a pdf because the delivery time
to germany is measured in weeks.
I tried the lulu link http://stores.lulu.com/web2py from
http://www.web2py.com/book/default/chapter/04 , but it seems to be down.
Norbert
87 matches
Mail list logo