[web2py:31690] mdipierro, can you help me with calling remote web2py' methods by Flex3?

2009-09-25 Thread 陶艺夫
Hi, mdipierro. I need a sample of Flex3 application (or code fragments) with it I can call remote methods exposed by web2py with @seveice_amfrpc. Can you help me? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:31689] Re: db.py order change - auth_permission table_name fields

2009-09-25 Thread mdipierro
I suggest you do not it this way (create your own person table) Web2py already provides auth_user auth_group auth_membership auth_permission and API for group based and role based access control. This very well documented in chapter 8 of the new book. Massimo On Sep 25, 11:05 pm, Chris Steel

[web2py:31688] Re: Client tools for web2py

2009-09-25 Thread mr.freeze
It looks good. I ,of course, like my module better :) On Sep 25, 8:39 pm, Thadeus Burgess wrote: > Ok take a look at this! > > source -http://thadeusb.com/code/py2jquery.txt > examples -http://thadeusb.com/code/examples.txt > > What do you think? > > -Thadeus > > On Fri, Sep 25, 2009 at 7:19 AM,

[web2py:31687] db.py order change - auth_permission table_name fields

2009-09-25 Thread Chris Steel
I am working on a user friendly interface that would allow different site Managers or Admins to create and edit groups, assigning permissions and so forth and noticed that only the auth tables (auth_user through auth_event) get loaded into the drop down for field ('table_name') in the db.auth_permi

[web2py:31686] Re: what joins the one to many?

2009-09-25 Thread Thadeus Burgess
That would be equivelant to a one-to-many query in SQL. The query is what is joining them all together. -Thadeus On Fri, Sep 25, 2009 at 9:08 PM, jayvandal wrote: > > Hi, > When you have the statements > pep=db(db.person.id> 0).select(orderby=db.person.id) > form=SQLFORM(db.events,fields=['

[web2py:31685] what joins the one to many?

2009-09-25 Thread jayvandal
Hi, When you have the statements pep=db(db.person.id> 0).select(orderby=db.person.id) form=SQLFORM(db.events,fields=['description']) ev=db(db.events.person==db.person.id).select() pep=db(db.person.id> 0).select(orderby=db.person.id) This line selects the master. ev=db(db.events.person==db.p

[web2py:31684] Re: newbie: Render 2 fields in one row?

2009-09-25 Thread Thadeus Burgess
Also here http://groups.google.com/group/web2py/browse_thread/thread/b35c79b64a483a94# and here http://groups.google.com/group/web2py/browse_thread/thread/0c6e3021507efbcd/42060d6ceaae75cb#42060d6ceaae75cb -Thadeus On Fri, Sep 25, 2009 at 8:54 PM, Thadeus Burgess wrote: > Take a look into

[web2py:31683] Re: newbie: Render 2 fields in one row?

2009-09-25 Thread Thadeus Burgess
Take a look into using custom form. http://www.web2py.com/AlterEgo/default/show/205 -Thadeus On Fri, Sep 25, 2009 at 8:30 PM, ed wrote: > ve googled and been trying to figure out how to render two fields in > one row in SQLFORM factory? Is this possible? All examples i > encountered in rend

[web2py:31682] Re: Client tools for web2py

2009-09-25 Thread Thadeus Burgess
Ok take a look at this! source - http://thadeusb.com/code/py2jquery.txt examples - http://thadeusb.com/code/examples.txt What do you think? -Thadeus On Fri, Sep 25, 2009 at 7:19 AM, mr.freeze wrote: > > This may break the record for fastest derived work ever :) Your code > looks really goo

[web2py:31681] newbie: Render 2 fields in one row?

2009-09-25 Thread ed
I've googled and been trying to figure out how to render two fields in one row in SQLFORM factory? Is this possible? All examples i encountered in rendering sql form are all single field in each row. Thanks --~--~-~--~~~---~--~~ You received this message because you

[web2py:31680] Re: htmledit - code formatting

2009-09-25 Thread mdipierro
I think we should. We need one that does not urlencode url since they may contain {{=URL(...)}}. On Sep 25, 5:50 pm, Darcy Clark wrote: > Is it maybe possible to replace the htmledit control with an > alternative that does a better job of formatting HTML ? > > On Sep 25, 5:44 pm, Darcy Clark w

[web2py:31679] Re: Addressbook by web2py?

2009-09-25 Thread suiato
Hi Iceberg it will be nice to have an address book application. when googled a bit, i found at http://www.mail-archive.com/web2py@googlegroups.com/msg17179.html JoshuaJ wrote "...I'm writing a basic multi-user address book application." (Jul. 21) Maybe he's still on this list and working on the p

[web2py:31678] Re: htmledit - code formatting

2009-09-25 Thread Darcy Clark
Is it maybe possible to replace the htmledit control with an alternative that does a better job of formatting HTML ? On Sep 25, 5:44 pm, Darcy Clark wrote: > I'm using Version 1.67.1 - whenever I use the htmledit link to edit a > view, then look at the generated source - all of the HTML is on on

[web2py:31677] TypeError "not indexable" request.vars on SQLFORM.accepts()

2009-09-25 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have upload field with IS_IMAGE validator, which allow only gif,jpg. If I try to upload bmp, it leads to a weird uncaught exception: Traceback (most recent call last): File "/opt/web2py/gluon/restricted.py", line 176, in restricted ex

[web2py:31676] Re: cooperation between applications

2009-09-25 Thread mdipierro
You need to use gluon.contrib.get_session to access another app session. This is undocumented because I do not promise it will stay backward compatible. On Sep 25, 2:14 pm, leone wrote: > If I understand the more effective way is to use session that store > info about master app > so that util

[web2py:31675] Re: cooperation between applications

2009-09-25 Thread mdipierro
wait. By default applications do not share sessions. you must do from gluon.fileutils import get_session other_session=get_session(request,'otherappname') to get the app for the same user but another app. On Sep 25, 2:14 pm, leone wrote: > If I understand the more effective way is to

[web2py:31674] Re: What the license means?

2009-09-25 Thread dekushrub
Thank you for the clarification. It makes a lot more sense now. On Sep 25, 2:31 pm, mdipierro wrote: > The license of the source code is GPL2. The license of the official > binaries (those I make) is freeware. > > Basically you can use and redistribute them both but not charge for > the,. If you

[web2py:31673] Re: What the license means?

2009-09-25 Thread mdipierro
The license of the source code is GPL2. The license of the official binaries (those I make) is freeware. Basically you can use and redistribute them both but not charge for the,. If you redistribute your app you have to say something like "powered by web2py". The three think you are NOT allowed

[web2py:31672] What the license means?

2009-09-25 Thread dekushrub
Hey everyone, I don't fully understand what the license fully means so if some could explain it to me that would be great. I was planning on developing some commercial webapps with them. Is that allowed and if so, what sort of reference do I have to put on my page for web2py? --~--~-~--~

[web2py:31671] Re: cooperation between applications

2009-09-25 Thread leone
If I understand the more effective way is to use session that store info about master app so that util-app can access layout and other static resources and so on, returning some result. The only shared information is the database position or address, and this can be a constant for the two applicat

[web2py:31670] Re: Auth customization

2009-09-25 Thread waTR
SOLVED: Have to use: DB: requires=CRYPT(key=auth.settings.hmac_key) CONTROLLER: myhash = hmac.new(auth.settings.hmac_key, request.vars.get (passfield,''), hashlib.sha512).hexdigest() Note that hashlib.sha512 has to be used rather than md5. Thanks for all the help! On Sep 21, 12:46 pm, J

[web2py:31669] Re: cooperation between applications

2009-09-25 Thread mdipierro
On Sep 25, 1:21 pm, leone wrote: > Someone knows what is the better way to resolve this scenario with > web2py? > 1) I have an application populated with useful pages linked and used > from other application. These utility-pages must be inizialized with > some values. What is the better way to

[web2py:31668] cooperation between applications

2009-09-25 Thread leone
Someone knows what is the better way to resolve this scenario with web2py? 1) I have an application populated with useful pages linked and used from other application. These utility-pages must be inizialized with some values. What is the better way to pass values between the two applications (not

[web2py:31667] Re: Using db field labels for column headers

2009-09-25 Thread yamandu
Maybe one solution could be like is made in other frameworks. To have 2 objects: one for tables and one for queries, derivating whatever is possible. I remember in Delphi things are like that. On 10 set, 19:22, villas wrote: > Wow, thanks!  Don't forget to include in the book. > > BTW have you

[web2py:31666] Re: Formating forms manually

2009-09-25 Thread waTR
There is also this post: http://groups.google.com/group/web2py/browse_thread/thread/b35c79b64a483a94# On Sep 24, 9:26 pm, weheh wrote: > You need to use SQLFORM.factory and then you can use custom forms in > view by bracketing the form content with >   {{=form1.custom.begin}} >   custom form

[web2py:31665] Addressbook by web2py?

2009-09-25 Thread Iceberg
Trying to search an addressbook app written by web2py (and probably write one by myself, if I did not find a handy one). Then I found this: http://www.ohloh.net/p/listbook but can not access its code. Is its author in this maillist? Or does anyone know an alternative? Regards, Iceberg --~--~

[web2py:31664] Re: Web2py prosperity

2009-09-25 Thread Álvaro Justen [Turicas]
On Fri, Sep 25, 2009 at 01:43, weheh wrote: > > I'm a little confused. Vidul wants to write an AI that generates > applications automatically. And then he wants to marry it to web2py. > So there won't be any jobs for software developers or, for that > matter, > web2py programmers. So why, then, w

[web2py:31663] Re: Selecting data from existing MySQL database

2009-09-25 Thread mr.freeze
I am giddy with anticipation On Sep 24, 9:39 am, DenesL wrote: > Hi Elcimar, > > not currently but I am waiting for Massimo to review some code that > would enable us to do so. > > The code I sent him supports MSSQL but yesterday I added DB2/400, and > I am currently able to perform all basi

[web2py:31662] Re: Client tools for web2py

2009-09-25 Thread mr.freeze
This may break the record for fastest derived work ever :) Your code looks really good. Let me know if/when you have some example together so I can compare implementations. On Sep 24, 12:25 pm, Thadeus Burgess wrote: > Solved the problem. You give every function a uuid. > > I spend last night an

[web2py:31661] Re: web2py design, future, license, and other thoughts

2009-09-25 Thread Beerc
I completely agree with Massimo sentence by sentence, and with Álvaro too. While I love Python and web development, I didn't fully love *web programming in Python*, because superfluously hard. Lots of boring repetitions, I *must* set too much options, many compatibility problems between framework

[web2py:31660] htmledit - code formatting

2009-09-25 Thread Darcy Clark
I'm using Version 1.67.1 - whenever I use the htmledit link to edit a view, then look at the generated source - all of the HTML is on one massive line - i.e. there are no characters or line endings. The htmledit feature is nice, but it would be even better if the HTML code that is generated was "

[web2py:31659] Re: web2py design, future, license, and other thoughts

2009-09-25 Thread mr.freeze
Well said! On Sep 24, 6:28 pm, mdipierro wrote: > Once in a while I get questions about license (why not BSD?) or future > (why not change it and break backward compatibility? why not move to > python3). > > Well. There are many frameworks that do that. I wrote web2py because I > do not like it.

[web2py:31658] Re: Name or service unknown

2009-09-25 Thread LB22
Hi, Just to put a lid on this, it did in the end turn out to be a problem with a webfaction server. The only information they provided was that it was having unusual networking problems. I don't know how to mark this as resolved, but it can be considered so. Thanks for the help anyway Massimo :o