[web2py:23978] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread Alexey Nezhdanov
You can reference the table itself like this. Try: db.define_table('table_example', SQLField('some_int_field','integer'), SQLField('parent_id_field', 'integer')) and then treat parent_id_field just as it's name suggests On Friday 12 June 2009 10:27:09 cpt1002 wrote: > Hi, > > Has anyon

[web2py:23979] web2py 1.64.1 and Auth funnies

2009-06-12 Thread Joe Barnhart
I upgraded my development site to 1.64.1 but I find I'm not "authorized" to see most of my site now. I think there may have been some changes to the way auth works. For example, if I select a link that goes to a controller function that has the decorator @auth.reqires_login() it sometimes displa

[web2py:23980] Delete

2009-06-12 Thread pk
hi together, how can i delete in this code only the requested content from the table, not the whole table content? here my code: {{for projekte in pro:}} {{if projekte.pend <= now:}} {{=projekte.cdate}}  -  {{=A(projekte.pname,_href=URL (r=request,f="show",ar

[web2py:23981] session.flash not working on auth password recovery

2009-06-12 Thread mr.freeze
For some reason the session.flash doesn't work on an auth password recovery (which should really be called a password reset I think). I tried it with setting auth.messages.email_sent and without. I am running from the latest source. --~--~-~--~~~---~--~~ You rece

[web2py:23982] Re: web2py 1.64.1 and Auth funnies

2009-06-12 Thread Alexey Nezhdanov
On Friday 12 June 2009 14:25:29 Joe Barnhart wrote: > I upgraded my development site to 1.64.1 but I find I'm not > "authorized" to see most of my site now. I think there may have been > some changes to the way auth works. Hello Joe. I can't reproduce your problem on my site (which uses a slight

[web2py:23983] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread DenesL
I had the same problem: http://groups.google.com/group/web2py/msg/fb2a167a01a92534 I feel it was a corrupted update/download issue ( I did not investigate the cause ). Using SVN I just created a new repository and downloaded web2py trunk again, problem gone. Hope it helps. --~--~-~--~---

[web2py:23984] XML

2009-06-12 Thread pk
Hi, how can i use the XML-Service for my tables? Because i would acces from flex(action script) via xml on my tables. I read there is a service in web2py for this, but how can i use this? thanks Peter --~--~-~--~~~---~--~~ You received this message because you are

[web2py:23985] Re: XML

2009-06-12 Thread Fran
On Jun 12, 12:20 pm, pk wrote: > how can i use the XML-Service for my tables? > Because i would acces from flex(action script) via xml on my tables. I > read there is a service in web2py > for this, but how can i use this? http://web2py.com/examples/default/tools#services F --~--~-~--~-

[web2py:23986] Re: XML

2009-06-12 Thread pk
thanks but how can i give all the content from all tables back as xml? On 12 Jun., 13:49, Fran wrote: > On Jun 12, 12:20 pm, pk wrote: > > > how can i use the XML-Service for my tables? > > Because i would acces from flex(action script) via xml on my tables. I > > read there is a service in web

[web2py:23987] Re: web2py 1.64.1 and Auth funnies

2009-06-12 Thread mdipierro
Probably you have crud.settings.auth=auth You do not want that. On Jun 12, 5:25 am, Joe Barnhart wrote: > I upgraded my development site to 1.64.1 but I find I'm not > "authorized" to see most of my site now.  I think there may have been > some changes to the way auth works. > > For example,

[web2py:23988] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread mdipierro
Will investigate.. Should work On Jun 12, 1:27 am, cpt1002 wrote: > Hi, > > Has anyone gotten an error using the "reference table" call with > similar model code: > > db.define_table('table_example', >     SQLField('some_int_field','integer'), >     SQLField('parent_id_field', 'reference table_e

[web2py:23989] Re: XML

2009-06-12 Thread mdipierro
if you have def data(): return crud() try http://127.0.0.1:8000/app/default/data/tablename/select.xml On Jun 12, 7:20 am, pk wrote: > thanks but how can i give all the content from all tables back as xml? > > On 12 Jun., 13:49, Fran wrote: > > > On Jun 12, 12:20 pm, pk wrote: > > > > how ca

[web2py:23991] Re: YACI, or how to speed up model loading

2009-06-12 Thread DenesL
On Jun 12, 8:46 am, AchipA wrote: > Errr, but that is how it works right now, so you have to keep this > behavior in some form if you want to be backward compatible. True but I was thinking why would you execute another controller's model if it is supposed to be for that particular controller

[web2py:23992] Re: YACI, or how to speed up model loading

2009-06-12 Thread mdipierro
> If it is easy to implement I don't see why not. > All the other ideas seem to have major drawbacks. > Time (and lots of live testing) will tell. talking about lazy or special model files? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:23993] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread mdipierro
works for me. something is wrong in your update. On Jun 12, 1:27 am, cpt1002 wrote: > Hi, > > Has anyone gotten an error using the "reference table" call with > similar model code: > > db.define_table('table_example', >     SQLField('some_int_field','integer'), >     SQLField('parent_id_field',

[web2py:23994] problem with crud.settings.auth=auth

2009-06-12 Thread mdipierro
Lots of people are reporting problems with CRUD. This is because they have crud.settings.auth=auth which did not work before and works now because of a bug fix. - The above line does not do what you think. - The above line is NOT REQUIRED to make @auth.requires_login, @auth.requires_membership

[web2py:23990] Re: YACI, or how to speed up model loading

2009-06-12 Thread AchipA
On Jun 12, 4:36 am, DenesL wrote: > > a) if there is no stuff.py in models, we include all models, > > convenient for development, friendly to newbies > > If no stuff.py include everything else?. > I am against this one. Errr, but that is how it works right now, so you have to keep this behavior

[web2py:23995] Re: YACI, or how to speed up model loading

2009-06-12 Thread DenesL
lazytables --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@

[web2py:23996] Re: session.flash not working on auth password recovery

2009-06-12 Thread mdipierro
I know the name is wrong. Can you help debug this? Massimo On Jun 12, 5:52 am, "mr.freeze" wrote: > For some reason the session.flash doesn't work on an auth password > recovery (which should really be called a password reset I think).  I > tried it with setting auth.messages.email_sent and wi

[web2py:23997] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread DenesL
On Jun 12, 4:58 am, Alexey Nezhdanov wrote: > You can reference the table itself like this. > Try: > db.define_table('table_example', > SQLField('some_int_field','integer'), > SQLField('parent_id_field', 'integer')) > and then treat parent_id_field just as it's name suggests Isn't def

[web2py:23998] Re: XML

2009-06-12 Thread DenesL
See example in cookbook2 slide 50. Cookbook2: http://groups.google.com/group/web2py/msg/fcd6aa1687410501 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send ema

[web2py:24000] Re: XML

2009-06-12 Thread pk
but i get an empty page if i try http://127.0.0.1:8000/2busy/default/data/project/select.xml here the code in my model: from gluon.tools import Mail, Auth, Crud, Service # new in web2py 1.56 service = Service(globals()) crud = Crud(globals(),db) def data(): return crud() On 12 Jun., 15:

[web2py:23999] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread Fran
On Jun 12, 2:32 pm, DenesL wrote: > On Jun 12, 4:58 am, Alexey Nezhdanov wrote: > > You can reference the table itself like this. > > Try: > >  db.define_table('table_example', > >      SQLField('some_int_field','integer'), > >      SQLField('parent_id_field', 'integer')) > > and then treat pare

[web2py:24001] Re: web2py and Debian

2009-06-12 Thread Timmie
Let's get there: http://www.turnkeylinux.org/appliances/django --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe

[web2py:24002] newb question

2009-06-12 Thread Michael
how would i go about processing a normal form. Say I have a search bar, how would I call a function with params, such as: def doSearch(query): thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fram

[web2py:24003] Re: XML

2009-06-12 Thread DenesL
With latest trunk I get neither XML nor an empty page. The response contains an html table with links to /app_name/default/data/select/table_name for each table in db. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:24004] Re: XML

2009-06-12 Thread DenesL
Oops... disregard last post, wrong link. With /app/default/data/tablename/select.xml I get HTTP 404 webpage not found. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this gr

[web2py:24005] Re: XML

2009-06-12 Thread DenesL
Same result with the seemingly correct syntax: /app/default/data/select/tablename.xml With tablename=dog /app/default/data/read/dog/1 produces a read-only form with dog #1 info while /app/default/data/read/dog/1.xml creates a ticket: Traceback (most recent call last): File "D:\web2py\tr

[web2py:24006] Re: newb question

2009-06-12 Thread DenesL
If I understood correctly, the syntax goes like this: http://server:port/app/ctl/fct/a/b/c?p=1&q=test a,b,c are args and you find them in request.args as ['a','b','c'] p,q are named vars returned by forms, they would be in request.vars as {'p':'1', 'q':'test'} see p.86-87 in the pdf manual.

[web2py:24007] Re: web2py and Debian

2009-06-12 Thread JohnMc
My packaging skills for creating .debs are nonexistent. But I would be willing to package a VM with web2py + apps for say VirtualBox, KVM and VMWare. All are quite popular modes of trialling software. Suggest some appropriate web2py appliances to include and I will give it a go. On Jun 12, 9:11 

[web2py:24008] Re: XML

2009-06-12 Thread mdipierro
this was never suppoed to work but it not supposed to give you a ticket either. It is a case I never thought about. It can be fixed, tonight. Massimo On Jun 12, 10:11 am, DenesL wrote: > Same result with the seemingly correct syntax: >   /app/default/data/select/tablename.xml > > With tablename

[web2py:24009] Re: newb question

2009-06-12 Thread JohnMc
Micheal, def's that are passed values are treated as private in the web2py environment. Keep that in mind. Lets say you wanted to search for a person's records by last name. You have a field in a table -- SQLForm('lastname','string') Steps: 1) Determine what you want returned. Then construct y

[web2py:24010] Re: XML

2009-06-12 Thread mdipierro
try: def select(): return crud.select() http://127.0.0.1:8000/[app]/default/select/[tablename]/whatever.xml this should work although it is "experimental" because it is using a default serializer on your own data. You would have do define your own serializer. Massimo On Jun 12, 8:56 am, pk w

[web2py:24011] Re: XML

2009-06-12 Thread pk
I still get Invalid function I don`t know what i have to do that this will work On 12 Jun., 18:22, mdipierro wrote: > try: > > def select(): return crud.select() > > http://127.0.0.1:8000/[app]/default/select/[tablename]/whatever.xml > > this should work although it is "experimental" because it

[web2py:24012] Re: web2py and Debian

2009-06-12 Thread mdipierro
I would go with bare web2py unless somebody wants to work on improving and clening up the sysadmin appliance. Thanks for your help On Jun 12, 10:37 am, JohnMc wrote: > My packaging skills for creating .debs are nonexistent. But I would be > willing to package a VM with web2py + apps for say Virt

[web2py:24013] sort table

2009-06-12 Thread pk
hi, how can i sort or orderby my table, when i will show the newest content on top? i have a field calls timestamp with 'datetime' and now i will show on the html page the newest one on top like 12.06.2009 - Test 10.06.2009 - Test2 ... thanks --~--~-~--~~~---~--~

[web2py:24014] Re: sort table

2009-06-12 Thread Fran
On Jun 12, 6:14 pm, pk wrote: > how can i sort or orderby my table, when i will show the newest > content on top? > i have a field calls timestamp with 'datetime' > and now i will show on the html page the newest one on top like > 12.06.2009 - Test > 10.06.2009 - Test2 crud.select(db.tablename,

[web2py:24015] Re: XML

2009-06-12 Thread Fran
On Jun 12, 2:56 pm, pk wrote: > here the code in my model: > def data(): return crud() This line should be in the default controller, not the model. F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:24016] XML (a proposal and solution)

2009-06-12 Thread mdipierro
I have been working on this this morning and YES, there is a bug. But there is more than that. The syntax I proposed before was http://.../app/controller/function/arg0/arg1/.../argN.extension The problem is that works only if no args else there is ambiguity on whether the extension belongs t

[web2py:24017] Re: sort table

2009-06-12 Thread pk
ok thanks, On 12 Jun., 19:32, Fran wrote: > On Jun 12, 6:14 pm, pk wrote: > > > how can i sort or orderby my table, when i will show the newest > > content on top? > > i have a field calls timestamp with 'datetime' > > and now i will show on the html page the newest one on top like > > 12.06.20

[web2py:24018] Re: XML (a proposal and solution)

2009-06-12 Thread pk
it`s too complex for me ;) i will only show the table as xml and now i`m absolutely overstrained :( please help me to solve my problem On 12 Jun., 19:37, mdipierro wrote: > I have been working on this this morning and YES, there is a bug. But > there is more than that. The syntax I proposed be

[web2py:24019] delete command in html

2009-06-12 Thread pk
hi, i ask this today and i need this very important. Can you please help me. for example my html page : 12.05.2009 - Test - delete delete should be a hyperlink when the user clicks on it, it should delete the Test from the table. how can i solve this problem in my html? thanks --~--~-

[web2py:24020] Re: web2py 1.62.1 is OUT (New Features List)

2009-06-12 Thread Ted G
OK thanks. I'll continue using a dedicated field to allow editing of the "user-friendly" filename after uploading. Ted On Jun 11, 9:40 pm, mdipierro wrote: > Currently when you upload a file, the actual file goes in the > filesystem of "uploadfield" in the database. The filename is > b16encoded

[web2py:24021] Re: XML (a proposal and solution)

2009-06-12 Thread mdipierro
For now just do this: def table_as_xml(): from gluon.serializers import xml response.headers['Content-Type']='text/xml' return xml(db(db[request.args(0)].id>0).select().as_list()) Then call it as http://127.0.0.1:8000/[yourappname]/default/table_as_xml/[tablename] On Jun 12, 12:

[web2py:24022] Re: delete command in html

2009-06-12 Thread mdipierro
That really depdends on how the page is generated? Can you post your code for this page? I have a feeling you are trying to implement some rails example which does not translate quite the same in web2py. have you looked into http:///youapp/appadmin? Massimo On Jun 12, 12:58 pm, pk wrote:

[web2py:24023] Re: delete command in html

2009-06-12 Thread pk
hi, i solved now my problem. On 12 Jun., 19:58, pk wrote: > hi, > i ask this today and i need this very important. > Can you please help me. for example my html page : > > 12.05.2009 - Test - delete > > delete should be a hyperlink > > when the user clicks on it, it should delete the Test from

[web2py:24025] Re: XML (a proposal and solution)

2009-06-12 Thread pk
hi massimo, thanks a lot, i`m very happy now ;) dear Peter On 12 Jun., 20:10, mdipierro wrote: > For now just do this: > > def table_as_xml(): >      from gluon.serializers import xml >      response.headers['Content-Type']='text/xml' >      return xml(db(db[request.args(0)].id>0).select().as

[web2py:24024] Re: jpolite and form submit

2009-06-12 Thread Ted G
I think the "patch" may have been the change I suggested in this thread dealing with file uploads using forms within a jDiv. http://groups.google.com/group/web2py/browse_frm/thread/34533d763a5e856f/c6cb190b051a03bc?lnk=gst&q=jdiv+file+upload#c6cb190b051a03bc Basically the change was to utilize j

[web2py:24026] Re: jPolite solved (almost) all our problems

2009-06-12 Thread Ted G
Is the work being done with jPolite meant to replace the work that was being done with jDiv? I've been using a modified version of the older jDiv code in my app. Should I be looking instead to use jPolite? Ted On May 19, 12:06 pm, mdipierro wrote: > I turnedjpoliteinto a web2py app. > > http

[web2py:24027] Re: jPolite solved (almost) all our problems

2009-06-12 Thread mdipierro
They should be merged but jDiv should stay. What does you modifie version do? Can you share it? On Jun 12, 1:27 pm, Ted G wrote: > Is the work being done with jPolite meant to replace the work that was > being done with jDiv? > > I've been using a modified version of the older jDiv code in my ap

[web2py:24029] How to modify SQLRows

2009-06-12 Thread weheh
I want to do something like this, but it doesn't seem to work: x=db(query).select(stuff) for y in x: x['y']['field1'] = 'new name' I want to preserve the SQLRows representation of x, so I don't want to make a copy to some other data structure. Can anyone help me with the syntax, please?

[web2py:24028] How to modify SQLTable

2009-06-12 Thread weheh
I want to do something like this, but it doesn't seem to work: x=db(query).select(stuff) for y in x: x['y']['field1'] = 'new name' I want to preserve the SQLTable representation of x, so I don't want to make a copy to some other data structure. Can anyone help me with the syntax, please? -

[web2py:24030] Re: MIME type

2009-06-12 Thread dlypka
Thanks but I do have type="text/javascript"/> <-- this ends with /> which is correct. Looks like no one else has seen this problem.I suspect the WSGI servers serve up the .js file in a different order than what Microsoft IIS 5.1 does and also I am guessing the IE8 and Firefox are sensitive to t

[web2py:24031] Re: web2py 1.64.1 and Auth funnies

2009-06-12 Thread Joe Barnhart
And Massimo wins the kewpie doll! Yes, this statement was uncommented in my db.py file. Now that it's gone my auth problems are no more. Thanks for the head's up. On Jun 12, 5:30 am, mdipierro wrote: > Probably you have > > crud.settings.auth=auth > > You do not want that. --~--~-~-

[web2py:24032] aplliances in a version control system

2009-06-12 Thread Hans Donner
Hi, is the sourcecode for the web2py.com/appliances also available in a verison control system like web2py itself? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

[web2py:24033] Re: How to modify SQLRows

2009-06-12 Thread DenesL
y['field1'] = 'new name' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2

[web2py:24034] Re: XML (a proposal and solution)

2009-06-12 Thread JohnMc
My only con is one of style. To me it just seems to break the simplicity of the /A/C/F/Arg/ call. I would advocate something like -- /A/C/F/Arg/?serve=xml& But that's just me. On Jun 12, 12:37 pm, mdipierro wrote: > I have been working on this this morning and YES, there is a bug. But >

[web2py:24035] universal data representation/encoding

2009-06-12 Thread blackthorne
I'm trying to display text in a page using an universal encoding such as UTF-8. Here is an example: return dict(message=u'Castro de Avelãs') in the view I have: ... {{=message}} ... It doesn't work... I don't get the 'ã' or I get it messed up if I do message='Castro de Avelãs' I know for a

[web2py:24036] Re: universal data representation/encoding

2009-06-12 Thread Álvaro Justen [Turicas]
On Fri, Jun 12, 2009 at 8:27 PM, blackthorne wrote: > > I'm trying to display text in a page using an universal encoding such > as UTF-8. > Here is an example: > return dict(message=u'Castro de Avelãs') > > in the view I have: > > > > > ... > {{=message}} > ... > > It doesn't work... I don't ge

[web2py:24037] Re: universal data representation/encoding

2009-06-12 Thread Francisco Gama
I did tried that with but without any success. as I said, it can't be problem of the browser or the view side since It does work fine if I write it on the template directly. On Jun 13, 3:15�am, �lvaro Justen [Turicas] wrote: > On Fri, Jun 12, 2009 at 8:27 PM, blackthorne wrote: > > > I'm trying

[web2py:24038] Re: universal data representation/encoding

2009-06-12 Thread Iceberg
No need to u'Castro de Avelãs', just 'Castro de Avelãs', providing that your source code itself is in utf8 (by default, it is). On Jun13, 7:27am, blackthorne wrote: > I'm trying to display text in a page using an universal encoding such > as UTF-8. > Here is an example: > return dict(message=u'C

[web2py:24039] Re: universal data representation/encoding

2009-06-12 Thread Francisco Gama
as you can see on my first post in this thread I also tried it that way but I get it messed up with message='Castro de Avelãs'. Something like, 'Castro de Avel?s' with message=u'Castro de Avelãs' I get 'Castro de Avels' On Jun 13, 3:26 am, Iceberg wrote: > No need to u'Castro de Avelãs', just

[web2py:24040] Re: universal data representation/encoding

2009-06-12 Thread Iceberg
Mmm, try putting these lines at the beginning of your controller and see whether it makes difference? #!/usr/bin/env python # coding: utf8 On Jun13, 10:30am, Francisco Gama wrote: > as you can see on my first post in this thread I also tried it that > way but I get it messed up with > messa

[web2py:24041] Re: universal data representation/encoding

2009-06-12 Thread Francisco Gama
Thank you! That did the trick :) On Jun 13, 3:38 am, Iceberg wrote: > Mmm, try putting these lines at the beginning of your controller and > see whether it makes difference? > >   #!/usr/bin/env python >   # coding: utf8 > > On Jun13, 10:30am, Francisco Gama wrote: > > > as you can see on my fi

[web2py:24042] Re: universal data representation/encoding

2009-06-12 Thread Francisco Gama
Massimo, I would suggest this correction by Iceberg as default for controller and model templates... On Jun 13, 3:38 am, Iceberg wrote: > Mmm, try putting these lines at the beginning of your controller and > see whether it makes difference? > >   #!/usr/bin/env python >   # coding: utf8 > > On

[web2py:24043] Re: universal data representation/encoding

2009-06-12 Thread Iceberg
Me too. :-) After all, I've been done that manually for years. Should propose that much earlier. On Jun13, 10:44am, Francisco Gama wrote: > Massimo, I would suggest this correction by Iceberg as default for > controller and model templates... > > On Jun 13, 3:38 am, Iceberg wrote: > > > Mmm, t

[web2py:24044] Re: MIME type

2009-06-12 Thread mdipierro
most browser do not understand should be ... On Jun 12, 2:08 pm, dlypka wrote: > Thanks but I do have > type="text/javascript"/>   <-- this ends with /> which is correct. > > Looks like no one else has seen this problem.I suspect the WSGI > servers serve up the .js file in a different order tha

[web2py:24045] Re: aplliances in a version control system

2009-06-12 Thread mdipierro
No because I do not have the resources to maintain it. I do encorage people to take ownership of those apps, post them using a version control system and I will just link them. On Jun 12, 2:55 pm, Hans Donner wrote: > Hi, > > is the sourcecode for the web2py.com/appliances also available in a >

[web2py:24046] Re: How to modify SQLRows

2009-06-12 Thread mdipierro
Mind that you would change the data retrieved from the db but not the data in the db. On Jun 12, 3:54 pm, DenesL wrote: > y['field1'] = 'new name' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:24047] Re: XML (a proposal and solution)

2009-06-12 Thread mdipierro
This we cannot do because it would ve backward incompatible On Jun 12, 4:31 pm, JohnMc wrote: > My only con is one of style. To me it just seems to break the > simplicity of the /A/C/F/Arg/ call. I would advocate something like -- > >   /A/C/F/Arg/?serve=xml& > > But that's just me. > > On J

[web2py:24048] Re: universal data representation/encoding

2009-06-12 Thread mdipierro
Given that they are executed, not imported the first of these two lines #!/usr/bin/env python # coding: utf8 seems inappropriate. Will the second line be sufficient? On Jun 12, 9:52 pm, Iceberg wrote: > Me too. :-)  After all, I've been done that manually for years. Should > propose that

[web2py:24049] Re: universal data representation/encoding

2009-06-12 Thread Francisco Gama
yes, I assumed that one. As to your question, I just tried just with the second line (#coding: utf8) and yes, it worked fine. :) On Jun 13, 4:06 am, mdipierro wrote: > Given that they are executed, not imported the first of these two > lines > >   #!/usr/bin/env python >   # coding: utf8 > > s

[web2py:24050] My little blog post about web2py...

2009-06-12 Thread Jason Brower
I am really excited about the jython compatibility. This opens a huge possibility for me at work. They only use Java tools, but we are using Jython because it's way faster. Let's see if I can convince them to use web2py too. Anyway, here is the post... http://skunkyjay.wordpress.com/2009/06/12/w

[web2py:24051] Re: How to modify SQLRows

2009-06-12 Thread weheh
Massimo, that's exactly what I want. On Jun 12, 11:02 pm, mdipierro wrote: > Mind that you would change the data retrieved from the db but not the > data in the db. > > On Jun 12, 3:54 pm, DenesL wrote: > > > > > y['field1'] = 'new name'- Hide quoted text - > > - Show quoted text - --~--~--

[web2py:24052] Re: How to modify SQLRows

2009-06-12 Thread weheh
DenesL: I tried exactly that, but somehow, it didn't seem to work. I'll try again. Thanks for your response! On Jun 12, 4:54 pm, DenesL wrote: > y['field1'] = 'new name' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:24053] Re: My little blog post about web2py...

2009-06-12 Thread mdipierro
I just read it. Did not know it was yours (I does not mention the author). Great post. Thank you Jason. let me know if you can help testing .war file. Massimo On Jun 12, 10:29 pm, Jason Brower wrote: > I am really excited about the jython compatibility.  This opens a huge > possibility for me

[web2py:24054] Re: How to modify SQLRows

2009-06-12 Thread mdipierro
No it does not work. You have to do: x=x.as_list() for y in x: y['field']='value' You cannot modify records in a SQLRows object because they are computed when requested. This will change in the new DAL. Massimo On Jun 12, 10:30 pm, weheh wrote: > DenesL: I tried exactly that, but somehow

[web2py:24055] Re: universal data representation/encoding

2009-06-12 Thread mdipierro
ok, I changed the scaffolding add and admin accordingly. Uploading to trunk now. Massimo On Jun 12, 10:09 pm, Francisco Gama wrote: > yes, I assumed that one. > > As to your question, I just tried just with the second line (#coding: > utf8) and yes, it worked fine. > > :) > > On Jun 13, 4:06 am

[web2py:24056] Re: XML (a proposal and solution)

2009-06-12 Thread mdipierro
Still no comments about the issue below? I consider it an important issues and am not sure this is best ways (although it is in trunk now): I have been working on this this morning and YES, there is a bug. But there is more than that. The syntax I proposed before was http://.../app/controlle

[web2py:24057] Re: My little blog post about web2py...

2009-06-12 Thread mikech
Nice. Anyone else writing about web2py? On Jun 12, 8:29 pm, Jason Brower wrote: > I am really excited about the jython compatibility.  This opens a huge > possibility for me at work.  They only use Java tools, but we are using > Jython because it's way faster. > Let's see if I can convince them

[web2py:24058] Re: web2py and Debian

2009-06-12 Thread Alexey Nezhdanov
On Friday 12 June 2009 20:49:28 mdipierro wrote: > I would go with bare web2py unless somebody wants to work on improving > and clening up the sysadmin appliance. Umm... You propose to drop /admin/ from debian web2py package??? > Thanks for your help -- Sincerely yours Alexey Nezhdanov --~--~-

[web2py:24059] Little recipe for ad hoc queries and ref cursors

2009-06-12 Thread Mariano Mara
Hi everyone. I'm currently trying to migrate a legacy oracle database to web2py and on the past weeks I stumbled upon several issues related to how the database was originally designed and how web2py expects to interact with it. Among them: * I need support for ref cursors * I need to write so

[web2py:24060] Re: session.flash not working on auth password recovery

2009-06-12 Thread mr.freeze
>From what I can tell, the issue is that a double redirect happens when request.vars._next or auth.settings.retrieve_password_next are not specified. In tools.py line 1013: if not next: next = self.url() This forces a redirect to /authtest/default/user which then redirects again t