[web2py:23316] Re: problem with non-ascii chars using rss2

2009-06-04 Thread dodobas
How can i use that when im pulling data from db( changing db encoding or db backend seems to have no effect)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send

[web2py:23315] Re: if you care about web2py...

2009-06-04 Thread weheh
Massimo, I never interpreted your request as a troll-like action. Quite the contrary ... it seemed like a straightforward request for the web2py user-base to respond with honest answers to a useful question for framework recommendations. I've briefly skimmed some of the flaming responses you've g

[web2py:23314] Re: should login redirect to index function after login?

2009-06-04 Thread annet . vermeer
Salva, I apologies for not helping you completely solve the login problem. I have been away a few days ... Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post

[web2py:23313] UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 299: ordinal not in range(128)

2009-06-04 Thread NewBeen
Hi, Its me again, now when I put the code in the production(Linux box) server i get this error, but in the computer i use to develop(Windows xp) this don't happen. Here i leave the error some idea?? PS: I double check the charset in the database 10 time already :S # ERROR ##

[web2py:23312] Re: more slides - must read

2009-06-04 Thread DenesL
Check you email Massimo, I sent you some errata there. --~--~-~--~~~---~--~~ 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 th

[web2py:23311] RIAs, services and authentication

2009-06-04 Thread Alexei Vinidiktov
Hello, I'm wondering what is the best approach to authenticating users from within desktop apps or RIA apps written, for example, in Silverlight, Flex, GWT, pyjamas that communicate with web2py backends via rpc services. Thanks. -- Alexei Vinidiktov --~--~-~--~~~--

[web2py:23310] Re: Translating a line with a link

2009-06-04 Thread suiato
On 6月5日, 午前1:47, JorgeR wrote: > cool > > this should go in the wiki under 'tips and tricks' Oh, in https://mdp.cti.depaul.edu/wiki/ ? Actually, it'd be nice to have a topic on translation/i18n/l10n. > > On Jun 3, 11:08 pm, suiato wrote: > > > 2009/06/04 12:57 mdipierro : > > > > In model you

[web2py:23309] Re: more slides - must read

2009-06-04 Thread mdipierro
On Jun 4, 7:09 pm, Richard wrote: > That was great. I hadn't come across those DAL shortcuts before. > Who is/was the presentation for? You! thanks to everybody for the corrections. > > Pg 89 > the values in queries and updates can be en expression >

[web2py:23308] Re: Validation in Custom Form using crud

2009-06-04 Thread Gary
Thank you so much for your help 'offline'. I know that this got more involved than either of us thought. I really appreciate your efforts. Regards, Gary On May 4, 5:43 am, dlypka wrote: > OK, thanks, I'll see if I can modify it to work with CRUD. > > On May 3, 10:46 pm,Gary wrote: > > > To s

[web2py:23307] Re: if you care about web2py...

2009-06-04 Thread Joe Barnhart
Massimo -- No apology needed. You are the #1 advocate for web2py and it is only understandable that you would try to rally support in the context of a discussion thread. If you have a problem, it is that you are doing more "push" marketing than "pull" marketing. Push marketing is when you try

[web2py:23306] Re: more slides - must read

2009-06-04 Thread Richard
That was great. I hadn't come across those DAL shortcuts before. Who is/was the presentation for? Pg 89 the values in queries and updates can be en expression ^ Pg 121 auto_email.py -> email_auth.py (unless has been updated recen

[web2py:23305] Re: if you care about web2py...

2009-06-04 Thread Bill
Massimo, Gosh! I think you are terrific and contributing 200%. I find it difficult to conceive that you would receive any criticism for your voluminous output. Rather, I would expect you to be out celebrating your kudos. Pettiness seems to be a mark of humanity everywhere. Please disregard i

[web2py:23304] Re: if you care about web2py...

2009-06-04 Thread desfrenes
This so-called troll issue is irrelevant. Reddit thread is asking "which framework?". web2py users answered, end of the story. No need to know the reasons why users answered, if they did because of your post then fine, what's wrong with that ? > I really really prefer to spend my time coding than

[web2py:23303] Re: hashed filename in web2py

2009-06-04 Thread mdipierro
yes, the last sequence after the dash is base16 encoding of the filename. look into the function download in gluon/globals.py Massimo On Jun 4, 5:35 pm, JohnMc wrote: > Is the hash name generated by web2py a recoverable name of the > original file name? If so is there a routine to recover it an

[web2py:23302] hashed filename in web2py

2009-06-04 Thread JohnMc
Is the hash name generated by web2py a recoverable name of the original file name? If so is there a routine to recover it and provide that as the downloaded filename? Thx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:23301] Re: if you care about web2py...

2009-06-04 Thread JorgeR
>From my part, I did understand it as you meant. Never thought you were promoting a troll. On Jun 4, 4:12 pm, mdipierro wrote: > I would like to apologize to the member of this list about my my > previous post: > > ".. you should comment on threads like > this:http://www.reddit.com/r/programmi

[web2py:23300] Re: problem with non-ascii chars using rss2

2009-06-04 Thread mdipierro
You must use UTF8 u"special chars".encode('utf8') On Jun 4, 12:22 pm, dodobas wrote: > As soon as I try to use some non ascii char on RSS output, this > happens (slightly, trimmed the top): > ... > ... > File "/usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.py", > line 309, in characte

[web2py:23299] Re: experimental: decimal and pickable and custom columns

2009-06-04 Thread mdipierro
I know what to do. I will fix it. On Jun 4, 3:27 pm, HansD wrote: > not yet sure how to fix this, but fields of this type results in: > > class="" > > On 25 mei, 07:17, mdipierro wrote: > > > I do not know if this is a good idea and I'd like to hear your > > opinions: > > I have added in trunk

[web2py:23298] Re: if you care about web2py...

2009-06-04 Thread mdipierro
I would like to apologize to the member of this list about my my previous post: ".. you should comment on threads like this: http://www.reddit.com/r/programming/comments/8ooh3/which_web_framewor... " As you know I have been accused online of being the only one posting messages about web2py (alth

[web2py:23297] Re: SQL Import

2009-06-04 Thread HansD
Make a query (unless you are on GAE) On 4 jun, 22:50, "Elcimar L. Santos" wrote: > Hmm... > I wonder if is there a way to display fields from two db in only one > SQLFORM... > > Atenciosamente, > > Elcimar Leandro --~--~-~--~~~---~--~~ You received this message b

[web2py:23296] Re: SQL Import

2009-06-04 Thread Elcimar L. Santos
Hmm... I wonder if is there a way to display fields from two db in only one SQLFORM... Atenciosamente, Elcimar Leandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this

[web2py:23295] Re: global logging to file

2009-06-04 Thread mdipierro
Odd I think your controller is being called 3 times. Is that possible? I would add a print statement to check. On Jun 4, 2:29 pm, Hans wrote: > I tried to define a global logging for a web2py app. The problem with > that is that if I place the following code in my default.py controller > or db.p

[web2py:23294] problem with non-ascii chars using rss2

2009-06-04 Thread dodobas
As soon as I try to use some non ascii char on RSS output, this happens (slightly, trimmed the top): ... ... File "/usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.py", line 309, in characters writetext(self._out, content) File "/usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.

[web2py:23293] Re: Event-style locking in web2py?

2009-06-04 Thread Juan
Sorry if I caused a confusion here (I forgot to put a question mark on the subject). I'm not using threads, the code above was just an (actually non-working) example to explain my desired behavior. The purpose of my post was to know if there is any way to archieve this kind of locking behavior in

[web2py:23292] Re: experimental: decimal and pickable and custom columns

2009-06-04 Thread HansD
not yet sure how to fix this, but fields of this type results in: class="" On 25 mei, 07:17, mdipierro wrote: > I do not know if this is a good idea and I'd like to hear your > opinions: > I have added in trunk to define custom column types > > Here is an example of usage: > > import cPickle

[web2py:23291] Re: Spatial???

2009-06-04 Thread haftish21
Check:http://www.scribd.com/doc/16085263/web2py-slides-version-163 and especially page 71. Really thank you! This helps about the latest version of web2py. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:23290] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
Yeah :D Thanks! I didn't know I could do it there. I just found another way (massimo rocks!): http://mdp.cti.depaul.edu/examples/static/epydoc/gluon.sqlhtml.SQLFORM-class.html Elcimar Leandro 2009/6/4 HansD : > > Ah... my famous Brazil counterparty :-) I'm from NL. > > You should be able to p

[web2py:23289] Re: SQLFORM rendering

2009-06-04 Thread HansD
Ah... my famous Brazil counterparty :-) I'm from NL. You should be able to provide a label argurment to the SQLField, like SQLFfield("endereco", 'string', 50, label="endereço") these labels are used within the SQLFORM On 4 jun, 21:13, "Elcimar L. Santos" wrote: > ...Because I know someone wit

[web2py:23288] global logging to file

2009-06-04 Thread Hans
I tried to define a global logging for a web2py app. The problem with that is that if I place the following code in my default.py controller or db.py model then in both cases its executed more than once...resulting into having every log line written multiple times into the log file. either starti

[web2py:23287] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
...Because I know someone with the same name here in Brazil. Taking a ride in your question, I had a field called "endereco" (means "address") which I want to be displayed as "endereço". I know that DAL wont allow me to rename it because it only allows [0-9a-zA-Z_]table and field names. The sol

[web2py:23286] Re: SQLFORM rendering

2009-06-04 Thread HansD
why are you asking? On 4 jun, 20:41, "Elcimar L. Santos" wrote: > Where are you from Hans? > > Atenciosamente, > > Elcimar Leandro > > 2009/6/4 Hans Donner > > > > > Yep, forms the base for what I needed. > > > made a small patch to extend it a bit, the patch includes some doc > > updates as we

[web2py:23285] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
Where are you from Hans? Atenciosamente, Elcimar Leandro 2009/6/4 Hans Donner > > Yep, forms the base for what I needed. > > made a small patch to extend it a bit, the patch includes some doc > updates as well. > > This allows for: > > {{extend 'layout.html'}} > Registration form > > {{lbl=f

[web2py:23284] how to override Auth

2009-06-04 Thread Sebastian E. Ovide
Hi all, in db.py I'd like to extend Auth so that I can override some methods... such as define tables... and maybe in the future make it login using OpenID or facebook etc... so I've extended Auth and and overrided define_tables... but I'm getting an error on auth.define_tables() any ideas ?

[web2py:23283] upload dir

2009-06-04 Thread JohnMc
Feature request: Has there been any consideration of providing a facility for user defined 'uploads' directories other than the application level default? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:23282] Proposal for cool idea.

2009-06-04 Thread Michael
I'm not sure if any of you are familiar with AppJet (www.appjet.com) But they offer a super cool framework/platform that allows users to create apps easily on their servers. Web2Py is way more powerful, and just as easy. The projects are similar in that they both simplify web development, and prov

[web2py:23281] Re: SQLFORM rendering

2009-06-04 Thread Hans Donner
Yep, forms the base for what I needed. made a small patch to extend it a bit, the patch includes some doc updates as well. This allows for: {{extend 'layout.html'}} Registration form {{lbl=form.custom.label}} {{wid=form.custom.widget}} {{=form.custom.form.start}} {{for f in form.fields:}}

[web2py:23280] Re: auth()-Objekt

2009-06-04 Thread pk
Wow, thanks for the highspeed-help ;) i love web2py greets from augsburg, germany --~--~-~--~~~---~--~~ 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.

[web2py:23279] Re: Translating a line with a link

2009-06-04 Thread JorgeR
cool this should go in the wiki under 'tips and tricks' On Jun 3, 11:08 pm, suiato wrote: > 2009/06/04 12:57 mdipierro : > > > > > In model you can just do > > > Tx=lambda *a: XML(str(T(*a)) > > > and use Tx instead. > > This is a good learning experience for me. Lots of thanks, Massimo. > > By

[web2py:23278] Re: auth()-Objekt

2009-06-04 Thread mdipierro
{{if auth.is_logged_in():}} {{=auth.user.first_name}} {{=auth.user.last_name}} {{=auth.user.email}} {{pass}} not sure this is what you are asking. On Jun 4, 11:16 am, pk wrote: > Hello together, > > I`ve a little problem, I think. > I`ve got a index-Site which contains the auth()-Object (wi

[web2py:23277] auth()-Objekt

2009-06-04 Thread pk
Hello together, I`ve a little problem, I think. I`ve got a index-Site which contains the auth()-Object (with Login, Register ...). All of them are working. If a User log-in correct, a new site (menu) will called. How can I show the name of the log-in User on the new site? Thanks for your help P

[web2py:23276] Re: Trouble with upload + uploadfield to put images in db

2009-06-04 Thread mdipierro
try give a default to the blob field. On Jun 4, 3:38 am, cjparsons wrote: > I want to store images in the database and I'm having trouble with > my SQLFORM. I've copied the example from the manual but find that > the image doesn't go into the database on 'new'. I'm on web2py > Version 1.63.3 > >

[web2py:23275] Re: Spatial???

2009-06-04 Thread Tim Michelsen
> My interest now is to define "Spatial Database Consistency of Web2py" > not @ 'Controller' level, but @ "Database" level. I've not yet known > what web2py is. Give me some time 2 know it. Check: http://www.scribd.com/doc/16085263/web2py-slides-version-163 and especially page 71. --~--~

[web2py:23274] Re: "update all languages" in admin updates *.bak files too

2009-06-04 Thread mdipierro
yes, this is a bug. Will fix it. Massimo On Jun 4, 9:11 am, suiato wrote: > Currently "update all languages" in admin updates *.bak files, too. > Suppose I have ja.py in the languages directory, delete some items on > the web2py's web editor, and update. Yes, these items are now deleted > from

[web2py:23273] "update all languages" in admin updates *.bak files too

2009-06-04 Thread suiato
Currently "update all languages" in admin updates *.bak files, too. Suppose I have ja.py in the languages directory, delete some items on the web2py's web editor, and update. Yes, these items are now deleted from the file. But, when I hit "update all languages" later, those deleted items in ja.bak

[web2py:23272] Re: web2py 1.63.4 is OUT

2009-06-04 Thread mdipierro
Fixed anouther python 2.4 compatibility issue, thanks Mariano. Massimo On Jun 4, 8:32 am, Hans wrote: > I just downloaded 1.63.5 from web2py.com and could not find release/ > change notes for this version in the README file or here. Maybe it > should be version 1.63.4 ? > > Keep up the great wo

[web2py:23271] Re: IS_IN_DB - multiple-level reference ?

2009-06-04 Thread mdipierro
no On Jun 4, 8:27 am, mika wrote: > I saw slides for new 1.63, but I can't find anything to solve my > problem. > Massimo, have you implemented some new features which could help me to > do it? --~--~-~--~~~---~--~~ You received this message because you are subscr

[web2py:23270] Re: upload filename

2009-06-04 Thread mdipierro
I have no objection in taking the code out in a function. But if one overrides it (and this is your intention) web2py will not be able to identify which table refers to the uploaded file and thus determine permission to download. Massimo On Jun 4, 12:48 am, Trollkarlen wrote: > Strange because

[web2py:23269] Re: web2py 1.63.4 is OUT

2009-06-04 Thread Hans
I just downloaded 1.63.5 from web2py.com and could not find release/ change notes for this version in the README file or here. Maybe it should be version 1.63.4 ? Keep up the great work! Hans On 4 Jun., 06:03, mdipierro wrote: > I just posted 1.63.4 because I patch in 1.63.3 had broken Python

[web2py:23268] Re: IS_IN_DB - multiple-level reference ?

2009-06-04 Thread mika
I saw slides for new 1.63, but I can't find anything to solve my problem. Massimo, have you implemented some new features which could help me to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Frame

[web2py:23267] Re: Spatial???

2009-06-04 Thread haftish21
>Maybe this sets us apart from competing frameworks and attracks more geo-hackers It seems fine 2 me. But... My interest now is to define "Spatial Database Consistency of Web2py" not @ 'Controller' level, but @ "Database" level. I've not yet known what web2py is. Give me some time 2 know it.

[web2py:23266] Re: SQLFORM rendering

2009-06-04 Thread Hans Donner
Seems to be it, thanks. 2009/6/4 David Marko : > > Do you mean something like this?  http://web2py.com/AlterEgo/default/show/205 > > David > > On 4 čvn, 11:12, Hans Donner wrote: >> Currently SQLFORM renders a complete table for the fields provided (or >> all) for a db.table, and does some other

[web2py:23265] Re: Spatial???

2009-06-04 Thread Tim Michelsen
> Maybe this sets us apart from competing frameworks and attracks more > geo-hackers. also a good point is that web2py can create the webmapping formats out of the box: * json => geojson * xml => kml --~--~-~--~~~---~--~~ You received this message because you ar

[web2py:23264] Re: SQLFORM rendering

2009-06-04 Thread David Marko
Do you mean something like this? http://web2py.com/AlterEgo/default/show/205 David On 4 čvn, 11:12, Hans Donner wrote: > Currently SQLFORM renders a complete table for the fields provided (or > all) for a db.table, and does some other magic as well. > > Would love to reuse the magic, but be in

[web2py:23263] SQLFORM rendering

2009-06-04 Thread Hans Donner
Currently SQLFORM renders a complete table for the fields provided (or all) for a db.table, and does some other magic as well. Would love to reuse the magic, but be in more control of the rendering. Eg, would like to specify what fields are placed where, and if they should include labels or not e

[web2py:23262] Trouble with upload + uploadfield to put images in db

2009-06-04 Thread cjparsons
I want to store images in the database and I'm having trouble with my SQLFORM. I've copied the example from the manual but find that the image doesn't go into the database on 'new'. I'm on web2py Version 1.63.3 Apologies in advance if it's a typo. 1) With no argument (="insert" form) I get an ex

[web2py:23261] Re: Spatial???

2009-06-04 Thread Tim Michelsen
> Well, it would be good to know in which direction you are moving... :) > Spatial databases have spatial columns and spatial functions. So, how > would we go about making the following postgis examples into a DAL- > able form without slipping to _execute ? How do we insert a geometry ? > How do w

[web2py:23260] Just a little notice - SpringPython

2009-06-04 Thread David Marko
I use Grails partly for my development so I know many good concepts comming from Spring company. They released SpringPython recently which introduces many good concepts maybe usefull for web2py as well. http://springpython.webfactional.com/ --~--~-~--~~~---~--~~ You

[web2py:23259] podcast hint: Becoming an Open Source Developer

2009-06-04 Thread Tim Michelsen
Hi, in recent times a lot of discussion has been about roadmap, cummunity and contribution. Here is a nice podcast from our "competitors": Becoming an Open Source Developer: Lessons from the Django Project (PyCon 2007) http://advocacy.python.org/podcasts/pycon/PyCon2007-BecomingOSDeveloper.mp3