>From the author of lxml (back in'06):
full XPath 1.0 support.
XSLT support.
Relax NG support
XML Schema support.
parsing and serialization retains namespace prefixes.
from this article: http://faassen.n--tree.net/blog/view/weblog/2006/02/24/0
2009/11/19 mdipierro :
>
> It is not clear to me wha
Hi,
Thanks for the reply.
thi is my routes.py file:
http://dpaste.com/hold/122321/
As I posted earlier the url that I want to reach at the beginig
(defult) is:
http://127.0.0.1:8000/registos/obras/index
But it still falls in default welcome page.
thank you for your help
Carlos Aboim
--~--~---
thanks Mark.
I've not been able to integrate BeautifulSoup and if I can't find a
solution I'll look at ElementTree - thanks for the recommendation.
A useful article for appengine developers wanting to use ElementTree
http://groups.google.com/group/google-appengine/browse_thread/thread/85b7d03ff0d
Massimo,
Problem solved, thanks.
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email
The code is executed only once at the start of session via a
session.flag, I can't know if table and indexes are already created.
There is another and better way to execute code only once?
On 19 Nov, 03:20, mdipierro wrote:
> Yes. I do not think those lines belong in there. I was just suggesting
Massimo,
Thanks, for your explanation, problem solved.
Annet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from thi
I am creating a CMS for web2py and I've decided using CKEditor due to
the fact that you can upload images/files directly from it.
Take a look here (http://docs.cksource.com/CKEditor_3.x/
Developers_Guide/File_Browser_(Uploader)).
Also, I have made a snippet (on web2pyslices and on my blog) on how
Jon - have you got the image/file upload function in CKEditor working
with web2py ?
On Nov 19, 8:18 pm, Jon Romero wrote:
> I am creating a CMS for web2py and I've decided using CKEditor due to
> the fact that you can upload images/files directly from it.
> Take a look here (http://docs.cksource
If you want a little eyecandy for the ajax funtion relace it with
(web2py_ajax.html)
function ajax(u,s,t) {
document.getElementById(t).innerHTML='{{=IMG(_src=URL
(request.application,'static','loading.gif' ,_alt='loading')}}';
var query="";
for(i=0; i0) query=query+"&";
query=query+enc
Hello web2py users,
I defined a table with one of the fields as datetime type, and when I
try to insert a raw it fails with this
ORA-01830: date format picture ends before converting entire input
string
with a raw query looking like this
INSERT INTO vals(timestamp, value, type, number) VALUES (
I am needing some extra tools integrated into my environment. I
assumed you just put them into the modules folder and they can be
pulled normally. But I guess I am doing something wrong. Any ideas?
I am trying...
from crc_algorithms import Crc
and it gives me the error...
ImportError: No module
Hi,
the new web2py specific identifiers 'DAL' and 'Field' are missing in
gluon/highlight.py line 169. IMO they should be added.
Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post t
Hi,
it might be that I'm missing something, but:t
In a table definition I'm using a foreign key reference with the
ondelete='RESTRICT'. Following the sql.log and the Table schemes on
the DB, this is correctly used in the CREATE TABLE statements
.
When I'm inserting some data with references and t
Hi,
given this legacy informix table:
~~~
create table kperson
(
name varchar(80, 1) not NULL,
age integer not NULL,
primary key (name)
);
I did:
>>> db.define_table("kperson",
... Field("name"),
... Field("age"),
... primarykey=["name"],
... mig
I think something is wrong in your model. If a field is declared of
type 'date' or 'datetime', web2py generates the SQL with the to_date
(..) function. I think you may have incorrectly defined the Field
('timestamp') as a string. BTW. I do not think 'timestamp' is a valid
field name since it is a
Try:
crc_algorithms = local_import('csc_algorithms')
There are some caveats:
modules under the modules folder work only if they do not contain
absolute imports.
Otherwise you have to put the module in site-packages as you would
normally do with Python modules.
On Nov 19, 5:54 am, encompass w
I agree this is strange. I do not know. web2py does not do anything
other than send the SQL to the database as you would from command
line.
The only "special" feature is the implementation of ondelete cascade
for mysql. You can how it is done manually in the delete(self) method
in gluon/sql.py.
I agree this is strange but this seems a database problem to me.
On Nov 19, 6:49 am, Hans Murx wrote:
> Hi,
>
> given this legacy informix table:
> ~~~
> create table kperson
> (
> name varchar(80, 1) not NULL,
> age integer not NULL,
> primary key (name)
> );
>
>
Because in
response.flash='Update bedrijfsgegevens'
form=update_form(...)
response.flash is set before update_form which calls crud.update and
perform a redirection.
response.flash is reset upon redirection.
On Nov 18, 2:19 am, annet wrote:
> In a controller I have the following functi
I think:
headers={'nfatype.nfatype':'medium', 'nfa.adres':'adres'}
On Nov 18, 4:27 am, annet wrote:
> I have the following function:
>
> records=crud.select(db.nfa, query=((db.nfa.bedrijf==auth.user.bedrijf)&
> (db.nfa.nfatype==db.nfatype.id)),\
> fields=['nfatype.nfatype','nfa.adres'], ord
Hi Hans,
On Nov 19, 7:49 am, Hans Murx wrote:
> Hi,
>
> given this legacy informix table:
> ~~~
> create table kperson
> (
> name varchar(80, 1) not NULL,
> age integer not NULL,
> primary key (name)
> );
>
> I did:
> >>> db.define_table("kperson",
>
> ... Fi
Hello,
my model is ok.. I tried to debug a bit, dont know exactly what is
happening but you probably do:
what happens in sql_represent() method is that among the many "if
fieldtype == ''" there is this code:
elif isinstance(obj, str):
try:
obj.decode('utf-8')
excep
database problem seems unlikely because doing the same sql statement
with informix sql tool, returns expected error messages:
$ echo "INSERT INTO kperson(name, age) VALUES ('Test', '23');" |
dbaccess stammdat
prints to stderr:
268: Unique constraint (root.u151_174) violated.
100: ISAM error
When you pass a list of strings to the SELECT helper, it creates an
html select control, with options populated from the list of strings,
and each string is both the option's value and label.
so, SELECT(['one, 'two']) yields
one
etc.
Does SELECT provide for the other common usage scenario, wher
By using reportlab in a system and send a variable from one function
to another to generate the report I get the following error, but only
in the latest version of web2py (1.71.2), I hope you can help me.
this is my code:
def reportePais():
form=FORM(TABLE(TR("Seleccione un País",SELECT
(_ty
Hi Denes,
the second try to insert identical values returns None:
>>> db=DAL("informix://oli:x...@xeon2/stammdat")
>>> db.define_table("kperson",
... Field("name"),
... Field("age", "integer"),
... primarykey=["name"],
... migrate=False
... )
>>> a = db.kperson.insert(name="Test", age=23)#
i've got the solution for it
m=[[x.id for x in consulta],[str(x.idPais) for x in consulta]]
thank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@goo
('^/$', '/registos/obras/'),
-Thadeus
On Thu, Nov 19, 2009 at 3:10 AM, Carlos Aboim wrote:
>
> Hi,
>
> Thanks for the reply.
>
> thi is my routes.py file:
> http://dpaste.com/hold/122321/
>
> As I posted earlier the url that I want to reach at the beginig
> (defult) is:
> http://127.0.0.1:8
You are right. there is a problem. I assumed the datetime was
datetime.datetime format and not a string.
I am uploading a fix in trunk, please give it a try.
On Nov 19, 8:57 am, Gabriele Alberti
wrote:
> Hello,
> my model is ok.. I tried to debug a bit, dont know exactly what is
> happening but
the an issue is solved, please add [SOLVED[ to the title. I am guilty
of this as everybody else.
On Nov 19, 10:28 am, __Kyo__ wrote:
> i've got the solution for it
>
> m=[[x.id for x in consulta],[str(x.idPais) for x in consulta]]
>
> thank
--~--~-~--~~~---~--~~
Y
yes,
SELECT(OPTION('one',_value=1),OPTION('two',_value=2))
On Nov 19, 9:54 am, Dmitri Zagidulin wrote:
> When you pass a list of strings to the SELECT helper, it creates an
> html select control, with options populated from the list of strings,
> and each string is both the option's value and l
I'm trying to export/import database having an "upload" field stored
as a blob refered by a "uploadfield".
Infortunatly, the blob is saved as binary data, this makes the CSV
file useless... I was expecting that was base64 data.
Is there a way to tell "export_to_csv_file()" to use base64 for the
b
It's impossible to add [SOLVED] if you use the groups through gmail :)
-Thadeus
On Thu, Nov 19, 2009 at 10:47 AM, mdipierro wrote:
>
> the an issue is solved, please add [SOLVED[ to the title. I am guilty
> of this as everybody else.
>
> On Nov 19, 10:28 am, __Kyo__ wrote:
> > i've got the
Thanks for the replies everyone!
We are renaming the files with our own naming scheme, so they are
unique, but not random. We don't provide a download function for our
users, so I'm not worried about the download aspect.
Thanks especially to Richard for this!:
"
form = SQLFORM(db.image)
if form.
Ok, that makes sense, that's how I ended up doing it. I was just
wondering if there was a short form, like with the list of strings (as
opposed to a list of OPTION objects), but with tuples.
Oh! One other question. Is there a way (or would you accept a patch)
to specify which value you want selec
This needs to be fixed. It is tricky to do but I will put on the todo
list.
On Nov 19, 10:14 am, ecall wrote:
> I'm trying to export/import database having an "upload" field stored
> as a blob refered by a "uploadfield".
> Infortunatly, the blob is saved as binary data, this makes the CSV
> file
Hi Hans,
actually insert should return the inserted record key
(not a return code as I said above).
So a return of None would mean no insert was done.
To be consistent maybe we should trap the exception on the update.
What do you think?.
Denes.
On Nov 19, 10:05 am, Olaf wrote:
> Hi Denes,
>
for now you can do:
import base64
rows=db(db.tablename.id>0).select()
for row in rows:
row.blobfield=base64.b64encode(row.blobfield)
rows.export_to_csv_file(file)
On Nov 19, 10:52 am, mdipierro wrote:
> This needs to be fixed. It is tricky to do but I will put on the todo
> list.
>
> On Nov
You can do something like
d={1:'one', 2:'two'}
SELECT(*[OPTION(v,_value=k) for (k,v) in d.items()])
and variations
On Nov 19, 10:51 am, Dmitri Zagidulin wrote:
> Ok, that makes sense, that's how I ended up doing it. I was just
> wondering if there was a short form, like with the list of string
update returns the number of updated records so it is correct that
raises an exception on failure.
shouldn't instead insert raise an exception on failure too?
On Nov 19, 10:58 am, DenesL wrote:
> Hi Hans,
>
> actually insert should return the inserted record key
> (not a return code as I said
Sure. And the other question, the specifying which option you want
'selected', in the SELECT constructor?
On Nov 19, 12:13 pm, mdipierro wrote:
> You can do something like
>
> d={1:'one', 2:'two'}
> SELECT(*[OPTION(v,_value=k) for (k,v) in d.items()])
>
> and variations
>
> On Nov 19, 10:51 am,
I see in tools.py
self.settings.expiration = 3600 # seconds
Is this used when auth_user is logged in?
How can this be reset when a browser has closed?
I notice that when I close the broswer, then come back to the page, it is
still logged in.
thx,
-wes
--~--~-~--~~~--
Hello,
it does with this patch
Index: gluon/sql.py
===
--- gluon/sql.py(revision 1441)
+++ gluon/sql.py(working copy)
@@ -521,7 +521,7 @@
obj = obj.isoformat()[:10]
else:
obj = str(o
two ways
SELECT(OPTION('one',_value=1),OPTION('two',_value=2),value=1)
or
SELECT(OPTION('one',_value=1,_selected=True),OPTION('two',_value=2))
On Nov 19, 11:29 am, Dmitri Zagidulin wrote:
> Sure. And the other question, the specifying which option you want
> 'selected', in the SELECT construc
I just tried:
http://127.0.0.1:port/app/default/user/verify_email/code
and got
404 NOT FOUND
error
after registering then getting code in email and trying it.
Do I need to turn something else on?
thx,
-wes
--~--~-~--~~~---~--~~
You received this message
Got it, thanks!
On Nov 19, 12:57 pm, mdipierro wrote:
> two ways
>
> SELECT(OPTION('one',_value=1),OPTION('two',_value=2),value=1)
>
> or
>
> SELECT(OPTION('one',_value=1,_selected=True),OPTION('two',_value=2))
>
> On Nov 19, 11:29 am, Dmitri Zagidulin wrote:
>
> > Sure. And the other question,
I just tried this on a real IP and it worked. Is it supposed to fail with
localhost?
thx,
-wes
On Thu, Nov 19, 2009 at 11:04 AM, Wes James wrote:
> I just tried:
>
> http://127.0.0.1:port/app/default/user/verify_email/code
>
> and got
>
> 404 NOT FOUND
>
> error
>
> after registering the
how does:
else:
user.update_record(registration_key = '')
self.environment.session.flash = self.messages.email_verified
in tools.py
filter back to response.flash or session.flash or something that can be
"flash"ed?
I followed it with wingide, but I don't see wher
This expiration is handled at the web2py level. The session cookie
used to maintain the session should expire at the browser level when
you close the browser because it does have an expiration time. Since
that is browser dependent I do not know if it always works.
On Nov 19, 11:43 am, Wes James
No. I do not know.
On Nov 19, 12:25 pm, Wes James wrote:
> I just tried this on a real IP and it worked. Is it supposed to fail with
> localhost?
>
> thx,
>
> -wes
>
> On Thu, Nov 19, 2009 at 11:04 AM, Wes James wrote:
> > I just tried:
>
> > http://127.0.0.1:port/app/default/user/verify_emai
self.environment.session is a reference to session
On Nov 19, 1:08 pm, Wes James wrote:
> how does:
>
> else:
> user.update_record(registration_key = '')
> self.environment.session.flash = self.messages.email_verified
>
> in tools.py
>
> filter back to response.fl
hmm, it's empty when I check it. I'll check it again.
thx,
-wes
On Thu, Nov 19, 2009 at 12:16 PM, mdipierro wrote:
>
> self.environment.session is a reference to session
>
> On Nov 19, 1:08 pm, Wes James wrote:
> > how does:
> >
> > else:
> > user.update_record(registrati
ok thx- i'm testing with latest firefox on snoLeo.
I'll keep testing and also try safari.
-wes
On Thu, Nov 19, 2009 at 12:14 PM, mdipierro wrote:
>
> This expiration is handled at the web2py level. The session cookie
> used to maintain the session should expire at the browser level when
> you
Works fine with a new welcome app on localhost for me.
-Thadeus
On Thu, Nov 19, 2009 at 1:15 PM, mdipierro wrote:
>
> No. I do not know.
>
> On Nov 19, 12:25 pm, Wes James wrote:
> > I just tried this on a real IP and it worked. Is it supposed to fail
> with
> > localhost?
> >
> > thx,
> >
I just follow the code:
user.update_record(registration_key = '')
self.environment.session.flash = self.messages.email_verified
.
.
.
redirect(next)
in tools.py
After I come out of the redirect(next) there is no session.flash to be found
with 'Email Verified'. A
I do see flash messages about "Email verification sent" and "Logged out"
On Thu, Nov 19, 2009 at 12:42 PM, Thadeus Burgess wrote:
> Works fine with a new welcome app on localhost for me.
>
> -Thadeus
>
>
>
>
>
> On Thu, Nov 19, 2009 at 1:15 PM, mdipierro wrote:
>
>>
>> No. I do not know.
>>
>> On
sorry wrong thread :(
On Thu, Nov 19, 2009 at 12:53 PM, Wes James wrote:
> I do see flash messages about "Email verification sent" and "Logged out"
>
>
> On Thu, Nov 19, 2009 at 12:42 PM, Thadeus Burgess
> wrote:
>
>> Works fine with a new welcome app on localhost for me.
>>
>> -Thadeus
>>
>>
>
I do see flash messages about "Email verification sent" and "Logged out"
On Thu, Nov 19, 2009 at 12:16 PM, mdipierro wrote:
>
> self.environment.session is a reference to session
>
> On Nov 19, 1:08 pm, Wes James wrote:
> > how does:
> >
> > else:
> > user.update_record(regi
I suspect the problem is that there is a double redirect somewhere
that resets the flash.
What's auth.settings.verify_email_next? Is is an aciton that requires
login? That would cause a double redirect.
On Nov 19, 1:47 pm, Wes James wrote:
> I just follow the code:
>
> user.update_re
I was trying to test web2py framework and it support on google app
engine and i decided to do what reddish(web2py.appspot.com) has done
and test all functionality on google app engine. I have been
successful in uploading the app with all the name changes but on
registration get below error in goog
Which are you using?
The app is trying to store a db reference object in the session. The
custom pickling method calls marshal.dumps which is not implemented on
GAE.
If this is a common problem, then we should implement our own
marshal.dump on GAE.
def dump(i):
i,a=divmod(i,256)
i,b=div
I added a temporary fix in trunk. please give it a try.
On Nov 19, 3:32 pm, mdipierro wrote:
> Which are you using?
>
> The app is trying to store a db reference object in the session. The
> custom pickling method calls marshal.dumps which is not implemented on
> GAE.
>
> If this is a common pro
Massimo,
This fixed it. I put this in db.py:
auth.settings.verify_email_next = '/app/default/user/login'
Is there functional way to do the last part? URL() returns an object
so no on that...
thx,
-wes
On Thu, Nov 19, 2009 at 2:12 PM, mdipierro wrote:
>
> I suspect the problem is that ther
URL returns a string.
On Nov 19, 3:57 pm, Wes James wrote:
> Massimo,
>
> This fixed it. I put this in db.py:
>
> auth.settings.verify_email_next = '/app/default/user/login'
>
> Is there functional way to do the last part? URL() returns an object
> so no on that...
>
> thx,
>
> -wes
>
> On Thu
Hello,
I'm using Google App Engine, and trying to make use of the new
'belongs' feature in queries (thanks much for adding it in!), and am
having a problem. It seems that when i construct the query my list is
being converted to a unicode string, and then the query generation
code fails.
here's
That was one my first intentions when I got into web2py. Just to say
I'm willing to work for that. Get a WYSIWYG web based editor like kupu
or TinyMCE or FCKeditor in web2py for rich content handling. My idea
for that would be to turn it as a optional setting (namely for the
views).
Afaik kupu sta
I'm willing to help on this - however I'm hoping someone with a deeper
knowledge of web2py can provide some guidance on where to start and
best practice etc...
On Nov 20, 12:26 pm, blackthorne wrote:
> That was one my first intentions when I got into web2py. Just to say
> I'm willing to work for
As far as integrating CKeditor, easy.
Integrating something like CKFinder however, is a whole nother story. I have
been researching, and it seems that the backend code will need to be ported
from their examples, to web2py. CKFinder uses mostly XML to communicate for
file browsing etc, and with a l
I have installed the mysql-python on a Leopard 10.5 and when i have
tryed to run my application, after mody the db.py
db = DAL('mysql://r...@localhost/database')
web2py generated a ticket with the following error:
Traceback (most recent call last):
File "gluon/restricted.py", line 184, in res
GAE does not support belongs and does not support OR. You have to do:
rows = db(db.media_type.name=='paper').select()&db
(db.media_type.name=='cd').select()
The & is done at the web2py level but since records are exclusive and
you are not sorting them, there is no major slowdown.
Massimo
On No
This last week I've been trying to use ajax on pages so that
everything is from http://host/app.
It seems that full mvc works when you use
http://host/app/controller/default/view, but if you have
http://host/app/ and then use:
ajax('/app/controller/view',[],'register-data') that only the
contro
web2py has xmlrpc service - would that help any?
-wes
On Thu, Nov 19, 2009 at 9:05 PM, Thadeus Burgess wrote:
> As far as integrating CKeditor, easy.
>
> Integrating something like CKFinder however, is a whole nother story. I have
> been researching, and it seems that the backend code will need
I don't think it needs RPC. Just to return XML data.
It shouldn't be hard, we just need to start gathering data that gets
communicated between CKFinder and the server. They don't really have any
examples for implementing backend code, since they expect you to use their
written code, which is way m
Are you sure it installed to the right version of python?
Macs already come with python 2.3(or 2.4) installed, in a way that makes it
difficult for python applications to make use of it.
-Thadeus
On Thu, Nov 19, 2009 at 6:17 PM, Alexander Cabezas wrote:
>
> I have installed the mysql-pytho
Backtick ` Apostrophe ' Single Quote ´
So hard to see that without my glasses :0(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
I use lxml when available because of the speed, more robust HTML
parsing than BeautifulSoup, and better XPath support than ElementTree.
(The latest development snapshot of ElementTree improves the XPath
support.)
When lxml is not available I use ElementSoup (http://effbot.org/zone/
element-soup.ht
Hello,
a few months back there was a discussion about adding ListProperty
support to the DAL. How is that going?
http://groups.google.com/group/web2py/browse_thread/thread/d3a8fcffb8c6ea7d
I have been using that type on GAE and it is quite useful.
Also sometimes I am feeling lazy and really don'
Make sure you using the source version of web2py and the same python
you used to install mysqldb.
On Nov 19, 6:17 pm, Alexander Cabezas wrote:
> I have installed the mysql-python on a Leopard 10.5 and when i have
> tryed to run my application, after mody the db.py
>
> db = DAL('mysql://r...@loca
I've fallen in love with the StackOverflow interface! Would anyone be
interested in working on a StackOverflow clone implemented in web2py?
Worked could be based off an existing Django clone:
http://github.com/cnprog/CNPROG/tree
(example usage here: http://cnprog.com/)
Thoughts?
Richard
--~--~-
oh, so the recent post (http://groups.google.com/group/web2py/
browse_thread/thread/e7a8240881564270) that says belongs in GAE was
made available in version 1.69.1 is incorrect?
On Nov 19, 8:10 pm, mdipierro wrote:
> GAE does not support belongs and does not support OR. You have to do:
>
> rows
If I delete a plug-in modules file, and it asks yes or no, if I select
no, it will provide this stacktrace.
Filename is
modules/plugin_asdf.py
Traceback (most recent call last):
File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line
184, in restricted
exec ccode in environmen
81 matches
Mail list logo