Sorry for the brevity. I think can put together a whole app and post it. Maybe
Monday.
Hi Bruno,
> in routes.conf you can simply do:
>
> blog.domain.com /blog/default
> domain.com /init/default
In an application I have a controller which contains a couple of
functions related to a business card like view. These functions use a
company_id which I pass in the url to retrieve data fro
+888
> +1
>
> 2011/3/11 Massimo Di Pierro
>
> > We all feel very close to our friends in Japan, and we are saddened by
> > what has happened.
With regards,
Mike Veltman
Trainer and Senior Consultant, Linux and AIX
Phone : +65 96212448
Phone NL : +31 878702983
DID : +65 6464 04
Hmmm... How can I do that?
I can update one record if I know row id:
record = db.autos(request.args(0))
form = SQLFORM(db.autos, record)
But I have table view and I need update every record in db.
User should press button or change checkbox state and current row have
to be updated.
I can't e
+1
On Mar 11, 4:58 pm, Massimo Di Pierro
wrote:
> We all feel very close to our friends in Japan, and we are saddened by
> what has happened.
I have similar behavior. Same long time generating page opened same
time in few tabs give me some tabs with erased(overwrited?) session
file and as a result login page. No exception or error.
Is using session in db solve this issue?
On 12 мар, 00:06, ron_m wrote:
> You should only get a portaloc
so, what about the video?
+1
2011/3/14 StUStD :
> +1
>
> On Mar 11, 4:58 pm, Massimo Di Pierro
> wrote:
>> We all feel very close to our friends in Japan, and we are saddened by
>> what has happened.
How can I get current row id to update it?
***
On 13 мар, 04:04, villas wrote:
> Do you need a custom form? How about...
> Use SQLFORM with 'keepvalues'. When user clicks checkbox, submit form
> with jQuery.
> Once that's working experiment with submitting
Hello,
After the successful earlier editions, SiliconIndia is organizing
Software Testing Conference (SofTec 2011), a leading event for the
Software Test and QA Community on March 26th, 2011 (Saturday) this
time in Hyderabad.
SofTeC 2011's agenda reflects the challenges organizations face today
i
:-)
On Mar 14, 2:36 am, pbreit wrote:
> Sorry for the brevity. I think can put together a whole app and post it.
> Maybe Monday.
Which code are you using. Jonathan and I agree that Corne's patch in
this thread does not lock the session.
web2py does lock sessions unless you do session._unlock(request)
On Mar 14, 6:17 am, KMax wrote:
> I have similar behavior. Same long time generating page opened same
> time in few tabs gi
http://blip.tv/file/4879126
Can you see it?
On Mar 14, 6:50 am, Mengu wrote:
> so, what about the video?
Patterns can be farily complex. Assuming
db.define_table('person',Field('name'))
db.define_table('pet',Field('owner',db.person),Field('name'),Field('info'))
you can do
patterns = [
'/person-by-id/{person.id}',
'/person-by-id/{person.id}/:field',
'/person-by-id/{person.id}/pets[owner.person
And second part?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
Hello,
I have just installed the dropdown plugin. It works well except for
list:reference fields.
I have just modified the models/plugin_dropdown.py file:
def create():
table,field = request.args(0).split('.')
# MODIF
field_tablename = db[table][field].type.split(' ')[1]
referee
I have not forgotten. Please email me a claim (with receipt of your
payment with date) and I will send you a check. If you do not, I will
consider it a donation to web2py.
Massimo
On Jan 15, 5:47 pm, Massimo Di Pierro
wrote:
> I will personally reimburse $70 to the first 5 attendees from this
>
I would use the pack tool in appadmin, it works well and pack the
database and the app in a single file.
By the way the database is included in the app so if you compress the
whole database you will have the database included in the compressed
file.
On 13 mar, 23:57, VP wrote:
> What I have done
Il 09/03/2011 04:44, DenesL ha scritto:
That is called cascaded fields.
One example: http://groups.google.com/group/web2py/msg/b2d536d444001565
is there a way to do it using SQLFORM.factory and constructing the form
using an high level method?
thanks
M.
Use the advanced group search
h
On Monday, March 14, 2011 2:38:24 PM UTC+1, Massimo Di Pierro wrote:
>
> http://blip.tv/file/4879126
>
> Can you see it?
>
>
Perfectly, thanks very much.
> On Mar 14, 6:50 am, Mengu wrote:
> > so, what about the video?
http://www.blip.tv/file/4879126
On Monday, March 14, 2011 11:25:01 AM UTC-4, Kevin Ivarsen wrote:
> Videos from some of the Pycon talks have been showing up on
> http://pycon.blip.tv.
> Does anyone know if videos or audio from the tutorial sessions
> (Massimo's web2py tutorial in particular) w
Is there anyway to force the update of translations files by code?
I'll add it to the Debian package in case it's possible, so this problem
will disappear...
My understanding is that the database is stored in the web2py app
folder only if you use SQLite (storage.sql). I think web2py keeps
information about the models in app/database, but if you use Postgres,
MySQL, etc., they keep their own copy of the database somewhere else.
Or does web2py instruct P
Hi,
In my timesheet application I have a form which looks like a
spreadsheet, where each cell has a drop-down list of time-measures in
15min increments up to 9 hours, the idea being for the user to set the
time he works against each job on the timesheet. The function below
generates these "Hours I
Videos from some of the Pycon talks have been showing up on
http://pycon.blip.tv.
Does anyone know if videos or audio from the tutorial sessions
(Massimo's web2py tutorial in particular) will eventually become
available?
Thanks,
Kevin
We've looked into the problem a bit deeper.. There is a problem but
it's different than what was in the first post.
The problem seems to be in the locking of the session file:
Two processes/requests open the same session file for write and thus
get a handle on it
One request gets the portalocker
Hello everybody,
i'm trying to use web2py to manage an LDAP database. I'm using the
python-ldap module to access LDAP but I'm not able to save the ldap
connection in the session. I guess the problem is that the
SimpleLDAPObject created by the ldap.initialize() function is not
pickable. So I need to
hi jonathan. i tried renaming routes.py and leaving the default config, and
that actually did not work either. so something happened in the upgrade that
screwed things up.
i had a web2py-wide routes file in my last version, but it simply had the
error code and nothing else. i didn't fully grok
ps my app is indeed named init and the controllers folder has appadmin.py.
forgot to reply to that last time.
Hi & welcome,
yes, you can have multiple layouts, just change the following line in
your views
{{extend 'layout.html'}}
to something else e.g.
{{extend 'layout2.html'}}
On Mar 14, 10:30 am, Rupesh wrote:
> Hi,
> i am new at web2py. how i can use the multiple layouts within one
> project? i w
Thanks Massimo.
In my case the table "meta" corresponds to "locations. "
What I posted works fine, but the question I have is how to create
fields using a loop. Perhaps a method add_field.
Best regards
Jose
On Mar 14, 2011, at 9:15 AM, mattynoce wrote:
> hi jonathan. i tried renaming routes.py and leaving the default config, and
> that actually did not work either. so something happened in the upgrade that
> screwed things up.
>
> i had a web2py-wide routes file in my last version, but it simply ha
woah! i just found it.
i neglected to mention that i was running on gae, using the mac sdk. i
didn't think to mention it. but it looks like that's an important piece
here.
i had been checking my log file and it was telling me it was returning 404
errors. unfortunately, i took that to mean tha
Sorry I only use SQLite for my needs I did not try with other server
based database
On 14 mar, 16:53, VP wrote:
> My understanding is that the database is stored in the web2py app
> folder only if you use SQLite (storage.sql). I think web2py keeps
> information about the models in app/database,
Hi,
i am new at web2py. how i can use the multiple layouts within one
project? i want to use one layout for user and another for
administrator.
Any help will be Appreciable.
thanks in advance.
two more questions...
what made you choose taskqueue over cron?
I see from your sample snippet of code that taskqueue will stop being
called when you are sure all rows are processed. How you do kick-start
the process again? and how does it know that a existing taskqueue loop
isn't already cycling
On Mar 14, 2011, at 9:57 AM, mattynoce wrote:
> woah! i just found it.
>
> i neglected to mention that i was running on gae, using the mac sdk. i didn't
> think to mention it. but it looks like that's an important piece here.
>
> i had been checking my log file and it was telling me it was retu
You can even have:
=== layout.html ===
{{include}}
=== layout2.html ===
{{extend layout.html}}
{{include}}
=== index.html ===
{{extend layout2.html}}
{{block}}s can also be useful for varying layout elements.
Cool can you post a link to this post :-)
would be greatly appreciated
*cheers
Andrew
On Mon, Mar 14, 2011 at 6:30 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> :-)
>
> On Mar 14, 2:36 am, pbreit wrote:
> > Sorry for the brevity. I think can put together a whole app and post it
I am not aware of any way to backup the database along with the application
if you are not using SQLite, however, in appadmin, you could export your
tables to CSV files. You could probably write a backup script in web2py that
does the CSV export. Though the best way is to backup is using your da
Wonderful, thanks! For some reason it isn't coming up when I search
blip.tv for web2py, so I had trouble finding it.
Looking forward to watching it.
Kevin
On Mar 14, 11:39 am, Anthony wrote:
> http://www.blip.tv/file/4879126
>
>
>
>
>
>
>
> On Monday, March 14, 2011 11:25:01 AM UTC-4, Kevin Iva
On Mar 14, 2011, at 8:55 AM, Corne wrote:
>
> We've looked into the problem a bit deeper.. There is a problem but
> it's different than what was in the first post.
>
> The problem seems to be in the locking of the session file:
> Two processes/requests open the same session file for write and thu
jonathan, you do have a fair point -- i already have to edit that file each
time i upgrade, as you say, to change the application and version, as well
as add in some handlers for gae. so it's not that big a deal to go in and do
this as well, so long as i know to do it.
but i think your second p
There is nothing wrong in this code. Look into the value returned by
Val = TSE[field]
I think it may not contain what you think it does. I do not know why.
On Mar 14, 10:33 am, Andrew Buchan wrote:
> Hi,
>
> In my timesheet application I have a form which looks like a
> spreadsheet, where each
The second part was not recorded because I forgot to press the button
[record] after the break and because the people who paid to attend
deserve some exclusivity.
Anyway, the second part included similar content as http://vimeo.com/20760298
and this http://vimeo.com/20768689 (although we did not bu
this is not possible because it may translate variables and their
value is not known until runtime.
On Mar 13, 1:45 pm, pbreit wrote:
> Interesting idea: "Maybe this check should be done with all the language
> files when a new release is done, so they are complete, avoiding this write
> attempts
something like
db.define_table('name',*{Field(name) for name in ])
On Mar 14, 11:24 am, Jose wrote:
> Thanks Massimo.
>
> In my case the table "meta" corresponds to "locations. "
>
> What I posted works fine, but the question I have is how to create
> fields using a loop. Perhaps a method ad
I will take Jonathan's patch. Sorry I was slow but I was travelling
and not I am little behind.. :-(
On Mar 14, 2:18 pm, mattynoce wrote:
> jonathan, you do have a fair point -- i already have to edit that file each
> time i upgrade, as you say, to change the application and version, as well
> as
Put web2py in a dropbox folder! Once a day hg commit the entire
folder.
On Mar 14, 1:08 pm, Ross Peoples wrote:
> I am not aware of any way to backup the database along with the application
> if you are not using SQLite, however, in appadmin, you could export your
> tables to CSV files. You could
On 14 mar, 16:23, Massimo Di Pierro
wrote:
> something like
>
> db.define_table('name',*{Field(name) for name in ])
>
> On Mar 14, 11:24 am, Jose wrote:
>
> > Thanks Massimo.
Exactly, that's what I need.
Thank you
Can you send it to a location outside the USA? I dont not live in the
usa, but would like to have it.
On Mar 14, 4:43 am, mart wrote:
> Hey,
>
> Will be sending it out to the first reply, and a gave dibs to the
> first runner up of anymore Acrobats (or close relatives) found. Still
> have 4 or 5
I'm using the basic router from router.example.py. I also use
subversion to track changes and I have a .svn directory in
applications directory. The load function in gluon/rewrite.py tries to
read controllers in the .svn directory and throws an exception.
I made a change in rewrite.py which fixes
http://www.reddit.com/r/Python/comments/g3th5/best_python_framework_for_web_app_and_restful/c1kpytm
I'd like to give users the option of resizing their images before uploading.
There are a few tools around that do this. I've been looking at:
http://www.plupload.com
and
http://www.shift8creative.com/projects/agile-uploader/index.html
I haven't had much luck integrating them with web2py yet (
Folks,
I've been working my way through the web2py book. The content is
outstanding - many thanks to everyone who is involved with this work!
However, a few small typos popped out at me along the way. Starting
around Chapter 5 I began recording these as I noticed them. (I haven't
yet tried to go b
I solved this so:
def crear():
response.subtitle ='Prueba'
form=crud.create(db.sipfriends)
if form.accepts(request.vars, session):
session.name = form.vars.name
session.calllimit = form.vars.calllimit
redirect(URL('complemento'))
return dict(form=form)
def c
It is the database engines that do not suport special chars in table
names and field names.
On Mar 11, 6:45 pm, cabildocl wrote:
> Is this to be? "web2py or python?
>
> On 9 mar, 19:31, Massimo Di Pierro wrote:
>
>
>
>
>
>
>
> > you cannot. You can have a field.label with the id but not in the
>
as i replied on the slice page, please send me your traceback and i'll take
a look. i also suspect that is a field that doesn't need to be in the
sample, so it can be stripped from the custom auth table.
christian
Carl,
i use taskqueue when i need to process more rows than i can in the limit
(which was 30 seconds, now is 10 minutes for taskqueue tasks). For things
like reporting aggregations that i need to run daily, i have a wrapper
function that is called via cron that adds the call of the processing
Andrew,
I have not looked into the express checkout solution - but i think that is
because i wanted full cart functionality.
sorry about my sloppy code on the slice. guess i did not sanitize it well
enough...
sitesettings is a table that i have that is just name, value pairs (the
following i
Oh sorry,,, I meant to say (should have been clearer), that a few had
already replied (but in email) That's what I meant by "will be sending
out to the first reply"... But, If I do find more (will tackle that
next weekend), then yes, I guess it could be sent outside of NA, even
if a little slow get
Any piece of advise, please!
How can I update each row by changing checkbox states?
{{for nums in table:}}
{{=TR(
TD(nums.id),
TD(nums.num),
TD(nums.name),
TD(nums.dtime),
TD(INPUT(_type='checkbox',value=nums.enter)),
TD(A(nums.enter_d,_href=URL('index'))),
TD(INPUT(_t
Got this error and trying to understand what happened...
I deployed the app to the server (copy/paste folder) and it worked
well, but after couple hours the part related to the db, out of a
sudden stopped working... The same app still works on the local
computer, and is accessing the same remote M
I just pushed web2py onto dotcloud but i get the following error.
admin disabled because unable to access password file
Not to sure how to fix this.
You need to acces your dot intance via ssh and run web2py from shell with -a
passwd
Enviado via iPhone
Em 14/03/2011, às 19:12, stargate escreveu:
> I just pushed web2py onto dotcloud but i get the following error.
>
> admin disabled because unable to access password file
>
> Not to sure
Were you using Balsamiq in some of those examples? And did you use anything
to generate the html from your mockups?
Mike
On Mar 14, 2011, at 1:10 PM, Gene Chow wrote:
>
> I'm using the basic router from router.example.py. I also use
> subversion to track changes and I have a .svn directory in
> applications directory. The load function in gluon/rewrite.py tries to
> read controllers in the .svn directory and throws
Alternatively, you can place a paramters_#.py file in your web2py directory
with a known password.
You need one file per port
(parameters_8000.py, parameters_80.py, parameters_443.py). The file should
be located in the same directory as web2py.py
I'm using virtual lazy fields, but I have a similar problem. It looks
like it's only happening with one specific virtual field though.
Here's my (abbreviated) comparison - dir is apparently slowing things
down.
With the virtual field of death enabled:
581186 function calls (580899 primiti
I've just downloaded both Python2.7 (and installed it) and Web2Py,
then tried the python2.7 web2py.py -h and it says: it requires 2.5. or
2.6
under 2.6 nothing much more happens
Hi Cyber,
Sorry for delay, I have been busy all day.
Good question, I overlooked the fact that you had multiple records. I
was reading too fast! This is a more tricky problem.
Below are some code snippets from some working code that I have which
displays and updates multiple records. I am upd
Are you sure you did not accidentally delete the model file that
defines db or the file is not readable?
On Mar 14, 4:51 pm, "Adnan S." wrote:
> Got this error and trying to understand what happened...
>
> I deployed the app to the server (copy/paste folder) and it worked
> well, but after couple
I think I deleted the model files, or the ones in database folder on purpose
(to disable the app temporarily), but then returned them back.
Only once I deleted the cache files, everything started working again
properly.
On Mon, Mar 14, 2011 at 6:57 PM, Massimo Di Pierro <
massimo.dipie...@gmail.c
Ack, Massimo's been spying on me and knows my workflow! :-) Dropbox is very
nice for while you're developing & using different computers.
As others have said, only works well if you're using sqlite or are just
worried about the code & not the db. If you want to backup your database too
you'll p
The ignorant will always be willing to offer an [ill,un]informed opinion.
Just lets me know I need to really get to work on that demonstration project.
On Mon, Mar 14, 2011 at 01:32:16PM -0700, Massimo Di Pierro spake:
> http://www.reddit.com/r/Python/comments/g3th5/best_python_framework_for_web
Hi Kevin
That is great! These small typos and mistakes detract from the web2py
project.
I have already done those edits (and I hope correctly!). If you post
more edits, I and other editors are very pleased to make the
changes.
Best regards,
David
On Mar 14, 8:53 pm, Kevin Ivarsen wrote:
> Fo
Hi every body! I have some issues with Internet Explorer (I think all
versions)
when I get into my app developed with wep2py in chrome or firefox
there's no problem, but with IE, the dropdowns doesn't show correctly,
when I select a value it appears split, some fields are overlapped...
well I have
Not sure why but cron never worked for me...
0-59/1 * * * * root *admin/test
def test():
mail.send('titogarr...@gmail.com','test','teste')
return 'test'
Nothing happens... I've tried locally and on webfaction...
What I am doing wrong?
Also how can I use external cron? I couln't fi
It is mentioned in that thread that it is being considered to drop the
'enterprise' tagline. I think that is a good idea because:
1. 'Enterprise' is so often used in a Java context. This may be wrong,
but it is true.
2. Web2py is not especially an 'enterprise' framework.
3. The rationale that 'en
What I am trying to do is when i go to mydomain.dotcloud.com and go to
the admin the administration will work without having to go to ssh
every time i want to do any administration. One method I do like is
placing a parameters_#.py in the web2py directory/ But how do i
generate this file? Thanks
In fact, seems that it doesn't work on webfaction...
On Mon, Mar 14, 2011 at 9:15 PM, Tito Garrido wrote:
> Not sure why but cron never worked for me...
>
> 0-59/1 * * * * root *admin/test
>
> def test():
> mail.send('titogarr...@gmail.com','test','teste')
> return 'test'
>
>
> Nothi
If you run web2py locally, there should be onion your hard drive.
Strange I just ran python 2.7 and it worked for me...
On 3/14/11 6:54 PM, Erik Vandamme wrote:
I've just downloaded both Python2.7 (and installed it) and Web2Py,
then tried the python2.7 web2py.py -h and it says: it requires 2.5. or
2.6
under 2.6 nothing much more happens
Agreed. "enterprise" is it bit odd here.
At least for the time being, you should probably not attempt to run admin on
DotCloud because using admin remotely requires SSL, and DotCloud does not
yet support SSL, so it's a big security risk. There is a workaround
mentioned in the DotCloud web2py tutorial here:
http://docs.dotcloud.com/tut
I would like to drop the enterprise, because translated to portuguese this
means "empresarial" which is "corporated" just like Java.
I like just:
Web2py - the web framework to get things done!
Enviado via iPhone
Em 14/03/2011, às 22:06, pbreit escreveu:
> Agreed. "enterprise" is it bit od
I agree with Bruno, IMO his suggestion stresses the main feature of
web2py. I would just suggest a small change to the wording:
** Web2py - the web framework that gets things done! **
If Massimo agrees in principle to change, maybe we should have a
thread on the topic and let the community m
As someone who's developed several web2py appications for 'enterprise' clients,
I can only say that the managers who don't know any better do actually notice
the presence of that particular adjective. It helps get web2py past the
buzz-word filter.
I've had a client tell me that my application "
Cool
ok so when I pass the sitesettings attributes to my view what am I passing?
{{ attributes = {"cert_id":sitesettings.paypal_cert_id,
"cmd":"_cart",
"business":sitesettings.cart_business,
"add":"1",
"custom":a
Well, my own (limited) experience suggests that most 'enterprise'
clients have some proper IT guys who would know what they are doing
and have already made a few strategic commitments, which, if they do
not include Python, then you are flogging a dead horse (I mean
snake!). I do not see any benef
we will change the tagline. Let'open a thread for proposals
On Mar 14, 9:50 pm, villas wrote:
> Well, my own (limited) experience suggests that most 'enterprise'
> clients have some proper IT guys who would know what they are doing
> and have already made a few strategic commitments, which, if
I think
0-59/1 * * * * root *admin/test
should be
0-59/1 * * * * root *admin/default/test
there may be other problems.
On Mar 14, 7:15 pm, Tito Garrido wrote:
> Not sure why but cron never worked for me...
>
> 0-59/1 * * * * root *admin/test
>
> def test():
> mail.send('titogarr...@gmail.
At PyCon some people have suggested that they would like the ability
to switch off some web2py functionality to make it faster. I never
thought of this being an issue because I do not think web2py does much
outside models/views and controllers.
I run a lot of tests today using a barebone
def
I think also address the scalability problem that has occasionally
been reported using ab tests.
Apache ab sends many uncorrelated requests and each of them results
(resulted) in a new session file saved. Eventually the more tests you
run the more files you have. The more files in the same folder
This also explains why the problem occurred with Apache ab but not for
(usually) people using web2py in production. In production you do not
have thousand of session files because many of the requests from from
the same few users.
There are exceptions. Apps that have many semi-static pages or are
Cron didn't work for me either, so I used the system cron.
One question I have though is why "root" when web2py is run as www-
data?
Another vote for dropping the word "Enterprise". I don't think the
word will make it any more convincing for "enterprise" people when
they shop around for frameworks. On the other hand, it's a source of
criticisms (justified or not).
Web2py's merits should be based on substance and good document
What I mean is ferwer requests than all requests actually change the
session.
On Mar 14, 11:58 pm, VP wrote:
> I think when I speak of scalability we shouldn't make the assumption
> that "requests [are coming from] only a few users". That said, it's
> great to know session handling is being opt
The user is irrelevant. The value is not used.
On Mar 14, 11:53 pm, VP wrote:
> Cron didn't work for me either, so I used the system cron.
>
> One question I have though is why "root" when web2py is run as www-
> data?
I think when I speak of scalability we shouldn't make the assumption
that "requests [are coming from] only a few users". That said, it's
great to know session handling is being optimized. I think smart
session handling and smart cache handling will greatly improve
performance.
On Mar 14, 11:1
1 - 100 of 101 matches
Mail list logo