hello,
I would like to create an RSS feed of error tickets generated by my
app. I was planning to create a CRON job with scripts/tickets2db.py to
load them into the database, and then generate an RSS feed from the
database.
But before I start I want to check if there is a better way, or
existing
thanks victor,
On Mon, Aug 24, 2009 at 7:00 AM, Victor wrote:
>
> I dunno, but this might be what you're looking for.
> http://code.google.com/appengine/docs/python/tools/uploadingdata.html
> Cheers
> Victor
>
> On Aug 21, 8:53 am, durga wrote:
> > how do I upload default data to GAE database
5 M?! Clearly this is more than just source!
On Sun, Aug 23, 2009 at 10:33 PM, dlypka wrote:
>
> Yarko Tymciurak:
>
> I have the Proof of Concept DALnr App ready in a 5 meg ZIP file.
>
> Please give me your email to send it to, or advise where I can post
> the zip file.
>
> Thanks.
>
> >
>
--~
yeah I read howesc's diagnosis of the problem (and filed a bug report
with that explanation), but howesc was not able to solve the problem
until you posted a solution.
You said his query was fundamentally wrong. So I was wondering how to
do multiple joins properly in web2py, because I am also faci
I can confirm it happened with 1.66.1. Is it worth testing with
1.66.2?
Richard
On Aug 24, 10:05 am, mdipierro wrote:
> I have double checked and it seems to me this has been fixed about a
> couple of months ago (before your post).
> The problem is that data stored before this was fixed may con
I want to move a web2py database from one MySQL server to another. I
dumped the database on the old server, loaded it into the new server,
and created the database user with the necessary privileges. Then I
changed the connection string in db.py to refer to the new server. It
connects OK but I
Yarko Tymciurak:
I have the Proof of Concept DALnr App ready in a 5 meg ZIP file.
Please give me your email to send it to, or advise where I can post
the zip file.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
If you can do it in python, you can do it.
I have been integrating my gui/gtk applications into web2py. :D
Regards,
Jason
On Sun, 2009-08-23 at 18:01 -0700, poematrix wrote:
> Hi.
>
> I have a Python script that utilizes win32com.client services in order
> to connect to Quickbooks. Is it possib
Massimo, would you be opposed to making CRYPTs hash algorithm
configurable when hmac is used (line 1713 or validators.py)?
On Aug 23, 7:53 pm, "mr.freeze" wrote:
> Yes, and only affects sha512 apparently. sha256 produces the same
> value on Dreamhost and my dev machine.
>
> On Aug 23, 7:51 pm,
Hi.
I have a Python script that utilizes win32com.client services in order
to connect to Quickbooks. Is it possible to run such a script from
within Web2Py on a Windows XP machine?
The relevant lines of code are:
import win32com.client
.
.
.
q = win32com.client.Dispatch("QBXMLRP.RequestProcesso
I'm still on Sqllite at this point. The reason I'm a little mystified
is because I put a print statement just inside the "if form.accepts
(..." clause (just above the if request.vars.show) and it was never
executed.
On Aug 23, 1:51 pm, mdipierro wrote:
> Are you sure accept is failing and not i
I dunno, but this might be what you're looking for.
http://code.google.com/appengine/docs/python/tools/uploadingdata.html
Cheers
Victor
On Aug 21, 8:53 am, durga wrote:
> how do I upload default data to GAE database tables like we do it in
> admin app using CSV file
--~--~-~--~~
corrections. These are both 64 bits machines. the python version on
Dreamhost is the oldest. This means the bug has been fixed already but
dreamhost does not know.
Massimo
On Aug 23, 7:32 pm, mdipierro wrote:
> I will email Guido.
>
> Massimo
>
> On Aug 23, 7:24 pm, "mr.freeze" wrote:
>
> > De
Yes, and only affects sha512 apparently. sha256 produces the same
value on Dreamhost and my dev machine.
On Aug 23, 7:51 pm, Jonathan Lundell wrote:
> On Aug 23, 2009, at 5:32 PM, mdipierro wrote:
>
>
>
> > I will email Guido.
>
> Looks like this was fixed in 2.5.2:
>
> http://bugs.python.org/i
On Aug 23, 2009, at 5:32 PM, mdipierro wrote:
>
> I will email Guido.
Looks like this was fixed in 2.5.2:
http://bugs.python.org/issue1385
>
> Massimo
>
> On Aug 23, 7:24 pm, "mr.freeze" wrote:
>> Development:
>> Windows 7 RTM 64bit
>> Intel Core 2 Quad processor
>> Python 2.5.4 (r254:67916,
I have tried 5 other computers with a mix of 32/64 bit Windows/Linux
and they all produce the same digest as my dev machine. I have
submitted a support request to Dreamhost. Thanks again.
On Aug 23, 7:37 pm, mdipierro wrote:
> corrections. These are both 64 bits machines. the python version on
I will email Guido.
Massimo
On Aug 23, 7:24 pm, "mr.freeze" wrote:
> Development:
> Windows 7 RTM 64bit
> Intel Core 2 Quad processor
> Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
> (Intel)] on win32
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
>
They are supposed to be the same. This is a hash algorithm and cannot
depend on the machine. There is a bug somewhere (like the compiled a
32 bits code on a 64 bits machine and the bit shifting operator works
differently).
Can you give us details about the two python versions and machine
architec
Development:
Windows 7 RTM 64bit
Intel Core 2 Quad processor
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] on win32
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
output:
46fb33cd6220b470d7fecb3dfb547fb2501517ca9695f8527895d1a4a
Dreamhost machine is a 64 bits machine (xeon) and probably the
algorithm was coded assuming a 32 bits machine. The result on
dreamhost is wrong.
On Aug 23, 7:24 pm, "mr.freeze" wrote:
> Development:
> Windows 7 RTM 64bit
> Intel Core 2 Quad processor
> Python 2.5.4 (r254:67916, Dec 23 2008, 15:1
Still. Let us know more about the python version (build), processor
and OS so we can warn other users.
Massimo
On Aug 23, 7:10 pm, "mr.freeze" wrote:
> Interesting...A third machine produces the same value as my
> development machine. It looks like Dreamhost has something whacky
> with their p
I have double checked and it seems to me this has been fixed about a
couple of months ago (before your post).
The problem is that data stored before this was fixed may contain the
full path.
Can you verify the problem is fixed in 1.66.2?
Massimo
On Aug 23, 6:58 pm, Richard wrote:
> I would lik
howesc explained it in his posts: "that mixing the join syntax has
operator
precedence issues, and that Postgres follows the standard while other
databases let you get away with the "incorrect" syntax:
http://archives.postgresql.org/pgsql-general/2006-09/msg01046.php "
Massimo
On Aug 23, 6:47
Interesting...A third machine produces the same value as my
development machine. It looks like Dreamhost has something whacky
with their python install. Oh well, it's my problem now! Thanks for
helping me track it down.
On Aug 23, 6:59 pm, "mr.freeze" wrote:
> Yes, varchar(128). Here's the o
I would like to upgrade my web2py when this is fixed, so is it worth
creating an issue on Google Code to track it?
Or has it already been fixed?
Richard
On Aug 20, 4:26 pm, Richard wrote:
> great!
> Apparently some old versions of IE include the full path.
>
> Richard
>
> On Aug 19, 5:39 pm, m
It works!
I am using Windows XP. I converted the routes.py to UNIX format
(notepad++) and it works.
Thanks to everyone that replied.
And of course, web2py rocks.
On Aug 24, 6:04 am, mdipierro wrote:
> I cannot reproduce this error. Perhaps there is some strange character
> in there. Try delet
Yes, varchar(128). Here's the output of that command on both servers
from the terminal:
Production:
>>> import hmac
>>> import hashlib
>>> d= hmac.new('mykey','mypass',hashlib.sha512)
>>> d.hexdigest()
'485c79d8330897e613847f64333a0ccebd705b1902c4c4872cb1b7cc9ad856eb00e70dd11474b39282699a453dead
hi Massimo,
you mentioned that the initial query was invalid (http://
code.google.com/p/web2py/issues/detail?id=52).
Could you clarify what was invalid and the proper way to do multiple
joins?
Richard
On Aug 17, 4:37 am, howesc wrote:
> Thanks for the tip! A little tweaking to your suggestio
I cannot reproduce any machine dependence. I tried:
hmac.new('mykey','something',hashlib.sha512).hexdigest()
How long is your password field. Is it 128 bytes?
Massimo
On Aug 23, 5:57 pm, "mr.freeze" wrote:
> I have a strange situation and I know virtually nothing about
> cryptography. I am p
If this is the case it is a bug with the hmac implementation in
Python.
I will double check.
Massimo
On Aug 23, 5:57 pm, "mr.freeze" wrote:
> I have a strange situation and I know virtually nothing about
> cryptography. I am passing a key to my auth password requires
> statement after the rec
So it's looking like using an SQLFORM in the regular fashion just
isn't going to cut for what I would like to do. If I override the
normal submission method and use jquery + ajax to submit the form, I
have full control of what the page does after submission. The problem
then is that I would loose
I have a strange situation and I know virtually nothing about
cryptography. I am passing a key to my auth password requires
statement after the recent discussion on security strength like so:
if "login" in request.args:
t.password.requires = [CRYPT(key='mykey')]
else:
t.password.requires
I found the problem and it is a major bug. If one does
form=SQLFORM(...)
FORM.accepts(form,...)
form.custom.end will not contain the hidden fields (_formkey and
_formname) and custom form will not work. This is used in tools hence
you cannot custom forms with current Auth.
In my opinion this ca
this might help: http://www.sitepoint.com/article/ajax-jquery/
On Sun, Aug 23, 2009 at 5:06 PM, Alastair Medford wrote:
>
> I haven't been able to find anything on google about submitting forms
> that have been brought it by ajax. I did notice deep in mailing list
> archives a mention about jDiv
I cannot reproduce this error. Perhaps there is some strange character
in there. Try delete the file and rewrite it. If it still does not
work, email me your routes.py
On Aug 23, 6:35 am, Prabhu wrote:
> Massimo, Thanks for the reply.
>
> Even after adding the commas, I get the same error.
>
> I
I haven't been able to find anything on google about submitting forms
that have been brought it by ajax. I did notice deep in mailing list
archives a mention about jDivs, which may help me with refreshing just
a portion of the page. Has anyone used Jdivs before? The mention of it
was so old and th
Are you sure accept is failing and not insert? 'text' fields in MySQL
have a size limit. Do you use MySQL?
On Aug 23, 1:33 pm, Joe Barnhart wrote:
> I have a strange behavior going on. I have a form that adds a wiki
> page, which works all the time -- except for this one page. It seems
> to f
On Sun, Aug 23, 2009 at 1:55 PM, what_ho wrote:
>
> Intrigued by the recommendation to put code in modules instead of
> models if possible.
>
> At present I have db.define_table .. method calls in a model file. The
> database structure will stay the same between releases, so it does not
> feel op
Intrigued by the recommendation to put code in modules instead of
models if possible.
At present I have db.define_table .. method calls in a model file. The
database structure will stay the same between releases, so it does not
feel optimal at present to have such definitions run on every page
re
I have a strange behavior going on. I have a form that adds a wiki
page, which works all the time -- except for this one page. It seems
to fail the form.accepts point when I add a certain content page to
the wiki. I don't know why the content would matter unless I'm
tripping over a size limitat
Thanks, Mladen, that worked, I think I tried that earlier but gave me
an error.
On Aug 22, 8:20 pm, Mladen Milankovic wrote:
> Hi.
>
> When you use multiple tables in a query, it return DALStorage object in
> DALStorage object for each table you requested. Simpler every row object is a
> dict wh
I just sent the both Html page by email
>
> > and what do you mean by "does not work" do you get a ticket? If so,
> > can you send me the ticket?
>
No ticket is generate, it just don't generate any feedback. When I
fill up the form and click on "Submit" nothing happen from the user
point of
Doh! I forgot that I switched python versions and didn't install
MySQLdb for the new version. Thanks!
On Aug 23, 10:56 am, mdipierro wrote:
> You do not have the mysqldb module in the production machine.
> You need to install it separately.
>
> Massimo
>
> On Aug 23, 10:15 am, "mr.freeze" wrot
We do not support that but now that I know it should be easy to add.
We will add it in the next version.
Please help us test it. Edit gluon.sql.py and change
msg = \
"dbname='%s' user='%s' host='%s' port=%s
password='%s'"\
% (db, user, host, port, pas
Yes. PostgreSQL allows for an SSL connection between the client and the
server. This can be done with psycopg2, for example:
import psycopg2 as database
db = database.connect (host="db.host.com",
sslmode="require",
database="dbname",
user="dbuser",
password="dbpass")
On Sun
You do not have the mysqldb module in the production machine.
You need to install it separately.
Massimo
On Aug 23, 10:15 am, "mr.freeze" wrote:
> I'm getting a strange error when copying my application from my dev
> box to production. Both machines are running the latest trunk. The
> MySQL s
I'm getting a strange error when copying my application from my dev
box to production. Both machines are running the latest trunk. The
MySQL server is on a separate machine than both. The app works on my
dev box but generates this error when copied to production:
Traceback (most recent call las
same for login..
On Aug 23, 10:08 am, mdipierro wrote:
> Please email me personally. Can you show me the generated html when
> you do:
>
> {{=regform.custom.begin}}
> {{=regform.custom.widget.first_name}}
> {{=regform.custom.widget.last_name}}
> {{=regform.custom.widget.email}}
Please email me personally. Can you show me the generated html when
you do:
{{=regform.custom.begin}}
{{=regform.custom.widget.first_name}}
{{=regform.custom.widget.last_name}}
{{=regform.custom.widget.email}}
{{=regform.custom.widget.password}}
{{=regform.custom.wid
True. That is a problem. I guess password fields should be changed to
128 bits by default.
This should automatically migrate existing apps. Any objections?
Massimo
On Aug 23, 9:13 am, "mr.freeze" wrote:
> I believe that the password field that web2py generates for MySQL is a
> varchar 32 which
I believe that the password field that web2py generates for MySQL is a
varchar 32 which causes truncation of hashed passwords and prevents
login. I was able to manually alter the field to varchar 128, reset
my password and then it worked.
On Aug 18, 3:05 am, ed wrote:
> I can now login but the
Then I do not understand what you mean by "secure connection". Is
there a secure connection function provided by postgresql and psycopg2
that web2py is not using and should be using?
Massimo
On Aug 23, 8:14 am, Don wrote:
> I do not have SSH access to the DB server. Can I use psycopg2
> direct
I do not have SSH access to the DB server. Can I use psycopg2
directly to create the connection?
On Aug 23, 8:59 am, mdipierro wrote:
> Yes but not this way.
> You have to open an ssh tunner outside web2py and then instruct web2py
> to connect to the database using the port used by the tunnel.
Even the customization of the Login Form doesn't work using this :
{{=loginform.custom.begin}}
Email:
{{=loginform.custom.widget.email}}
Password:
{{=loginform.custom.widget.password}}
{{=loginfo
Yes but not this way.
You have to open an ssh tunner outside web2py and then instruct web2py
to connect to the database using the port used by the tunnel.
Massimo
On Aug 23, 7:47 am, Don wrote:
> Is it possible to define a secure database connection?
>
> Ex: db = DAL(‘postgres://user:passw...@
Is it possible to define a secure database connection?
Ex: db = DAL(‘postgres://user:passw...@hostname/db’, pools=10,
secure=True)
My production DB and web servers are running on a different machines.
--~--~-~--~~~---~--~~
You received this message because you are
Thanks for the note Massimo,
I tried it but no the validation is not going through... It's not
working.
Thanks for your help and please let us know if you have any other
idea.
Cheers,
Yannick P.
On Aug 23, 6:54 am, mdipierro wrote:
> auch! I just realized password_two is implamented without a
If you send them to me I will post them. Make sure they mention your
name as author.
Enentually we should have a better site where to post transalated
docs.
Massimo
On Aug 23, 6:43 am, Alfonso de la Guarda wrote:
> By the way, i have translated the cookbook and the pyworks pres to
> the spani
this is great. Send us some pictures if you can.
On Aug 23, 6:42 am, Alfonso de la Guarda wrote:
> Massimo,
>
> I will go to the evnt as guest for a talk about Python and Science and
> Technology development... and mostly of the interfases for admin work
> is done with web2py, which also speak,
By the way, i have translated the cookbook and the pyworks pres to
the spanish, is usefull to the web2py site?
Saludos,
Alfonso de la Guarda
Centro Open Source(COS)
alfonsodg.blogspot.com
alfonsodg.wordpress.com
Agenda:http://tinyurl.com/djmjol
Telef. 991935
Massimo,
I will go to the evnt as guest for a talk about Python and Science and
Technology development... and mostly of the interfases for admin work
is done with web2py, which also speak, also i will ask for another
space to speak about web2py.
Saludos,
Alfons
Massimo, Thanks for the reply.
Even after adding the commas, I get the same error.
If I say,
routes_out = (('/ccweb/default/$a', '/cc/$a'),)
routes_in = (('.*:/cc/$a','/ccweb/default/$a'),)
It throws an exception.
If I say,
routes_out = (('/ccweb/default/$a', '/cc/$a'),)
or
routes_in = (('.*
> The "call it twice" might cause by the "caveat" mentioned in python
> document of reload(), quoted below. But honestly speaking, it sounds
> complicated, I don't quite understand it, and not gonna understand it
> either as long as I do not feel the need for using reload(). :-)
In a highly non-s
FYI
Begin forwarded message:
> From: Gabriel Genellina
> Date: August 21, 2009 1:39:21 AM CDT
> To: "python-annou...@python.org"
> Subject: PyCon Argentina 2009
> Reply-To: "python-l...@python.org"
>
> PyCon Argentina 2009 - Buenos Aires - September 4-5th.
>
> The first national Python confere
FYI
Begin forwarded message:
> From: Gabriel Genellina
> Date: August 21, 2009 1:39:21 AM CDT
> To: "python-annou...@python.org"
> Subject: PyCon Argentina 2009
> Reply-To: "python-l...@python.org"
>
> PyCon Argentina 2009 - Buenos Aires - September 4-5th.
>
> The first national Python confere
It works with 2.6. The issue is that the cgi module of 2.6 behaves
differently than the cgi module in 2.5. In particular is the same
variable appears in both GET and POST vars, 2.5 ignores the former and
returns a string, 2.6 assumes a multiple submission and returns a
list. This incompatibility i
auch! I just realized password_two is implamented without a widget
therefore this syntax does not work.
Until this gets firxed this you can do:
> {{=regform.custom.begin}}
{{=regform.custom.widget.first_name}}
{{=regform.custom.widget.last_name}}
{{=regform.custom.widget.email}}
routes_in = (('/cc/$a','/ccweb/default/$a'),)
routes_out = (('/ccweb/default/$a', '/cc/$a'),)
the '.*:' is not necessary. The key missing ingredient is the ','
Massimo
On Aug 22, 1:54 am, Prabhu wrote:
> Thanks Victor and Yarko.
>
> It works if I specify routes_in = (('.*:/cc/$a','/ccweb/defa
It used to be mostly people trying to put porn in Django related
AlterEgo pages (that is why comments are now disabled). Now it is less
targeted, mostly standrad scans for known php vulnerabilities.
Massimo
On Aug 21, 12:52 pm, "omar.webs...@gmail.com"
wrote:
> No problem, and if you invest in
69 matches
Mail list logo