Oops I'm sorry, when I upgraded the log file moved and I was looking
at the wrong one. It works!
On Apr 7, 11:44 pm, Michael Toomim wrote:
> Now that I'm on apache, I find that the logging library iceberg wrote
> no longer
> works:http://groups.google.com/group/web2py/browse_thread/thread/ae379
Now that I'm on apache, I find that the logging library iceberg wrote
no longer works:
http://groups.google.com/group/web2py/browse_thread/thread/ae37920ce03ba165/6e5d746f6222f70a
I suspect this is because of the stdout/stderr problem with wsgi, but
I thought that would only affect print statemen
here is how it works now (its was more convoluted before)
web2py must find gluon folder in path.
it also expects to find applications/ in os.environ['web2py_path'] or
in os.getcwd().
-f path sets os.environ['web2py_path'] = path
Massimo
On Apr 8, 12:17 am, mdipierro wrote:
> I only took a quic
It didn't work either, sorry.
I've just tried to install simplejson not with a Python egg, but with
a MS Windows installer, but it didn't help either.
I'm getting the same traceback.
On Thu, Apr 8, 2010 at 1:20 PM, mdipierro wrote:
> another possible issue is that this is the order of your sys.
another possible issue is that this is the order of your sys.path
'C:\\Python25\\lib\\site-packages', '../gluon',
while I'd be more comfortable with
'../gluon', 'C:\\Python25\\lib\\site-packages'
you can try change in web2py.py
if not path in sys.path:
sys.path.append(path)
os.chdir(path)
I only took a quick look and I think I fixed it but please take a
second look.
The syntax is:
-f /home/another_web2py
Massimo
On Apr 7, 11:30 pm, Iceberg wrote:
> Thanks in advance! And after that, please come back and confirm which
> folder is needed for this option, is it
> -f /home/anothe
Thanks, Massimo.
I've replaced the lines that you cited in your email in encoder.py.
In decoder.py there were only these lines:
from scanner import make_scanner
try:
from simplejson._speedups import scanstring as c_scanstring
except ImportError:
c_scanstring = None
I replaced the try: .
The problem is that I only packages the pure c version of simplejson
for portability. You installed the full one so web2py finds it and it
is incompatible. You may fix it (temporarily) by editing
gluon/contrib/simplejson/encode.py and decoder.py
at the top they have try:... except: like
try:
Thanks in advance! And after that, please come back and confirm which
folder is needed for this option, is it
-f /home/another_web2py
or
-f /home/another_web2py/applications
-iceberg
On Apr8, 10:33am, mdipierro wrote:
> It should do what you expect but it is possible it is broken since
> no
I guess my question is " why does it not throw an exception in
sql.py?" It should since
db.dog.owner.represent = lambda value: "%s" % db.person[value].name
when called with value==None should always result in the error you see
in dal.py.
Can you help me debug this? My problem is not why
I am not using different datasets, or using different queries.
So here we go, let me explain in every minuet detail this process.
>>> cd ~
>>> hg clone https://web2py.googlecode.com/hg web2py
>>> cd web2py
>>> ln -s ~/path/to/my/application applications/pms
>>> python web2py.py -a
*go to 127.0.0
I assume it is
db.dog.owner.represent = lambda value: "%s" % db.person[value].name
The stacktrace you get is because one of your records has owner==None
hence db.person[value] is also None and None has no .name. It is not a
bug. You are doing different queries or using different datasets.
I am defining this function.
db.define_table('person', Field('name'))
db.define_table('dog', Field('nickname'), Field('owner', db.person))
db.dog.owner.represent = lambda value: "%s" % db.owner[value].name
This works in sql.py
This does not work in dal.py
You said you made changes, I tested, w
I'm not sure I used the right way to obtain the path. I just stuck
these lines in the welcome app's default/index.html view to get the
sys.path:
{{import sys}}
{{=sys.path}}
The simplejson library is located at:
C:\Python25\Lib\site-packages\simplejson-2.1.1-py2.5-win32.egg
I installed it via ea
It should do what you expect but it is possible it is broken since
nobody uses it. I will take a look.
massimo
On Apr 7, 8:44 pm, Iceberg wrote:
> Thanks for the tip, I'll consider it. But it seems dangerous.
>
> BTW, what on earth is the web2py.py -f FOLDER for?
>
> -Iceberg
>
> On Apr8, 1:03am
Can you as web2py to print the sys.path?
On Apr 7, 8:26 pm, Alexei Vinidiktov
wrote:
> Hello,
>
> I'm having trouble starting web2py.py on my local machine.
>
> I'm using web2py 1.76.5, Python 2.5.4 on Windows 7.
>
> I have simplejson 2.1.1 installed in site-packages. If I remove it,
> web2py.py
On Apr 7, 2010, at 6:48 PM, Jonathan Lundell wrote:
> On Apr 7, 2010, at 6:40 PM, Jonathan Lundell wrote:
>
>> On Apr 7, 2010, at 6:33 PM, mdipierro wrote:
>>
>>> Do you still have the patch. I remember applying one patch from you
>>> and rejecting one that I thought would break certain expressi
On Apr 7, 2010, at 6:40 PM, Jonathan Lundell wrote:
> On Apr 7, 2010, at 6:33 PM, mdipierro wrote:
>
>> Do you still have the patch. I remember applying one patch from you
>> and rejecting one that I thought would break certain expressions. If
>> you resend it I will double check.
>
> You applie
Thanks for the tip, I'll consider it. But it seems dangerous.
BTW, what on earth is the web2py.py -f FOLDER for?
-Iceberg
On Apr8, 1:03am, Thadeus Burgess wrote:
> In windows if you are using NTFS there is something called a "Junction
> Point" which is a "hard link". It works like linux `ln`.
>
On Apr 7, 2010, at 6:33 PM, mdipierro wrote:
> Do you still have the patch. I remember applying one patch from you
> and rejecting one that I thought would break certain expressions. If
> you resend it I will double check.
You applied the patch to test_template.py, which was also broken.
I need
Do you still have the patch. I remember applying one patch from you
and rejecting one that I thought would break certain expressions. If
you resend it I will double check.
On Apr 7, 7:43 pm, Jonathan Lundell wrote:
> On Apr 7, 2010, at 2:28 PM, Timothy Farrell wrote:
>
> > I've looked at this pro
Hello,
I'm having trouble starting web2py.py on my local machine.
I'm using web2py 1.76.5, Python 2.5.4 on Windows 7.
I have simplejson 2.1.1 installed in site-packages. If I remove it,
web2py.py launches fine.
Here's the traceback:
Traceback (most recent call last):
File "C:\Users\Alexei\Do
No.
For dal.py to be accepted it has to work exactly like sql.py
Therefore I cannot make ANY code changes if we want a new DAL.
-Thadeus
On Wed, Apr 7, 2010 at 5:31 PM, mdipierro wrote:
> This
>
> db.TableA.id_TableB.represent = lambda value: "%s" %
> db.TableB[value].name
>
> should be
On Apr 7, 2010, at 2:28 PM, Timothy Farrell wrote:
> I've looked at this problem extensively and I'm convinced that the solution
> is to re-implement template.py without complicated regexps or remove the
> claim of Jython support.
>
> The exact problem is related to the size of a view that is r
Good afternoon Dr.Massimo:
I fixed the problem.
Previously I had done the following:
I Removed web2py
I downloaded and unzipped all
I passed my application
But I forgot to stop the previous process of web2py
And I only restarted this process and it recovered, and now,
everything works well.
On
Good afternoon Dr.Massimo:
I fixed the problem.
Previously I had done the following:
I Removed web2py
I downloaded and unzipped all
I passed my application
But I forgot to stop the previous process of web2py
And I only restarted this process and it recovered, and now,
everything works well.
On
This
db.TableA.id_TableB.represent = lambda value: "%s" %
db.TableB[value].name
should be
db.TableA.id_TableB.represent = lambda value: (db.TableB[value] or
{}).get('name','anonymous')
On Apr 7, 1:36 pm, Thadeus Burgess wrote:
> Traceback (most recent call last):
> File "/home/tburge
And I do not think Oracle will do a better job at it.
On Apr 7, 4:28 pm, Timothy Farrell wrote:
> I've looked at this problem extensively and I'm convinced that the
> solution is to re-implement template.py without complicated regexps or
> remove the claim of Jython support.
>
> The exact problem
I've looked at this problem extensively and I'm convinced that the
solution is to re-implement template.py without complicated regexps or
remove the claim of Jython support.
The exact problem is related to the size of a view that is run through
the template module. The "re_strings" as it is u
THANKS matt and massimo!! i did not report this cause i thought it
was not supported on GAE! you guys just made my week!
cfh
On Apr 6, 11:10 pm, Matt wrote:
> Yup all good... Working now.
>
> Thanks again,
> Matt
>
> On Apr 7, 5:56 pm, Matt wrote:
>
> > Massimo,
>
> > Ok Cool... Thanks for fi
This is necessary for connecting to a legacy MySQL database.
-Thadeus
On Wed, Apr 7, 2010 at 4:06 PM, Kuba Kucharski wrote:
> hi, thadeus
>
> there was whole thread about this:
>
> http://www.mail-archive.com/web2py@googlegroups.com/msg10329.html
>
> --
> Kuba
>
>
>
> On Wed, Apr 7, 2010 at
hi, thadeus
there was whole thread about this:
http://www.mail-archive.com/web2py@googlegroups.com/msg10329.html
--
Kuba
On Wed, Apr 7, 2010 at 10:55 PM, Thadeus Burgess wrote:
> Does the DAL support database ENUM types?
>
> -Thadeus
>
> --
> You received this message because you are subscr
Does the DAL support database ENUM types?
-Thadeus
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
How can I change the controller file encoding?
Regards,
Tito
On Wed, Apr 7, 2010 at 12:50 PM, Vasile Ermicioi wrote:
> don;t know if it helps, but when I used php the problems was solved only by
> changing file encoding from ANSI to utf-8, try to change controller file
> encoding
>
> --
> You
It comes from the line
db.TableB[value].name
-Thadeus
On Wed, Apr 7, 2010 at 3:19 PM, mdipierro wrote:
> need more info
>
> On Apr 7, 1:36 pm, Thadeus Burgess wrote:
>> Traceback (most recent call last):
>> File "/home/tburgess/Applications/web2py/gluon/restricted.py", line
>> 173, in r
On Apr 7, 2010, at 12:44 PM, John Cobo wrote:
> I have not written any regular expressions. So far I am just trying to run
> the web2py "welcome" app.
>
> The only reg. exp. is what creates the welcome page view.
>
No traceback?
> Thanks.
>
>
>> On 7 Apr 2010 19:29, "Jonathan Lundell" wrot
form[0][-1][2][0].append('I think this is right')
there may be a more elegant way
On Apr 7, 1:59 pm, Jonathan Lundell wrote:
> OK, I'm feeling too lazy to look this up, and I'm hoping someone will just
> tell me.
>
> How do I inject text into the col3 TD of the submit_record_row of an SQLFORM?
need more info
On Apr 7, 1:36 pm, Thadeus Burgess wrote:
> Traceback (most recent call last):
> File "/home/tburgess/Applications/web2py/gluon/restricted.py", line
> 173, in restricted
> exec ccode in environment
> File
> "/home/tburgess/Applications/web2py/applications/pms/views/default
I have not written any regular expressions. So far I am just trying to run
the web2py "welcome" app.
The only reg. exp. is what creates the welcome page view.
Thanks.
On 7 Apr 2010 19:29, "Jonathan Lundell" wrote:
On Apr 7, 2010, at 9:55 AM, JC11 wrote:
> I am getting the dreaded error:
>
IE has a cache problem with HTTPS. I don't use the download function
but this would apply if the download function doesn't handle it. I have
this in my code in several places:
# Die IE! Die! Die! Die!
# ( http://support.microsoft.com/kb/323308 )
response.headers['Pragma']="private
OK, I'm feeling too lazy to look this up, and I'm hoping someone will just tell
me.
How do I inject text into the col3 TD of the submit_record_row of an SQLFORM?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email
Traceback (most recent call last):
File "/home/tburgess/Applications/web2py/gluon/restricted.py", line
173, in restricted
exec ccode in environment
File
"/home/tburgess/Applications/web2py/applications/pms/views/default/index.html",
line 62, in
File "/home/tburgess/Applications/web
On Wed, Apr 7, 2010 at 4:57 AM, selecta wrote:
> I like it alot
> but how do I create new wiki pages?
You could create a wiki function in controller default.py:
def wiki(): return plugin_flatpage()
And then, create pages under that controller/function (args[0] is the
page name).
Example:
http
On Apr 7, 2010, at 9:55 AM, JC11 wrote:
> I am getting the dreaded error:
> RuntimeError: maximum recursion depth exceeded
>
> I am using web2py vsn. 1.76.5, jython version 2.5.1 on Windows XP.
>
> I have altered the web2py 'welcome' application defaault controller
> to: return 'Hello World
All:
At one time I thought I saw a project available for a Web2Py Database
Web Interface. Does anyone know if one exists?
Thanks.
Christopher
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegr
In windows if you are using NTFS there is something called a "Junction
Point" which is a "hard link". It works like linux `ln`.
http://en.wikipedia.org/wiki/NTFS_junction_point
You have to BE CAREFUL, hard links work like folders! If you delete a
hard link, you delete the file You have to del
I am getting the dreaded error:
RuntimeError: maximum recursion depth exceeded
I am using web2py vsn. 1.76.5, jython version 2.5.1 on Windows XP.
I have altered the web2py 'welcome' application defaault controller
to: return 'Hello World' rather than return dict(message=T('Hello
World')).
T
don;t know if it helps, but when I used php the problems was solved only by
changing file encoding from ANSI to utf-8, try to change controller file
encoding
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to we
Hi, do you pals know when and how to use command line option -f
FOLDER? I hope to hear some experience.
My major web2py develop environment used to be a web2py source version
freshly from latest trunk, on Windows XP, but without win32 extention
(why bothers). But today I have to use a web2py windo
Hi folks,
I'm using extjs (www.extjs.com) to build a form and when I'm getting the
json request to fill it I can't get accented characters. I'm not sure if
this is something that I should configure on web2py or on extjs... it's only
occurring when I fill the form using json. Anybody got a similar
This is nice! I should learn how to use vim :P
Could anybody convert this to a gedit snippet?
-Thadeus
On Wed, Apr 7, 2010 at 5:02 AM, Doxaliber wrote:
> Fantastic! Thank you!
>
> On 7 Apr, 08:25, Benigno wrote:
>> Wow, big big thanks to Leonardo. Everything is in there...
>>
>> Muchas gra
On Apr 7, 2010, at 7:14 AM, mdipierro wrote:
> Some people have reported problems with Jython due to a bug in Java
> regex. I tried Jython2.5rc2 and it worked for me. Let us know.
One or two of the regex patches a while back (URL checking IIRC) was aimed at
preventing excessive backtracking unde
I use 1.76.5 and mod_wsgi... But the question about ssl... hmmm...
I'll try some trick with IE8 to accept the cert first :-D
I'll report back...
On ápr. 7, 16:15, mdipierro wrote:
> Are you using 1.76.5 or earlier and the built-in web server? that is
> known to truncate large files over https. Y
SQLTABLE(,truncate=1024)
On Apr 7, 9:51 am, neo wrote:
> its pretty basic but i cant seem to find a way to prevent SQLTABLE
> from clipping long text in a table cell. it just shows first 16
> characters.
--
You received this message because you are subscribed to the Google Groups
"web2py-u
its pretty basic but i cant seem to find a way to prevent SQLTABLE
from clipping long text in a table cell. it just shows first 16
characters.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegrou
Are you using 1.76.5 or earlier and the built-in web server? that is
known to truncate large files over https. You should now have that
problem with the web2py in trunk which uses rocket or if you use
another web server.
On Apr 7, 8:09 am, szimszon wrote:
> yes
>
> On ápr. 7, 14:50, Timothy Farre
Some people have reported problems with Jython due to a bug in Java
regex. I tried Jython2.5rc2 and it worked for me. Let us know.
On Apr 7, 6:14 am, JC11 wrote:
> Thanks,
>
> I am sure I searched in the 'book', how silly of me not to find it.
> What about Oracle and Jython ? The last line of th
Right now the DAL does not provide it because the goal is to keep it
as close as possible to SQL layer. Nevertheless you have a good point
and I would like to see a few proposals for possible API extension.
On Apr 7, 5:33 am, Ishbir wrote:
> What you mentioned is only for crud forms. Isn't there
yes
On ápr. 7, 14:50, Timothy Farrell wrote:
> Are you on a HTTPS connection?
>
> On 4/7/2010 6:29 AM, szimszon wrote:
>
>
>
> > Hello,
>
> > I have an
> > "
> > Internet Explorer cannot
> > download ...f783273687326762357523675236785237623786.pdf from some
> > domain.
> > Internet Explorer was n
Are you on a HTTPS connection?
On 4/7/2010 6:29 AM, szimszon wrote:
Hello,
I have an
"
Internet Explorer cannot
download ...f783273687326762357523675236785237623786.pdf from some
domain.
Internet Explorer was not able to open this Internet site. The
requested site is either unavailabla or canno
Hello,
I have an
"
Internet Explorer cannot
download ...f783273687326762357523675236785237623786.pdf from some
domain.
Internet Explorer was not able to open this Internet site. The
requested site is either unavailabla or cannot be found. Please try
again later.
"
With Chrome and FF it works.
Th
Thanks,
I am sure I searched in the 'book', how silly of me not to find it.
What about Oracle and Jython ? The last line of the entrie reads:
'You will be able to use DAL('sqlite://...') and
DAL('postgres://...') only.'
John C.
On Apr 7, 11:54 am, Kuba Kucharski wrote:
> Hi,
>
> here they
Hi,
here they are:
http://web2py.com/book/default/section/12/9
+ use newest stable
--
Kuba
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send e
Hello,
Are there instructions anywhere for installig and running web2py on
Jython ?
A few questions I have so far:
+ which version of web2py (source code ?)
+ how and where to install database drivers ? - my attempt fails
to find psycopg2. Does one use python db drivers or java drivers ?
What you mentioned is only for crud forms. Isn't there anything like a
database wide on add/remove/update function definition? If no, don't
you think it would be good to implement it? For e.g. say I have tags
and tag count. I want to increment tag count on each post update/
addition/removal. That w
Hi selecta, can you send me a test app?.
I have been testing and documenting ajax in web2py 1.76.3 in my spare
time.
Which jQuery, browser and web2py versions are you using?.
On Apr 5, 5:05 pm, selecta wrote:
> I tried to use Recaptcha in a LOAD div but I does not work
>
> The problem is that
Fantastic! Thank you!
On 7 Apr, 08:25, Benigno wrote:
> Wow, big big thanks to Leonardo. Everything is in there...
>
> Muchas gracias.
> Benigno.
>
> On Apr 6, 4:27 am, DenesL wrote:
>
> > Leonardo Vidarte, one of the users in the spanish language group, has
> > created some snippets [0] for Vim
I like it alot
but how do I create new wiki pages?
On Apr 6, 6:32 am, Mariano Reingart wrote:
> Hi, attached is plugin_flatpages, a dynamic wiki/html user editable
> pages plugin.
>
> It supports:
> * page edition by users (in the same page)
> * page history
> * preview
> * format conversion
68 matches
Mail list logo