I will post that and more after the PyCon tutorial.
Tomorrow I am traveling and I am still catching up with work. :-(
On Mar 7, 10:25 pm, mart wrote:
> Massimo, this is great! context is everything and nothing like audio
> to accompany the visual!
>
> Thanks for that! :)
>
> if possible, would yo
Hi,I am a newcomer of web2py, I am learning it by following this guide
The Official (3rd Ed.)web2py Book(http://web2py.com/book/default/
chapter/03)
At the step of creating db, after I created db.py, In this page
http://127.0.0.1:8000/ImageBlog/appadmin/index, I couldn't see my
tables:image and co
Dear all,
I need to construct a form with some fields that has to be choosen
within a different set depending on another fields value... is there
some examples on line to get inspiration from?
I try to be a little more clear...
if I have a field like that:
Field('a', 'integer', requires=IS_I
hi massimo,
the problem is if i click the link logout, i get redirected to the
link: ...user/profile
but this is wrong! i will redirected to the index page
On 8 Mrz., 00:15, Massimo Di Pierro
wrote:
> Hello pk,
>
> I do not fully understand the problem. I understand the code but not
> your workf
Ideally there should just be one clear and convenient way of doing
something, otherwise we can confused.
Everytime we introduce a synonym we raise numerous questions on the
list and add a paragraph to the book. Ascribing a special meaning to
a period is totally against the clarity of the code. I
http://vimeo.com/20743963
I'm a bit intrigued by how the screencasts are made.
Given that they show no typos and constant typing speed, I assume you
made (or found) a system that takes a text file as input and renders it
to a screencast automatically?
Does everything seem ok using the admin interface?
http://127.0.0.1:8000/admin
Try editing and running the app from there.
You should see your code correctly in db.py
The app should either run or you get a ticket or something.
Regards,
David
On Mar 8, 8:43 am, Tom wrote:
> Hi,I am a newcomer o
After running http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
on ubuntu 10.10 and setting up a postgres db for an app, I was getting
"global name 'psycopg2' is not defined". Fixed it with:
apt-get install python-psycopg2
sudo /etc/init.d/apache2 restart
For 10.10, the line
What's a good, comprehensive and web2py-like literature source to
learn about web application development from the top down. I've
developed a python application, built the databases and rudimentary
web interface but I feel I'm constantly working too much from the
bottom up. E.g. session management
Sorry for the nit picking on a good overview of Python showing
important concepts, but I caught a few typos:
Line 156 (around 13:30)
Python programmers prefer using 'self' instead of 'self'
should obviously be
Python programmers prefer using 'self' instead of 'this'
around 18:00
190> print D
Something like that. Actually the typing speed is random.
It is a tool I am working out, trying to automate my teaching job.
It is inspired by this:
http://code.google.com/p/playerpiano/
but not related and does more stuff.
Once I am done I will release it.
Massimo
On Mar 8, 6:33 am, Stefaan
URL (f = 'default ', c = 'home')
This is desnecessary. I'm not used. Buy like this:
URL('default','home')
This is clean.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/3/8 villas
> Ideally there should just be one clear and convenient
That' great thanks ! :)
On Mar 8, 3:01 am, Massimo Di Pierro
wrote:
> I will post that and more after the PyCon tutorial.
> Tomorrow I am traveling and I am still catching up with work. :-(
>
> On Mar 7, 10:25 pm, mart wrote:
>
>
>
>
>
>
>
> > Massimo, this is great! context is everything and no
Cool! Congratulations! Submited by Twitter :)
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/3/8 mart
> That' great thanks ! :)
>
> On Mar 8, 3:01 am, Massimo Di Pierro
> wrote:
> > I will post that and more after the PyCon tutorial.
> >
That is so cool! something like text-to-speech, but with purpose! If I
can guess, you take a script, comments get read and typed out
(displayed differently, different color maybe) while code gets
exec'ed? Or what ever you are using, its Ingenious! I was just
thinking "now that guy has to be the bes
There isn't a python module for ispcp. It has fcgi though (if that
helps).
On 8 Μαρ, 01:17, Massimo Di Pierro wrote:
> I have never used this. Is there a python module for ispcp?
>
> On Mar 7, 1:59 pm, Haros wrote:
>
>
>
> > Hello,
>
> > I am trying to make web2py work with ispcp but I fail. Go
On Mar 7, 2011, at 11:33 PM, Plumo wrote:
> I have the following listing in routes:
> ('/robots.txt', '/cms/static/robots.txt')
>
> This lets me access /robots.txt on my local computer, but returns "invalid
> request" when I upload this to GAE. Are there meant to be any differences
> when using
Thanks for this video.
One question:
lines 97 and 100:
'name' = 'name'?
it's often need to get new info of updated record.
For example, in controller:
row = db(db.products.id==123).select().first()
row.update_record(name='helloworld')
so if I want to show new updated record with id==123 in the v
sorry I dropped a bracket abbreviating for this posting. The live code
has correct syntax and I did a workaround to make it run. Looks like
html.py is broken in this regard. The workaround is to replace outer
ul tag by ul html helper call.
On Mar 7, 7:18 pm, Brian M wrote:
> Well you're missing
add shortcuts and much more magic.
distance of the system of philosophy python
Python is clean, easy to read.
You can love the language and can devote
time reading, that is understandable, allowing you to learn more easily
web2py is easy, because it's python, not have to learn new and complicated
On Mar 8, 6:03 am, pk wrote:
> hi massimo,
>
> the problem is if i click the link logout, i get redirected to the
> link: ...user/profile
> but this is wrong! i will redirected to the index page
>
> On 8 Mrz., 00:15, Massimo Di Pierro
> wrote:
>
> > Hello pk,
>
> > I do not fully understand the
Hi Clayton,
How did you fix it?
Thanks for your help,
Bernardo
2011/3/7 Clayton
> Issue 210: Typo in gluon.dal.update_record
>
> Patched it manually to get my app up and running.
>
> This breaks a lot of apps; how soon can a new release get out?
>
> Clayton
>
> On Mar 7, 4:11 pm, Clayton
Did you change a setting?
http://web2py.com/book/default/chapter/08?search=logout_next
We cannot confirm that it is broken unless we are able to re-produce which
we are not. We would need a specific code example from you that does not
work to have any chance of fixing something that is broken.
On Mar 8, 2011, at 9:45 AM, DenesL wrote:
>
>
>
> On Mar 8, 6:03 am, pk wrote:
>> hi massimo,
>>
>> the problem is if i click the link logout, i get redirected to the
>> link: ...user/profile
>> but this is wrong! i will redirected to the index page
>>
>> On 8 Mrz., 00:15, Massimo Di Pierro
It's tough, I know what you mean. While there is a lot of reference
material, there is less about how to apply it in practice. Or at least, that
information is scattered about in a million different blog posts.
Some great, although not free, teaching material can be found at these
sites:
http:/
I saw a post on web2py-developers about error messaging. I love the
ticketing system but one thing that always surprises me is that it never
seems to include any of the current variables or environmental info. Would
it make sense to add information like that or am I missing it? This is
especial
How customizing login form?
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
Ok,
On line 4776 should appear the following:
colset[k] = v
kind regards,
Bernardo
2011/3/8 Bernardo Botella Corbí
> Hi Clayton,
>
> How did you fix it?
>
> Thanks for your help,
> Bernardo
>
> 2011/3/7 Clayton
>
> Issue 210: Typo in gluon.dal.update_record
>>
>> Patched it manually to
What do you want to customize?
Appearance or the fields?
Richard
On Tue, Mar 8, 2011 at 1:37 PM, contatogilson...@gmail.com <
contatogilson...@gmail.com> wrote:
> How customizing login form?
> _
> *Gilson Filho*
> *Web Developer
> http://gilsondev.com
In principle some more optimizations are possible under the hood in
DAL...
On Mar 8, 10:45 am, LightOfMooN wrote:
> Thanks for this video.
> One question:
> lines 97 and 100:
> 'name' = 'name'?
>
> it's often need to get new info of updated record.
>
> For example, in controller:
> row = db(db.pr
fixed in trunk.
On Mar 8, 12:49 pm, Bernardo Botella Corbí wrote:
> Ok,
>
> On line 4776 should appear the following:
>
> colset[k] = v
>
> kind regards,
> Bernardo
>
> 2011/3/8 Bernardo Botella Corbí
>
>
>
>
>
>
>
> > Hi Clayton,
>
> > How did you fix it?
>
> > Thanks for your help,
> > Bernard
The docs for lazy virtual fields (http://web2py.com/book/default/
chapter/06#Virtual-Fields) give incorrect results; the virtual field
is incorrectly mapped to the last row selected in certain cases.
Here's a sample:
class table_story_titleAsSlug(object):
def titleAsSlug(self):
def la
here is my app: http://www.hs-augsburg.de/~pk/web2py/Kundenportal.zip
i have no idea what the problem is... :(
i hope somebody can help me badly...
On 8 Mrz., 19:06, Jonathan Lundell wrote:
> On Mar 8, 2011, at 9:45 AM, DenesL wrote:
>
>
>
>
>
>
>
>
>
>
>
> > On Mar 8, 6:03 am, pk wrote:
> >> hi
ok now it works, i think this was the problem:
def user():
loginform=auth.login()
registerform=auth.register()
return dict(loginform=loginform, registerform=registerform)
i changed it to just using return dict(form=auth())
thanks for your help!
On 8 Mrz., 19:06, Jonat
I will try to reduce it to a small example. From the call stack it
looks like web2py is confused between python code and html. It seems
to be executing the html thinking it is python.
On Mar 8, 12:57 pm, pbreit wrote:
> We cannot confirm that it is broken unless we are able to re-produce which
I think web2py needs regression tests, at least for core functionality
Change formstyle, fields e text button.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/3/8 Richard Vézina
> What do you want to customize?
>
> Appearance or the fields?
>
> Richard
>
>
> On Tue, Mar 8, 2011 at 1:37 PM, contatogilson...@gm
Those line don't get you what you want if you place them in your user function?
crud.settings.formstyle = 'table3cols' or 'table2cols' or 'divs' or 'ul'
crud.messages.submit_button = 'Submit'
Richard
On Tue, Mar 8, 2011 at 3:03 PM, contatogilson...@gmail.com <
contatogilson...@gmail.com> wrot
problem solved - my error. There was a second reference field that
had a broken reference in it.
On Mar 7, 5:43 pm, Philip wrote:
> I am importing data into an existing web2py application. The tables
> are connected - I'll pretend for the moment that they are the owners
> and dogs tables from t
On Mar 8, 6:37 pm, "contatogilson...@gmail.com"
wrote:
> How customizing login form?
Try this:
auth.settings.formstyle='divs'
Before:
form=auth()
On Mar 8, 10:38 am, mart wrote:
>
> Music: I agree with DenesL (i think the twins were still humming the
> tune this morning) My suggestion -> Konstantin Scherbakov, maybe
> Liszt's transcriptions of Beethoven symphonies for the Piano (He did
> all 9, does not miss a thing and are on all fronts,
Hi,
I'm giving a try to Web2Py, but I'm still unable to just get data out
of an existing table in Oracle.
As I only have a read-only account on this DB, I use a second
connection identifier called db2, and leave the db untouched.
- My first problem was a major typo in the documentation. For oracl
Hello,
Based off the web2py book in the start, I was getting the idea that
the controller would store the strings versus writing them directly
into the view. From my understanding you can do that and have a mix
in the view but what is the best practice for this? This is what I
have started with.
Oops auth.sett... ;-)
Richard
On Tue, Mar 8, 2011 at 3:21 PM, Richard Vézina
wrote:
> Those line don't get you what you want if you place them in your user
> function?
>
>
> crud.settings.formstyle = 'table3cols' or 'table2cols' or 'divs' or 'ul'
>
> crud.messages.submit_button = 'Submit'
>
>
>
I go testing. Thank you!
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/3/8 Richard Vézina
> Oops auth.sett... ;-)
>
> Richard
>
>
> On Tue, Mar 8, 2011 at 3:21 PM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>>
>> Those line
Great video, thanks!
I posted the video in tinyogg.com (html5)
http://tinyogg.com/watch/B4JmP/
2011/3/8 mikech
> Great video, thanks!
Nice. Would the text of the terminal session be available?
password_two doesn't seem to be working for me still.
My user() function is the default and this is in my user.html view but I
still get "None" for the password_two widget. I am using Mac
download Version 1.93.2 (2011-03-04 23:48:59).
{{=form.custom.begin}}
Email: {{=form.custom.widget.
OK, thanks.
I can't emphasize enough to try and use the basic functionality provided by
Web2py. It's perfect for when you are just starting out a project. You can
always customize it later. But it's really nice being able to focus on your
app from the beginning.
On Mar 8, 1:06 pm, Jonathan Lundell wrote:
> Try making the requests with curl -I and see if there's a chain of redirects
> that might offer a clue.
Maybe you meant curl -1 (minus one),
using this option I get the default layout with the two forms, no
redirection (?).
Most likely you are going to need to somehow retrieve the schema of the
Oracle db and then hand-code your models to match. There are scripts that
can help for MySQL and Postgres but I don't think that's going to work for
you:
http://code.google.com/p/web2py/source/browse/#hg%2Fscripts
You also
I mean curl --trace-ascii
On Mar 8, 4:37 pm, DenesL wrote:
> On Mar 8, 1:06 pm, Jonathan Lundell wrote:
>
> > Try making the requests with curl -I and see if there's a chain of
> > redirects that might offer a clue.
>
> Maybe you meant curl -1 (minus one),
> using this option I get the default
On Mar 8, 2011, at 1:37 PM, DenesL wrote:
>
> On Mar 8, 1:06 pm, Jonathan Lundell wrote:
>> Try making the requests with curl -I and see if there's a chain of redirects
>> that might offer a clue.
>
> Maybe you meant curl -1 (minus one),
> using this option I get the default layout with the two
My suggestion -> Konstantin Scherbakov, maybe
Liszt's transcriptions of Beethoven symphonies for the Piano
His Lyapunov etudes are well worth listening to as well :)
On Tuesday, March 8, 2011 1:26:48 PM UTC-5, pbreit wrote:
>
> I saw a post on web2py-developers about error messaging. I love the
> ticketing system but one thing that always surprises me is that it never
> seems to include any of the current variables or environmental info. Would
> it make sen
On Mar 8, 2011, at 2:00 PM, DenesL wrote:
>
> I mean curl --trace-ascii
>
> On Mar 8, 4:37 pm, DenesL wrote:
>> On Mar 8, 1:06 pm, Jonathan Lundell wrote:
>>
>>> Try making the requests with curl -I and see if there's a chain of
>>> redirects that might offer a clue.
>>
>> Maybe you meant cu
On Mar 8, 2011, at 2:20 PM, Jonathan Lundell wrote:
>
> On Mar 8, 2011, at 2:00 PM, DenesL wrote:
>>
>> I mean curl --trace-ascii
>>
>> On Mar 8, 4:37 pm, DenesL wrote:
>>> On Mar 8, 1:06 pm, Jonathan Lundell wrote:
>>>
Try making the requests with curl -I and see if there's a chain of
I guess so. I pretty much never see anything listed under "Variable". The
"Inspect Attributes" are always objects which I'm not sure what to do with.
Occasionally the Function Argument List is helpful.
Now that I see "Context", that looks like what I'd like. This may be a false
alarm. I think I
Oh, great. That accounts for why only IS_URL is immediately
accessible. Thanks.
On Mar 6, 1:24 am, Jonathan Lundell wrote:
> On Mar 5, 2011, at 10:09 PM, Chris wrote:
>
>
>
> > Is there a substantive difference between IS_HTTP_URL and IS_URL?
>
> IS_URL is a front end to IS_HTTP_URL or IS_GENER
Hi,
Can I include the web2py template module in my desktop application
without affecting the license of my application?
Anybody??? Please??
On Mon, Mar 7, 2011 at 6:09 PM, Ialejandro wrote:
> Hi again! Playing again with my hotel booking sys I have a new
> doubt...
>
> I have this model:
>
>
> db.define_table('room',
> Field('name','string),
> Field('ubication','string'))
>
> db.define_table('booking',
>
Please note that this bug silently causes corrupt data to be written
to the database! Please, please release an update pronto...
Clayton
On Mar 8, 2:41 pm, Vasile Ermicioi wrote:
> I think web2py needs regression tests, at least for core functionality
dah . dah . dadah..dadadah...!!! yes please!! A definite must,
agreed!!! :) Alright, now I know I should have IM'ed in sick (although
I work remotely from home, but still), cranked up the volume, and just
floated away... Now, I love my ipod touch again :)
On Mar 8, 5:10 pm, Stefaan Himpe wrote:
Oh,I made a stupid mistake,I defined my tables under controllers.Now
it's correct. Thanks.
On 3月8日, 下午8时41分, villas wrote:
> Does everything seem ok using the admin interface?http://127.0.0.1:8000/admin
>
> Try editing and running the app from there.
> You should see your code correctly in db.py
I was able to get Amazon's Simple Email Service working relatively easily
using the "Boto" library. I tried to write up a slice but couldn't figure
out how to format it
properly: http://web2pyslices.com/main/slices/take_slice/123
1. Sign up for Amazon Web Services: http://aws.amazon.com
2. Ena
The function in the controller returns either the page content
directly as a string (no view is used) or a dictionary with the
key:value pairs to be used in the corresponding view.
Usually each function in a controller returns only a bunch of
variables, far from a gazillion.
> def index():
>
What you are doing is fine for the most part. What you will probably see
more often is something like this:
=== controller ==
def quotes():
quotes = ['this is quote 1', 'this is quote 2']
return dict(quotes=quotes)
=== view ===
{{for quote in quotes:}}
{{=quote}}
{{pass}}
awesome - previously I had to hack some custom HTML together to support this
thanks John, that makes sense.
On Mar 8, 2011, at 6:36 PM, Plumo wrote:
> thanks John, that makes sense.
I tested it on the stock welcome app, and it seems to work fine. I'll send
Massimo a patch for the example app.yaml, since this is a fairly common
requirement.
Hello all
I found an unknown user id in auth_event.
Does anybody has same experience?
system is running on GAE with janrain.
To allow multiple room booking I would change the tables as follows:
db.define_table('room',
Field('name','string'),
Field('ubication','string'),
format='%(name)s'
)
db.define_table('booking',
Field('room','list:reference room'),
Field('host','string'),
Field('approved','bool
yes also worked for me.
People will need to change the application name, so should this be included
in app.yaml but commented out?
On Wed, Mar 9, 2011 at 2:03 PM, Jonathan Lundell wrote:
> On Mar 8, 2011, at 6:36 PM, Plumo wrote:
> > thanks John, that makes sense.
>
> I tested it on the stock
That is called cascaded fields.
One example: http://groups.google.com/group/web2py/msg/b2d536d444001565
Use the advanced group search
http://groups.google.com/groups/advanced_search?safe=off&q=group:web2py
to find more entries with "cascaded"
(type the word in the form where it says "all these wo
2011/3/4 ChrisT :
> Hello everyone,
>
> I am in the process of evaluating web2py and django to decide which
> one I am going to use for a project of mine.
> I am new to both frameworks and web frameworks in general (although I
> did experiment with Ruby on Rails a while back)
> I must say I am lear
Oh cool thanks... Haven't think about that. Thanks
On Mar 7, 5:40 am, Bernd Rothert wrote:
> Hi Yannick,
>
> On 6 Mrz., 20:07, Yannick wrote:
>
> > Hello mate,
>
> > A value is saved in the DB as lower case and we put this validation
> > "IS_NOT_IN_DB()". If for that field the user enter a Capit
On Mar 8, 9:26 pm, Pivert wrote:
> - My first problem was a major typo in the documentation. For oracle
> connector, the username and password are not separated by : but by /,
> to the oracle connection string is :
> oracle://username/password@DBNameInTnsnamesFile'
Fixed, thank you.
On Mar 8, 2011, at 7:35 PM, Richard Baron Penman wrote:
> yes also worked for me.
>
> People will need to change the application name, so should this be included
> in app.yaml but commented out?
I think that app.yaml needs to become app.example.yaml (along the lines of
routes.example.py and log
The SheepIt jQuery plugin looks excellent - thanks for the link. I'll need
to make this work with web2py sometime in the next couple of months.
Hopefully someone else (not mentioning any names ;-) ) will provide some
example code before then!
On 9 March 2011 04:18, Dr Schmulge wrote:
>
> Hi, C
81 matches
Mail list logo