no you shouldn't have to do anything but run web2py.
When I go to admin, it goes to http://localhost:8000/admin/default/site (my
session file gets accessed, but doesn't change)
What version of python are you running?
On Mon, Jul 13, 2009 at 12:59 AM, Gijsbert
Yes and no.
the mechanism of importing modules (in python and in any other
language) allows to get stuff out of the module (functions, variables)
but not in the module (request, response, cache, etc). So you have to
pass them. You do not want to pass them to every function so here is
the
Which python version are you using?
Is this a clean install or do you have lots of modules installed?
My guess is that it is either a cookie issue, or permission issue (you
can write the session but not read them) or a bug with cPicke. in your
version.
Can you try the OSX binary too.
Massimo
Hi, just to add my opinion to this:
- I agree with Joe, in that documentation needs to be the first base.
Proof of it, is that even though, it is probably writen all over in
different places, I have had to come to the T2, T3 conclusion that
Massimo so clearly writes here, by deduction, and not
Doublecheck that you actually have properly encoded data in the
database ('show table X' should tell you the encoding of the table
itself). Often 'displaying correctly' is misleading because of the
possibility of making the same encoding mistake both ways (=treat
mysql as binary storage). The
Dear Massimo,
First of all. I like to thank Massimo and developers for doing a great
job. I'm still looking forward that i will finish my web2py apps. You
all are putting an huge amount of energy into web2py. I see several
features emerging and growing to maturity. From T2, T3 to CRUD etc.
How do I stop double encoding or the treating of data as binary
storage?
What I tried was:
changed the encoding of the of the controller and layouts to see if i
am double encoding.
But got the same display as in my previous port.
the output from mysql in my database
SHOW COLLATION LIKE
That's a utf8 to 8859 conversion right there. The mysql table (or data
in it) is not utf8. Whatever else you're using is probably making the
same error both while writing and reading the data, that's why it
comes out OK (or you have an AddDefaultCharset UTF8 if you're using
apache). The bottom
Here is exception when my script insert unicode data:
[part of ticket
message]-
File /var/www/vhosts/help4me.ru/subdomains/web2py/httpdocs/gluon/
sql.py, line 1480, in insert
You don't need the change anything in the layouts or the controller,
or to be precise, you can, but that's only going to cause more
problems down the line. The Right Way (TM) is to do a database dump,
fix the encodings, and import back.
The collations don't matter in this regard - it's the TABLE
thank you both, i think your suggestion with the database encoding is
correct as ,utf-8 encoding worked correct for a postgres database.
I will try to correct the mysql database and post if I get problems.
On Jul 13, 12:15 pm, AchipA attila.cs...@gmail.com wrote:
You don't need the change
When will the book be released?
I purchased 3 weeks ago the old book online. :-(
-G
On Jul 12, 3:00 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote:
Hello Massimo,
as you are announcing a update of the book:
Would you please make the code snippets from the book available as zip?
Suiato,
I have just sent the code to Massimo, I dont know if the format I
sent it will be ok, or if the code will be ok. But if you are in a
hurry what you need is actually very simple:
form action=https://www.sandbox.paypal.com/cgi-bin/webscr;
method=post
!-- Select the correct
Weheh,
On Jul 13, 12:19 am, weheh richard_gor...@verizon.net wrote:
Indeed, any EMR (electronic medical record) system must be HIPPA
compliant. There's no reason web2py why an online web2py
I see no reason that web2py cannot be HIPPA compliant. My point was
more in relationship to your
This patch seems to work with PostreSQL too.
Here is output of diff command.
% diff -u sql.py sql_new.py
--- sql.py 2009-07-13 20:20:37.0 +0800
+++ sql_new.py 2009-07-13 20:20:30.0 +0800
@@ -1017,6 +1017,7 @@
self._connection.rollback()
def executesql(self,
Hello,
I'm not sure if I'm doing something wrong or is this some 'feature' in
web2py.
I am storing pieces of HTML in the database, and would like to embed
those strings into a page (it is more complicated than this, but the
essence is the same).
My problem is that whatever I do web2py always
hi all:
in app/models/db.py
..
auth.settings.mailer=mail
auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = True
...
Look into the table auth user, I found the field password is blank.
so, the user's password will be set to blank
{{=XML(variations[x].content,sanitize=False)}}
You can try..
Tamas 写道:
Hello,
I'm not sure if I'm doing something wrong or is this some 'feature' in
web2py.
I am storing pieces of HTML in the database, and would like to embed
those strings into a page (it is more complicated than
from my first view to the new chapters of v2 book I would add:
- some more examples for using widgets
- more documentation about html forms: how preserving validation,
keepvalues, what you must/should declare in the controller. What I
think missing is a practical comparison among the different
Thanks for the suggestions. I will fix 1, do not know about 2. will
seriusly look into 3.
We are rewriting the DAL. It will be easier to extend it. I am
planning to have a CouchDB adapter. I have never used MongoDB but
should be easy to with the new DAL.
Massimo
On Jul 13, 2:19 am, Bottiger
sorry,
in the XML(), sanitize default value is False
Tamas 写道:
Hello,
I'm not sure if I'm doing something wrong or is this some 'feature' in
web2py.
I am storing pieces of HTML in the database, and would like to embed
those strings into a page (it is more complicated than this, but the
web2py assumes all DAL IO is already 'utf8', not unicode. The encoding/
decoding has to be done outside DAL. It is just a convention that
keeps things simple.
On Jul 13, 7:26 am, ont.rif ont@gmail.com wrote:
This patch seems to work with PostreSQL too.
Here is output of diff command.
%
It is not a bug. A blank password field is not a blank password
because the former is a hash of the actual password. A blank password
field means the user cannot login because that is no string that
hashes to blank.
On Jul 13, 7:55 am, 张峥 zzgigi2...@gmail.com wrote:
hi all:
in
{{=XML (variations[x].content)}}
should do what you want.
On Jul 13, 7:42 am, Tamas tma...@gmail.com wrote:
Hello,
I'm not sure if I'm doing something wrong or is this some 'feature' in
web2py.
I am storing pieces of HTML in the database, and would like to embed
those strings into a page
URL:http://127.0.0.1:8000/auth/appadmin/select/db?query=db.auth_user.id0
auth_user.id
http://127.0.0.1:8000/auth/appadmin/select/db?orderby=auth_user.id
auth_user.first_name
http://127.0.0.1:8000/auth/appadmin/select/db?orderby=auth_user.first_name
auth_user.last_name
Hi Folks,
This is NOT a web2py question, but I could see that some people has been
using gmaps on projects... so I have a question regarding it:
Using the Gdirection feature of gmap I could translate the directions to a
place changing the option 'locale' but I couldn't change it to use the
metric
Ah! If I run /opt/local/bin/python2.5 ./web2py.py and unset PYTHONPATH
the sessions work correctly. Access to the errors and admin pages
works!
I have the default macosx python (2.5.1) install, but also a slightly
newer version (2.5.4) installed through macports. There must be some
bad mix
But i can't find way to insert utf-8 data into MysSQL database!
For example:
tusers = db.define_table( 'users',
Field( 'login', 'string',
required = True,
notnull = True,
unique = True ),
Field( 'passw', 'string',
required = True,
JohnMc - Thanks for your thoughtful feedback. I'm not an attorney so I
can't tell you the liabilities of using OpenSource software for EMR.
But I'm sure this issue can also be handled by the appropriate
authorities. However, I think we're getting off topic. Of the various
projects that have been
yes, examples are very valuable, specially if they are useful in real
life context.
On Jul 13, 2:30 pm, carlo syseng...@gmail.com wrote:
from my first view to the new chapters of v2 book I would add:
- some more examples for using widgets
- more documentation about html forms: how preserving
In short:
MySQLdb execute expect type 'unicode' string but web2py pass type
'str' object to it.
May be this is a problem ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this
one question about DAL. As you know, ORMs are very popular and useful
particularly in languages like Python with projects like SQL Alchemy,
SQL Object and others. Now, I know you don't want to import it to the
web2py bundle and I would never ask you to do something you don't want
to. My
I have dynamic css working, and I thought I'd post it here for the
record.
The CSS itself goes in a view, css/styles.css in this trivial example:
===
body { font-family: Verdana, sans-serif; }
div.beautify td {
padding-top: 0;
}
===
It's served up by controller css.py. The only
On Jul 13, 2009, at 12:19 AM, Bottiger wrote:
2. Remove the scribd widget from the front page. It lags my browser
whenever I go there and proceeds to suck up bandwidth.
Amen to that.
I run Click to Flash (OS X) to keep it from loading, but at the very
least it's an awfully large file for
No. The DAL is being rewritten but to the users it wil 100%
compatible. The difference is only in the implementation to make it
even faster and easier to extend on other databases.
I am putting no effort into allowing web2py to use other ORMs since
this will limit portability of applications and
I'm a .net developer by trade. I embed IronPython into a lot of my
apps. One nice thing I can do with it is build XML using the 'with'
statement.
http://langexplr.blogspot.com/2009/02/writing-xml-with-ironpython-xmlwriter.html
How hard would this be to implement a similar context protocol for
perhaps it should be
MySQLdb.connect(use_unicode=False)
Strange I never had a problem with this?
On Jul 13, 10:04 am, ont.rif ont@gmail.com wrote:
In short:
MySQLdb execute expect type 'unicode' string but web2py pass type
'str' object to it.
May be this is a problem ?
This looks like an interesting report generator. Says its framework
independent.
http://geraldo.sourceforge.net/
Might be an interesting exercise to map the DAL for use with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
i want publish some web2py aap. under Ngnix, through fast-cgi
- by realy different web2py instance
- by some proxy for statix file publish
such as:
server {
listen 8080;
location ^~ /my/static/ {
alias /data0/matrix/static/;
}
location /staff {
fastcgi_pass
Same here Wheh.
On Jul 13, 9:41 am, weheh richard_gor...@verizon.net wrote:
JohnMc - Thanks for your thoughtful feedback. I'm not an attorney so I
can't tell you the liabilities of using OpenSource software for EMR.
But I'm sure this issue can also be handled by the appropriate
authorities.
Hi,
I want to make configuration mechanism for web2py applications, just
like .ini files with sections,
but configuration will be saved in the database, so that can be
modified when running on google app engine.
The module is something like this:
class MyApplicationConfiguration(object):
http://www.web2py.com/examples/default/dbs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send
Massimo,
Just checked Django. That column is correct.
Maybe add a row for ODBC? Django does reference the capability.
JohnMc
On Jul 13, 12:24 pm, mdipierro mdipie...@cs.depaul.edu wrote:
http://www.web2py.com/examples/default/dbs
--~--~-~--~~~---~--~~
You
I don't know... but I wonder how much better it would be then just using
reportlab itself, 'cause that's dead easy to me. Thanks.
Regards,
JAson
On Mon, 2009-07-13 at 10:05 -0700, JohnMc wrote:
This looks like an interesting report generator. Says its framework
independent.
mdipierro schrieb:
can you explain more?
referencing the example given when starting the thread:
the following is wrong:
def image_mat_form():
number = float(request.args[0])
[...]
import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
import
I may be a newb at this web2py but I wanted to tell you I am working at
my job to create a reporting tool with reportlab, inkscape, web2py,
python etc... should be fun... the only thing I can't do is support
foriegn char like chinese in the adobe files unless I do a poor hack.
But that's adobe's
On Mon, Jul 13, 2009 at 10:35 AM, Jonathan Lundell jlund...@pobox.comwrote:
On Jul 13, 2009, at 12:19 AM, Bottiger wrote:
2. Remove the scribd widget from the front page. It lags my browser
whenever I go there and proceeds to suck up bandwidth.
Amen to that.
I run Click to Flash (OS X)
Listing ODBC is misleading because it is an a driver protocol, not a
SQL dialect. If you click on the Django ODBC link it says with Django
it only supports MSSQL which is already listed.
On Jul 13, 12:38 pm, JohnMc maruadventu...@gmail.com wrote:
Massimo,
Just checked Django. That column is
I think the main difference is charts
On Jul 13, 12:55 pm, Jason Brower encomp...@gmail.com wrote:
I don't know... but I wonder how much better it would be then just using
reportlab itself, 'cause that's dead easy to me. Thanks.
Regards,
JAson
On Mon, 2009-07-13 at 10:05 -0700, JohnMc
On Mon, Jul 13, 2009 at 11:25 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Functionally you can achieve the same, as you know, with
FORM(
DIV(
INPUT(_type='submit') ,
_class='test'),
_action='',_method='post')
Syntactically I do not think it is possible to implement
I have done benchmarks on the single process multithread flup that is
currently in web2py. It is slower when you have more than 1
processor.
Also do you have a timeline on the new DAL? I may be interested in
helping.
On Jul 13, 8:39 am, mdipierro mdipie...@cs.depaul.edu wrote:
No. The DAL is
you can always use a statement like that below the table. And you list
also PostgreSQL with Jython+zxJDBC
JDBC is also a driver like ODBC.
On Mon, Jul 13, 2009 at 8:40 PM, mdipierromdipie...@cs.depaul.edu wrote:
Listing ODBC is misleading because it is an a driver protocol, not a
SQL dialect.
On Mon, Jul 13, 2009 at 4:46 AM, Matt van Gerwen
matt.van.ger...@gmail.comwrote:
Dear Massimo,
First of all. I like to thank Massimo and developers for doing a great
job. I'm still looking forward that i will finish my web2py apps. You
all are putting an huge amount of energy into web2py.
keep us posted
On Jul 13, 1:05 pm, Jason Brower encomp...@gmail.com wrote:
I may be a newb at this web2py but I wanted to tell you I am working at
my job to create a reporting tool with reportlab, inkscape, web2py,
python etc... should be fun... the only thing I can't do is support
foriegn
On Mon, Jul 13, 2009 at 1:52 PM, Yarko Tymciurak yark...@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:25 AM, mdipierro mdipie...@cs.depaul.eduwrote:
Functionally you can achieve the same, as you know, with
FORM(
DIV(
INPUT(_type='submit') ,
_class='test'),
interesting.
On Jul 13, 1:52 pm, Yarko Tymciurak yark...@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:25 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Functionally you can achieve the same, as you know, with
FORM(
DIV(
INPUT(_type='submit') ,
_class='test'),
Hello
Can you recommend a good IDE in OS X to learn Python?
Also please recommend a good online python tutorial, with examples.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To
I hope people are not tired of my enthusiasm (and also hope everyone
realizes how _genuine_ it is!):
I swear there is nothing I have found better for either learning,
developing, advanced debugging Python than WingIDE.
There is a generous 30 day eval (that is, it is closer to something like
30
On 9 jul, 19:05, Jose jjac...@gmail.com wrote:
Hello
I have running in a satisfactory way and for a time a server with
web2py +cherokeeon FreeBSD.
Today I installed a similar environment in my notebook, but the
following mistake takes is produced:
WARNING:root:WEB2PY CRON: cron.master
BTW - I've been using the WingIDE 3.2 Beta since PyCon (in March) on several
operating systems (windows, several different Linices); you could simply
start with that:
http://wingware.com/wingide/beta
On Mon, Jul 13, 2009 at 4:54 PM, Yarko Tymciurak yark...@gmail.com wrote:
I hope people are
I see no benefit to using PEP343 just to provide syntactic sugar for
this purpose. There is no REASON to use the with statement because
we're not doing anything with exception handling here. It's only
being used to create an input format that looks prettier to some eyes.
Am I missing
I agree it looks cool. But the pricing model has put it out of reach
for me. I develop sometimes on my Mac, sometimes on a Windoze PC and
deploy on Linux. I have to buy WingIDE three times under their
model! (Although I do get some discount for buying all three
platforms, it's not enough.)
I
I agree with Joe. It require making object context dependent whoch
would make things unnecessarily more complex and slower.
On Jul 13, 6:42 pm, Joe Barnhart joe.barnh...@gmail.com wrote:
I see no benefit to using PEP343 just to provide syntactic sugar for
this purpose. There is no REASON to
On Mon, Jul 13, 2009 at 6:42 PM, Joe Barnhart joe.barnh...@gmail.comwrote:
I see no benefit to using PEP343 just to provide syntactic sugar for
this purpose. There is no REASON to use the with statement because
we're not doing anything with exception handling here. It's only
being used to
I never needed anything more than emacs. But wingIDE looks cool.
You may also want to look into Ulipad. There is a web2py plugin. The
author has also contributed to web2py.
Massimo
On Jul 13, 6:47 pm, Joe Barnhart joe.barnh...@gmail.com wrote:
I agree it looks cool. But the pricing model has
I think you are both missing important point:
classes which support context would be able to be used in with contexts;
Nothing would be more complex or slower - you'd only use it to make things
cleaner (move code into class _enter_() and _exit_() methods, which would
only get called (I presume)
On Mon, Jul 13, 2009 at 6:47 PM, Joe Barnhart joe.barnh...@gmail.comwrote:
I agree it looks cool. But the pricing model has put it out of reach
for me. I develop sometimes on my Mac, sometimes on a Windoze PC and
deploy on Linux. I have to buy WingIDE three times under their
model!
I repeat. I do not see how it would be possible to implement the
proposed syntax without major changes in the definition of the helpers
and that would be slow when compared with the current implementation.
Perhaps I am wrong.
Whether or not this is a good idea, if I am wrong, I would like to see
Re: Proposed syntax - I might agree; it is just a request for syntax (I to
don't see the motivation, other than - as Joe says - sytactic sugar;)
Re: with statement - I think it has uses, and I can see immediately one
place I would put it in, and could probably find a few more places where it
Say I do
with a:
b()
Perhaps I am mistaken but I do not see a way for b to refer to a. Say
a contains a counter. I would like b() to increment that counter. How
do I do it without explicitly passing a to b?
Massimo
On Jul 13, 7:24 pm, Yarko Tymciurak yark...@gmail.com wrote:
Re: Proposed
Thanks a lot everyone.
I downloaded wing ide 101
Its free and it says for students :)
On Jul 13, 8:14 pm, Yarko Tymciurak yark...@gmail.com wrote:
On Mon, Jul 13, 2009 at 6:47 PM, Joe Barnhart joe.barnh...@gmail.comwrote:
I agree it looks cool. But the pricing model has put it out of
Yes but I am already listing MSSQL support. That is via ODBC.
Massimo
On Jul 13, 2:09 pm, Hans Donner hans.don...@pobox.com wrote:
you can always use a statement like that below the table. And you list
also PostgreSQL with Jython+zxJDBC
JDBC is also a driver like ODBC.
On Mon, Jul 13, 2009
If you want to setup / tear-down, use with;
so, if a is an instance of a class, Aclass:
with Aclass() as a:
b(a)
a.member_b()
# now Aclass object is freed, and any cleanup or passed on exceptions which
were raised and not handled are here.
On Mon, Jul 13, 2009 at 7:36 PM, mdipierro
the advantage with this, of course, is that setup, teardown, and standard
responses to / recovery from exceptions is encapsulated in one place.
On Mon, Jul 13, 2009 at 7:51 PM, Yarko Tymciurak yark...@gmail.com wrote:
If you want to setup / tear-down, use with;
so, if a is an instance of a
The very best are CODA and TextMate
G
On Jul 13, 4:44 pm, Markus prakash...@gmail.com wrote:
Hello
Can you recommend a good IDE in OS X to learn Python?
Also please recommend a good online python tutorial, with examples.
Thanks
--~--~-~--~~~---~--~~
You
My previous comment was related to Python editors..
I personally use APTANA with PyDev
Best,
-E
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to
URL:http://127.0.0.1:8000/auth/appadmin/select/db?query=db.auth_user.id0
auth_user.id auth_user.password
3 25ed1bcb423b0...
but URL:http://127.0.0.1:8000/auth/appadmin/update/db/auth_user/3
Id:3
First Name:zz
Last Name:
I agree that it should not be pursued if it is complicated, slow or
the encapsulated error handling provides no benefit. But I am glad
that I taught you a new Python keyword :)
On Jul 13, 7:15 pm, mdipierro mdipie...@cs.depaul.edu wrote:
I repeat. I do not see how it would be possible to
Oh! Yes - don't forget Aptana for js completions (I should use that
more...)
On Mon, Jul 13, 2009 at 9:45 PM, gluegl edpime...@gmail.com wrote:
My previous comment was related to Python editors..
I personally use APTANA with PyDev
Best,
-E
I cannot reproduce this.
Which web2py version?
Do you have a custom user_table?
Can you use appadmin and check what is in the password field before
and after email verification?
Is anybody else having or not having problems with it?
Massimo
On Jul 13, 10:08 pm, zhang zheng zzgigi2...@gmail.com
No, use_unicode affect only output of MySQLdb.
I found problem:
On my hosting with CentOS 5.2 file
/usr/lib/python2.4/site-packages/MySQLdb/cursors.py
contains this code:
-
from types import ListType, TupleType
from
Thanks for letting us know. Other users may have the problem.
Massimo
On Jul 13, 10:42 pm, ont.rif ont@gmail.com wrote:
No, use_unicode affect only output of MySQLdb.
I found problem:
On my hosting with CentOS 5.2 file
/usr/lib/python2.4/site-packages/MySQLdb/cursors.py
contains this
Eclipse + PyDev FTW!
On Jul 13, 8:21 pm, Yarko Tymciurak yark...@gmail.com wrote:
Oh! Yes - don't forget Aptana for js completions (I should use that
more...)
On Mon, Jul 13, 2009 at 9:45 PM, gluegl edpime...@gmail.com wrote:
My previous comment was related to Python editors..
I don't custom the user_table,
I use version 1.65.3
now , I don't use email verification
when I registered, if I change the First name in appadmin , the passwd was
set to blank,
the apparent reason is the password field display as blank
2009/7/14 mdipierro mdipie...@cs.depaul.edu
I
84 matches
Mail list logo