[web2py:35600] Re: Data parser advice sort from web2py developers

2009-11-19 Thread Carl
>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

[web2py:35601] Re: routes problems

2009-11-19 Thread Carlos Aboim
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 --~--~---

[web2py:35602] Re: Data parser advice sort from web2py developers

2009-11-19 Thread Carl
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

[web2py:35603] Re: menu_auth state

2009-11-19 Thread annet
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

[web2py:35604] Re: web2py and postgresql

2009-11-19 Thread leone
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

[web2py:35605] Re: KeyError: 'auth_table'

2009-11-19 Thread annet
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

[web2py:35606] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Jon Romero
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

[web2py:35607] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Darcy Clark
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

[web2py:35608] ajax function eyecandy

2009-11-19 Thread selecta
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

[web2py:35609] Oracle datetime problem (ORA-01830)

2009-11-19 Thread Gabriele Alberti
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 (

[web2py:35610] integrating pycrc into my web applicaton...

2009-11-19 Thread encompass
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

[web2py:35611] gluon/highlight.py is missing 'DAL' and 'Field'

2009-11-19 Thread Markus Gritsch
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

[web2py:35612] mySQL and ON DELETE RESTRICT

2009-11-19 Thread Frederik Wagner
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

[web2py:35613] DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread Hans Murx
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

[web2py:35614] Re: Oracle datetime problem (ORA-01830)

2009-11-19 Thread mdipierro
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

[web2py:35615] Re: integrating pycrc into my web applicaton...

2009-11-19 Thread mdipierro
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

[web2py:35616] Re: mySQL and ON DELETE RESTRICT

2009-11-19 Thread mdipierro
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.

[web2py:35617] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread mdipierro
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) > ); > >

[web2py:35618] Re: crud.update(...,message,...)

2009-11-19 Thread mdipierro
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

[web2py:35619] Re: crud.select headers attribute

2009-11-19 Thread mdipierro
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

[web2py:35620] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread DenesL
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

[web2py:35621] Re: Oracle datetime problem (ORA-01830)

2009-11-19 Thread Gabriele Alberti
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

[web2py:35622] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread Hans Murx
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

[web2py:35623] SELECT helpers and id-label tuples from the db

2009-11-19 Thread Dmitri Zagidulin
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

[web2py:35624] reportlab error

2009-11-19 Thread __Kyo__
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

[web2py:35625] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread Olaf
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)#

[web2py:35626] Re: reportlab error

2009-11-19 Thread __Kyo__
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

[web2py:35627] Re: routes problems

2009-11-19 Thread Thadeus Burgess
('^/$', '/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

[web2py:35628] Re: Oracle datetime problem (ORA-01830)

2009-11-19 Thread mdipierro
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

[web2py:35630] Re: reportlab error [SOLVED]

2009-11-19 Thread mdipierro
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

[web2py:35629] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread mdipierro
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

[web2py:35631] Re: Retrieve Images From Database

2009-11-19 Thread ecall
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

[web2py:35632] Re: reportlab error [SOLVED]

2009-11-19 Thread Thadeus Burgess
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

[web2py:35633] Re: Image Uploading

2009-11-19 Thread NuclearDragon
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.

[web2py:35634] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread Dmitri Zagidulin
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

[web2py:35635] Re: Retrieve Images From Database

2009-11-19 Thread mdipierro
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

[web2py:35636] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread DenesL
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, >

[web2py:35637] Re: Retrieve Images From Database

2009-11-19 Thread mdipierro
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

[web2py:35638] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread mdipierro
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

[web2py:35639] Re: DAL: inconsistent behavior with constraint violation errors

2009-11-19 Thread mdipierro
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

[web2py:35640] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread Dmitri Zagidulin
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,

[web2py:35641] expire login when browser closes

2009-11-19 Thread Wes James
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 --~--~-~--~~~--

[web2py:35642] Re: Oracle datetime problem (ORA-01830)

2009-11-19 Thread Gabriele Alberti
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

[web2py:35643] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread mdipierro
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

[web2py:35644] verify email

2009-11-19 Thread Wes James
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

[web2py:35645] Re: SELECT helpers and id-label tuples from the db

2009-11-19 Thread Dmitri Zagidulin
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,

[web2py:35646] Re: verify email

2009-11-19 Thread Wes James
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

[web2py:35647] verify message flash message

2009-11-19 Thread Wes James
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

[web2py:35648] Re: expire login when browser closes

2009-11-19 Thread mdipierro
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

[web2py:35649] Re: verify email

2009-11-19 Thread mdipierro
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

[web2py:35650] Re: verify message flash message

2009-11-19 Thread mdipierro
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

[web2py:35651] Re: verify message flash message

2009-11-19 Thread Wes James
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

[web2py:35652] Re: expire login when browser closes

2009-11-19 Thread Wes James
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

[web2py:35653] Re: verify email

2009-11-19 Thread Thadeus Burgess
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, > >

[web2py:35654] Re: verify message flash message

2009-11-19 Thread Wes James
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

[web2py:35655] Re: verify email

2009-11-19 Thread Wes James
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

[web2py:35656] Re: verify email

2009-11-19 Thread Wes James
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 >> >> >

[web2py:35657] Re: verify message flash message

2009-11-19 Thread Wes James
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

[web2py:35658] Re: verify message flash message

2009-11-19 Thread mdipierro
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

[web2py:35659] AttributeError: 'module' object has no attribute 'dumps'

2009-11-19 Thread Shalab
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

[web2py:35660] Re: AttributeError: 'module' object has no attribute 'dumps'

2009-11-19 Thread mdipierro
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

[web2py:35661] Re: AttributeError: 'module' object has no attribute 'dumps'

2009-11-19 Thread mdipierro
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

[web2py:35662] Re: verify message flash message [Solved]

2009-11-19 Thread Wes James
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

[web2py:35663] Re: verify message flash message [Solved]

2009-11-19 Thread mr.freeze
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

[web2py:35664] GAE and belongs

2009-11-19 Thread howesc
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

[web2py:35665] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread blackthorne
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

[web2py:35666] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Darcy Clark
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

[web2py:35667] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Thadeus Burgess
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

[web2py:35668] Problem to connect mysql with web2py

2009-11-19 Thread Alexander Cabezas
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

[web2py:35669] Re: GAE and belongs

2009-11-19 Thread mdipierro
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

[web2py:35670] web2py and ajax

2009-11-19 Thread Wes James
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:35671] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Wes James
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

[web2py:35672] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Thadeus Burgess
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

[web2py:35673] Re: Problem to connect mysql with web2py

2009-11-19 Thread Thadeus Burgess
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

[web2py:35674] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-19 Thread David
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

[web2py:35675] Re: Data parser advice sort from web2py developers

2009-11-19 Thread Richard
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

[web2py:35676] ListProperty DAL support

2009-11-19 Thread Richard
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'

[web2py:35677] Re: Problem to connect mysql with web2py

2009-11-19 Thread mdipierro
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

[web2py:35678] StackOverflow clone

2009-11-19 Thread Richard
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 --~--~-

[web2py:35679] Re: GAE and belongs

2009-11-19 Thread howesc
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

[web2py:35680] select no to delete plug-in creates stacktrace

2009-11-19 Thread Thadeus Burgess
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