I am not sure but I don't think the wsgihandler.py file is the right place
to schedule cron tasks at WebFaction:
http://docs.webfaction.com/software/general.html#scheduling-tasks-with-cron
A while ago I had the same problem, following these instructions solved the
problem.
[domain@web217 ~]$
I have the following field definition:
Field('rating',type='integer',default=0,requires=IS_IN_SET([0,1,2,3,4,5,6,7,8,9,10])),
When rating is 0 the drop down field is empty and the drop down list shows
the set of ints.
When rating is greater than 0 the drop down field does display the int.
Why
happy to hear that... of course lazy_tables postpone the eventual
migration at the first attempt of accessing it
On Thursday, December 6, 2012 2:47:48 AM UTC+1, Joe Barnhart wrote:
Wait! I figured it out! When lazy_tables=True the column structure is
migrated only when the table is
depends on what do you have to do with the actual data in the csv. Parsing
csv is easy, as it is querying a table
On Thursday, December 6, 2012 3:34:11 AM UTC+1, David wrote:
I am building an application that needs will need to import data from csv
from time to time. I hope that my
Remember that suicide is use javascript to capture login and password
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83
Local conferences would be great as long as there is enough local skills to
demo capabilities of web2py. I am not sure how many people are trying out
web2py in Zambia but have gotten one person addicted to python, he has
however decided to take django route on web framework...he tells me he is
I vote for April, 28th.
I liked the idea to allow people send questions to speakers, but in a
country wide approach. Let's remember different timezones.
As I don't see many normal programmers using IRC here, in Brazil,
I'd suggest a Google Account, ie, web2pyconf...@gmail.com to allow
remote
I noticed that I am missing upload=URL('download') in my SQLFORM.factory,
so I added that in there but it's still not working.
I double checked the image name and you were right, I don't know how I must
have mistakenly deleted that part but it was indeed
[table_name].[field_name].[rand_string]
I
I saw in the book that a line is being used, namely record =
db.person(request.args(0)) or redirect(URL('index')) but I am not using
this line. I tried inserting it and removing the uploadfolder option in the
Field('image', 'upload', uploadfolder='...') field but it's giving me all
sorts of
You mention using SQLFORM.factory -- do you actually store the record in a
db table, does that db table name match the name at the beginning of the
filename, and is the 'image' field definition in the model for that table
the same as the field definition you're using in SQLFORM.factory? It
Ok here's my code:
in db.py
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db)
auth.settings.extra_fields['auth_user']= [
# t denote tutor fields, s denote student fields.
Field http://127.0.0.1:8000/examples/global/vars/Field('t_image'),
Field
Hello,
web2py.com is not reachable right now.
Richard
--
You are using SQLFORM.factory to handle the upload, but the table and field
names used there do not match the table or field names where the records
are actually stored, so response.download() cannot find the appropriate
table or field. By default, SQLFORM.factory uses no_table as the dummy
this just completely broke my website -_-
Now I can't even sign a user up anymore because it's requesting all those
additional fields.
On Thu, Dec 6, 2012 at 2:33 PM, Anthony abasta...@gmail.com wrote:
You are using SQLFORM.factory to handle the upload, but the table and
field names used
Peter, I agree with you 100% regarding the ambiguous documentation, and the
lost time back and forth, among google searches and source code reading...
I am one of them!
Kostas
'These must point to the URL you want to redirect your users to after the
various possible auth actions (in
maybe instead of adding on to auth, I should just create two separate
tables and have them reference auth
On Thu, Dec 6, 2012 at 3:05 PM, Daniele Pestilli byakugan...@gmail.comwrote:
this just completely broke my website -_-
Now I can't even sign a user up anymore because it's requesting
thank you very mutch Paolo,
that's what I needed... I was just confused by the behaviour of a theme
based on an old version of web2py
It works perfectly :)
M.
Il 04/12/12 15:10, Paolo Caruccio ha scritto:
For flot:
put in yourapp/static/js
jquery.flot.js
and
jquery.flot.resize.js
The last line was just an example -- if you don't need all the fields, then
don't use that (or modify it accordingly). Did you try the first solution
(i.e., properly naming and defining both the image field and the
SQLFORM.factory table)?
Anthony
On Thursday, December 6, 2012 10:05:43 AM
Yes I did but, the reason why I hadn't extended those directly in auth_user
was precisely because I had noticed that, since some of those fields are
required, when a user signs up they are prevented from signing up because
those other auth fields have not been input. So what I'll do instead is
+1
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9336 3782 - Claro
Brasil
2012/12/6
You are probably correct! The problem here is legacy though. Changing that
column now, means a lot of work. Thank you both for your replies!
Den tisdagen den 27:e november 2012 kl. 20:40:41 UTC+1 skrev Joe Barnhart:
I think niphlod is correct. The query you have chosen is rather difficult
Massimo said his proposed talk was rejected. I am curious as to what the
title of that talk is or what it is supposed to be about.
--
Hello VP,
Thanks for your question and your support. Too bad there was only one talk
proposed on web2py (as far as I know). If more talks had been proposed we would
have had a better chance.
I will respond on web2py-users.
Massimo
P.S. While I do not like the outcome (only Django and Pyramid
Hello VP,
I proposed two talks. i do not remember the exact tiles:
- one was about my experience in teaching programming and how we can do it
better by teaching we programming
- one was about new web2py features: wiki, scheduler, components
I also proposed a tutorial which was a longer version
Upcoming web2py conference? Where can I learn more about that?
-Jim
On Thursday, December 6, 2012 11:05:52 AM UTC-6, Massimo Di Pierro wrote:
Hello VP,
I proposed two talks. i do not remember the exact tiles:
- one was about my experience in teaching programming and how we can do it
Nevermind, found it here:
https://groups.google.com/d/topic/web2py/DwOd-V9DzrM/discussion
On Thu, Dec 6, 2012 at 11:22 AM, Jim S j...@qlf.com wrote:
Upcoming web2py conference? Where can I learn more about that?
-Jim
On Thursday, December 6, 2012 11:05:52 AM UTC-6, Massimo Di Pierro
Web2py is working on Heroku. Will write up a recipe, unless someone else
does first.
One key point: be sure to install psycopg2 in the virtualenv.
On Thursday, November 29, 2012 7:41:45 AM UTC-8, Massimo Di Pierro wrote:
FYI (from web2py-developers)
Hello everybody,
At PyCon Argentina I
maybe I'm missing something. I thought this is what I was doing by placing
each user in a separate group based on the app they logged in with.
I do see mention of the hmac_key in the web2py book, but not where to find
it, or how it gets generated in the first place if I'm not using digitally
Dear web2py folks,
I created myapp on webfaction and demonstrated it to my prospective client.
Then i wanted to make a dev copy on my windows machine so:
1. I created myapp on windows. Both windows and webfaction are running
web2py version 2.2.1 stable from source, db =
I suggest we create a web site where people can
* volunteer space
* volunteer to give a talk (20 mins - 1hr)
- demo something they built on web2py
- talk about design decisions
- talk about features they like/dislike
- compare with other frameworks (features, performance, etc)
I assume you are no longer talking about markmin. I didn't think you
could use {{ }} in markmin.
Correct ?
On Sunday, December 2, 2012 10:51:49 PM UTC+13, apps in tables wrote:
Thank you...
On Sunday, December 2, 2012 7:45:50 AM UTC+3, Massimo Di Pierro wrote:
You are missing that
I'll try and include more information, as I may not have been clear.
I have 3 applications (my_admin,clients,vendors)
the original database lives under the my_admin application and so my
connection process looks like this...
if request.application=='my_admin':
db =
Hi folks --
I'm the program chair for PyCon 2013. I can see you've got some questions
about how the talk selection works, so I'm hoping I can chime in and answer
some of the questions.
First, Joe Barnhart asks [w]ho in the overall structure of PyCon decides
these things? Do they live in the
Looking at one of my test servers, I've seen some odd names for
web2py-generated error files in the app's .../errors directory.
The typical error file name looks like:
127.0.0.1.2012-12-06.05-16-30.10bd4bdb-ea6d-4c43-a062-0bec4abb43b2
where the 3 segments are (requester's IP address).(request
I haven't looked at this in detail, but if you want to add an extra field
to a form, see
http://web2py.com/books/default/chapter/29/07#Adding-extra-form-elements-to-SQLFORM
(you
can also use the DOM manipulation methods described here:
Using Postgres for the first time, I was dismayed to find it actually
slower than SQLite. Of course, the standard Postgres install is very
UN-optimized so I spent some time making settings to improve it, but I was
still not able to get the speed I needed from a rather large
update_or_insert
I thought this discussion was closed... anyway
Hello Jacob,
first of all thank you for your response. We all appreciate the hard work
you put into Django, into the PSF and into PyCon. I know it is hard work
and a responsibility.
As I stated in my previous post it was not my intention to
By the way, I was just thinking about a work around for my problem when i
decided to do a DIFF between the webfaction controllers/appadmin.py file
and the one on windows. THEY ARE DIFFERENT. I did not expect that.
Here is a link to the 2 files, appadmin.py.windows, appadmin.py.linux for
On Thursday, December 6, 2012 11:05:52 AM UTC-6, Massimo Di Pierro wrote:
Hello VP,
I proposed two talks. i do not remember the exact tiles:
- one was about new web2py features: wiki, scheduler, components
This sounds like an update on web2py. Playing the devil's advocate, one
can
appadmin.py ships with the application, so if you really copied the
controllers folder you'd have the same file.
BTW, pbkdf2 was introduced ~2 months ago.
BTW2: if you copied an app that used the sha512 algo an tried to load it
into a *newer* web2py release, as soon as the user entered the
request.client gets filled by gluon.main.get_client . You can see the
source in gluon/main.py. It gets additionally checked by gluon/utils.py
is_valid_ip_address(). I think the question everyone is thinking of right
now is: what web2py version do you run ?
On Thursday, December 6, 2012 8:15:34
Yes. There are two variables:
request.env.remote_addr: the ip of the client as communicated by the web
server
request.env.http_x_forward_from: which may be injected by a proxy (for
example apache+mod_proxy).
request.cllient is set to the former or the latter (if present).
None of them is
I do not think it is our business to argue about the outcome of specific
talks.
It is our business to discuss general trends and policies as members of the
Python community.
On Thursday, 6 December 2012 14:03:29 UTC-6, VP wrote:
On Thursday, December 6, 2012 11:05:52 AM UTC-6, Massimo Di
Just for the record and in case my experience helps any other user/dev:
I proposed talks related to web2py in PyCon US 2011 and 2012, both rejected.
In 2011 they send me a rejection letter explaining why (basically,
they considered my libraries, techniques, etc. to have reduced target
audience
I would like to clarify about the sponsorship.
Six of us wrote the packt book on web2py and we received a downpayment for
the book. We decided to donate the downpayment to PyCon Ar and PyCon Br
because some of the authors are from these countries and because the timing
was right.
Massimo
I started a thread for volunteers:
https://groups.google.com/forum/?fromgroups=#!topic/web2py-world-conference/9_b-TrPqrRs
--
I am not expert in this. The Database Abstraction Layer has API to use
PostGIS and Spatialite.
In the posrgesql case specifically the DAL supports field types geometry
and geography
and field
functions st_asgeojson, st_astext, st_contained, st_contains, st_distance,
st_equals, st_intersects,
hi
I have a controller that basically inserts a number in a database. I don't
want it to render any view. For now I just redirect back to index.html, but
is there any other way to do it, i.e to have a controller that not renders
any views?
controller:
def plus_minus():
add or
Here are some examples:
https://groups.google.com/forum/?fromgroups=#!topic/web2py-usuarios/Iak2CzmqFkQ
On Thursday, 6 December 2012 15:26:50 UTC-6, Massimo Di Pierro wrote:
I am not expert in this. The Database Abstraction Layer has API to use
PostGIS and Spatialite.
In the posrgesql case
Yes there are better ways. Instead of
def index():
def plus_minus():
add or subtract likes
post=db(db.blog.id==request.args(0)).select().first()
db.plus_minus.pm_id.default=post.id
db.plus_minus.insert(plus=1)
db.commit()
redirect(URL('index'))
On Thursday, 6
uhm, by large update_or_insert do you mean multiple statements of
update_or_insert or update_or_insert with a huge number of fields ?
it seems obvious to me that an automatic update_or_insert() on a table
with columns, e.g., a,b,c,d will have to do
select * from testtable where a=avalue and
Yes, there are better ways. Instead of
def index():
return dict(link = A('clickme',_href=URL('plus_minus')))
def plus_minus():
do_something()
redirect(URL('index'))
You can do
def index():
return dict(link = A('clickme', callback=URL('plus_minus')))
def plus_minus():
how do you fire that function? If a user needs to go to that url
(/app/controller/plus_minus) than you have no other way than redirecting at
the end. If you want that function to be executed in another controller,
just do
def plus_minus(fakearg=0):
.
and in your controller
def
This should be useful for the web2py-conference:
For PyCon Argentina 2012 videos I made a tentative site to do the
post-production in a colaborative way, mixing video, sllides
(images), subtitles and footnotes, adding more interactivity.
Example at:
http://ar.pycon.org/video2py
IMPORTANT: it
PS: confirmed that the error is related to having a vacuum directive on
web2py2.xml I though it was a safer default, but removing it solved
this final issue Is there something against 'vacuum' using the emperor
mode ?
PS2: uwsgi is just awesome :-P
--
def plus_minus(fakearg=0):
.
Note, rather than using a fake argument to prevent public access, you can
also simply start the function name with a double underscore:
def __plus_minus():
Anthony
--
Thank you Mariano. This will be useful.
Massimo
On Thursday, 6 December 2012 16:01:26 UTC-6, Mariano Reingart wrote:
This should be useful for the web2py-conference:
For PyCon Argentina 2012 videos I made a tentative site to do the
post-production in a colaborative way, mixing video,
Learned something also today! Nice one Anthony!
On Thursday, December 6, 2012 11:11:05 PM UTC+1, Anthony wrote:
def plus_minus(fakearg=0):
.
Note, rather than using a fake argument to prevent public access, you can
also simply start the function name with a double underscore:
On Thursday, December 6, 2012 7:01:26 PM UTC-3, Mariano Reingart
wrote:This should be useful for the web2py-conference:
For PyCon Argentina 2012 videos I made a tentative site to do the
post-production in a colaborative way, mixing video, sllides
(images), subtitles and footnotes, adding
I'm looking to write a validator that makes a field required if another
field is set to True. I've looked at this help lesson:
https://snipt.net/rochacbruno/custom-validator-for-web2py-forms/
...but don't know how I'd pass in the value of the other field from the
form. Any clues?
-Jim
--
On Thu, Dec 6, 2012 at 7:34 PM, Alan Etkin spame...@gmail.com wrote:
On Thursday, December 6, 2012 7:01:26 PM UTC-3, Mariano Reingart
wrote:This should be useful for the web2py-conference:
For PyCon Argentina 2012 videos I made a tentative site to do the
post-production in a colaborative
Thank you Massimo,
I think the st_astext and st_geojson functions will set me in the right
direction.
Luis
On Thursday, December 6, 2012 4:26:50 PM UTC-5, Massimo Di Pierro wrote:
I am not expert in this. The Database Abstraction Layer has API to use
PostGIS and Spatialite.
In the
You can do:
db.define_table('thing',Field('a','boolean',default=True),Field('b',requires=IS_NOT_EMPTY()))
def check(form): if not form.vars.a and form.errors.b: del form.errors.b
form = SQLFORM(db.thing).process(on_validation = check)
On Thursday, 6 December 2012 16:42:10 UTC-6, Jim S wrote:
Or maybe something like this:
db.define_table('thing',
Field('a', 'boolean', default=True),
Field('b', requires=IS_NOT_EMPTY() if request.vars.a else None))
Anthony
On Thursday, December 6, 2012 6:00:52 PM UTC-5, Massimo Di Pierro wrote:
You can do:
Hello,
I have a form created by CRUD with some extra fields. assets_label field is
a dropdown consisting of all old labels. Beside that I add an normal text
field where user can enter a new label.
I have then crud.settings.create_onaccept = insert_assets where I update
the label name if there
Thanks Niphlod! What a great discussion, too.
Yes, my case had 6500 rows of about 30 vars to be updated/inserted, but
with a primary key of one column determining whether to update or insert.
I am so amazed at how easy it was to move from SQLIte to PostgreSQL with
web2py. Massimo and the
Dear Niphlod,
Thanks for the reply.
appadmin.py ships with the application, so if you really copied the
controllers folder you'd have the same file.
Of course you are right. I only copied the files i [thought i] had changed.
That's why i was surprised to find that
appadmin.py.windows
Would using an integer field or a list:reference help out?
--
I suspect your asset_id is declared as unique (or was declared as unique,
then you made a migration but db still thinks it is unique).
On Thursday, 6 December 2012 17:37:10 UTC-6, Kenneth wrote:
Hello,
I have a form created by CRUD with some extra fields. assets_label field
is a dropdown
Sure, you could use an integer instead of a reference and there would be
no circular reference (since the DAL doesn't know the integer refers to
another table). But you would also lose the power of having a foreign key
defined on the table.
It may be the best compromise in this case.
Hi Jacob --
Thanks so much for coming to the lion's den and explaining the process.
I'm looking forward to seeing you at PyCon 2013 and I'll buy you a latte!
-- Joe Barnhart
On Thursday, December 6, 2012 11:11:30 AM UTC-8, Jacob Kaplan-Moss wrote:
Hi folks --
I'm the program chair for
Tried a few different approaches; the best
was
http://stackoverflow.com/questions/1100343/apache-redirect-from-non-www-to-www
In an Apache config file, e.g. /etc/httpd/conf.d/default.conf for CentOS
users --
##
## with www
VirtualHost *:80
ServerName www.something.com
... lots of
Hi,
this is a legacy table and asset_id is the id for the table. So it needs to
be unique. The migration is false, web2py is not able to change the
structure at all.
I'm only trying to update the asset_name not create an new that looks the
same.
Kenneth
Den fredagen den 7:e december
AngularJS is a great MVC framework from Google. There are a bunch of
others also.
Currently I develop my web-apps by:
1. Creating models in web2py
2. Creating controllers in web2py
3. Creating views in web2py*
Then I create my mobile app (PhoneGap):
1. Create models using AngularJS*
2. Create
74 matches
Mail list logo