[web2py:22201] can I use source code of apps from web2py appliances

2009-05-20 Thread durga
Hi all, I am new to web2py and decided to use web2py to construct my website. website contains some of the features similar to apps available in web2py appliances. can I use/refer source code of apps from web2py appliances? thanks in advance

[web2py:22202] Re: Auth, Crud and Service in 1.62rc2

2009-05-20 Thread annet . vermeer
I buy the 80-20 rule. But that is a self-fulfilling prophecy. I think you are all doing a great job developing web2py, however, in my opinion Web2py tends to cater too much to users who develop web 2.0 applications, to some degree disregarding users who use web2py to provide a web interface for

[web2py:22203] Re: can I use source code of apps from web2py appliances

2009-05-20 Thread Iceberg
I am not the owner of those appliances but in my opinion you can get the answer by reading their license statement. Most of them are using GPL-compatible license. http://mdp.cti.depaul.edu/appliances On May20, 3:12pm, durga durgaprasadmoga...@gmail.com wrote: Hi all, I am new to web2py and

[web2py:22204] Re: Hoping to increase my connections to web2py people on linkedIn

2009-05-20 Thread NguyendHEX
I have joined here from Drupal. Although Drupal is not the best but there are many things we should learn from it. 1. Rich documents/tutorial 2. Forum 3. Groups 4. Project/Issue tracking I think we should move this group to web2py offical website, we can use other compoments for missing as

[web2py:22205] Re: Memcache SQL Query as key

2009-05-20 Thread NicolasB
I have sent you an email with my changes. Best regards, Nicolas On 7 mai, 10:53, NicolasB nicolas.bn...@gmail.com wrote: Finally, I keep working on it. I will suggest to add a few other modification. Still testing and then posting it. Regards, Nicolas On 6 mai, 18:34, mdipierro

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

2009-05-20 Thread Timmie
I do not get it. What does the JS proxy do? Sorry, it was off topic and I will work on this later. --~--~-~--~~~---~--~~ 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:22207] only models and appadmin controllers are compiled

2009-05-20 Thread virhilo
Only models and appadmin controllers are compiled, there are no any views or user controllers compiled. --~--~-~--~~~---~--~~ 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:22208] ticketing support on GAE

2009-05-20 Thread Alexey Nezhdanov
Today I managed to make ticketing kind of work on GAE. The 'kind of' because I did an ugly hack - in model.py I did: request.db = db so that later I was able to pick it from there while handling exception. Also the link on crash page points to nowhere, but I think I'll eventually fix it.

[web2py:22209] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-20 Thread murray3
I am using: {{menu=MENU(response.menu)}} {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}} {{=menu}} with this in menu.db: response.menu = [ ['Index', False, URL(request.application,'default','index')], ['another', False,

[web2py:22210] Re: can I use source code of apps from web2py appliances

2009-05-20 Thread mdipierro
Yes, each of them as a different license. If I wrote them they are usually BSD, unless they use GPL JS code, in that case they are GPL. Some are public domain. On May 20, 2:40 am, Iceberg iceb...@21cn.com wrote: I am not the owner of those appliances but in my opinion you can get the answer by

[web2py:22211] Re: Memcache SQL Query as key

2009-05-20 Thread mdipierro
thanks. On May 20, 4:11 am, NicolasB nicolas.bn...@gmail.com wrote: I have sent you an email with my changes. Best regards, Nicolas On 7 mai, 10:53, NicolasB nicolas.bn...@gmail.com wrote: Finally, I keep working on it. I will suggest to add a few other modification. Still testing

[web2py:22212] make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread giohappy
Hello. I've made web2py work with lighttpd correctly. It works fine (also the admin) unitl I keep it in the root of the host, but now I need to have web2py in a subfolder, because my single lighttpd manages other applications too. I know I could start more lighttpd instances on different ports,

[web2py:22213] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-20 Thread mdipierro
Please get 1.62.3 and use {{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}} there is a typo in the code below and it is deprecated anyway, Massimo On May 20, 7:51 am, murray3 ch...@murraypost.net wrote: I am using: {{menu=MENU(response.menu)}} {{menu.ul_class_0 =

[web2py:22214] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-20 Thread Timmie
Hello, I tried to configure a menu with your help yesterday. It was possible. But with the current nested lists, one can easily confuse and get a lot of syntax errors with [ and ] What about a more dictionary data structure? Or someting like: mymenu = MENU() then: mymenu.add_topmenu('title',

[web2py:22215] Re: menu helper [Re: [web2py:22092] web2py 1.62.1 is OUT (New Features List)]

2009-05-20 Thread mdipierro
I guess it can be added as methods of the MENU class. It needs some thought and has to be backward compatible so {{=MENU(response.menu)}} has to work if response.menu follows the old syntax and response.menu=MENU() response.menu.add_item() response.menu.add_cascade() etc. can also be

[web2py:22216] Re: authorization

2009-05-20 Thread mdipierro
record=db.mytable[myrecord] this is the same as db(db.mytable.id==myrecord).select()[0] if the record exists. returns 0 otherwise. I am not sure about your other questions. I got lost in the thread. can you summarize them. --~--~-~--~~~---~--~~ You received

[web2py:22217] Re: another web2py powered

2009-05-20 Thread Skylar Saveland
On May 19, 10:42 am, TheDude officed...@gmail.com wrote: What website is it? I am like so wanting to go check it out. I guess it is a secret of sorts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:22218] Re: another web2py powered

2009-05-20 Thread Yarko Tymciurak
it calls to you... like the spider to the fly... I won't lead you to _that_ web... On Wed, May 20, 2009 at 9:56 AM, Skylar Saveland skylar.savel...@gmail.comwrote: On May 19, 10:42 am, TheDude officed...@gmail.com wrote: What website is it? I am like so wanting to go check it out. I

[web2py:22231] Re: selection of local file

2009-05-20 Thread Hans
that did the trick. thanks massimo! note to myself: always append 'b' to the mode of the file open command to make it work on all platforms (including windows). On May 20, 6:07 pm, mdipierro mdipie...@cs.depaul.edu wrote: It works for me but I think the problem is that  

[web2py:22233] Re: access db from mymodule

2009-05-20 Thread mdipierro
your module is a module and only sees things that are imported. You must pass db to the function that you import so that they can use it. On May 20, 11:24 am, Carl carl.ro...@gmail.com wrote: I've created my own module and placed it in applications/myapp/modules In default.py I've added

[web2py:22229] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread Mark Larsen
but that configuration doesn't fit my needs. I've tried setting the following config, but it always results with an Invalid request. I suppose it's due to the uri parsing, but I can't solve it as I'm quite new to Lighttpd. Any ideas? Giovanni, I had the same problem with web2py, apache2

[web2py:22222] Re: need help with query/select

2009-05-20 Thread mdipierro
, sales.amount.sum() with just one summed row per sales.product, sales.date, continent.name ! basically a sales total per product, day and continent. something like Banana      20090520 Europe    123 Apple         20090520 Europe    234 Apple         20090520 Asia        456 db.define_table

[web2py:22234] Re: Auth, Crud and Service in 1.62rc2

2009-05-20 Thread vihang
couldn't agree more with Annet On May 20, 11:32 am, annet.verm...@gmail.com wrote: I buy the 80-20 rule. But that is a self-fulfilling prophecy. I think you are all doing a great job developing web2py, however, in my opinion Web2py tends to cater too much to users who develop web 2.0

[web2py:22221] Re: selection of local file

2009-05-20 Thread mdipierro
It works for me but I think the problem is that shutil.copyfileobj(request.vars.filename.file,open(path,'w')) should be shutil.copyfileobj(request.vars.filename.file,open(path,'wb')) else when you read it back some of the binary info in the file will be messed up. Massimo On May 20,

[web2py:22220] need help with query/select

2009-05-20 Thread Hans
I need a list of sales.product, sales.date, continent.name, sales.amount.sum() with just one summed row per sales.product, sales.date, continent.name ! basically a sales total per product, day and continent. something like Banana 20090520 Europe123 Apple 20090520 Europe234

[web2py:22226] access db from mymodule

2009-05-20 Thread Carl
I've created my own module and placed it in applications/myapp/modules In default.py I've added import applications.myappliance.modules.mymodule as mymodule In mymodule.py I reference db but db isn't accessible. The ticket states global name 'db' is not defined. What am I missing in

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

2009-05-20 Thread mikech
Thanks Alvaro. On May 19, 9:03 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Wed, May 20, 2009 at 1:00 AM, Michael Chean mp.ch...@gmail.com wrote: This is what I see: Ok, your web2py is updated but your admin app isn't. Please remove applications/admin/* and uncompress

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

2009-05-20 Thread Skylar Saveland
https://www.web2py.com/jpolite https://www.web2py.com/jpolite/default/main#t7 The RSS readers to not work for me. I suppose that we are aware of this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:22235] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread giohappy
No way, url rewrite doesn't solve it. Maybe it's my ignorance, but it seems that the lighttpd fastcgi system override it, or maybe only for web2py as we involke the fastcgihandler as a 404-error handler. If someone has tips to share, he's very welcome! :) giovanni On 20 Mag, 19:30, giohappy

[web2py:22228] Re: need help with query/select

2009-05-20 Thread Hans
     20090520 Europe    123 Apple         20090520 Europe    234 Apple         20090520 Asia        456 db.define_table('sales',     SQLField('product'),     SQLField('date'),     SQLField('country','reference country',requires=IS_IN_DB (db,'country.id','%(name)s

[web2py:22236] Re: Auth, Crud and Service in 1.62rc2

2009-05-20 Thread mdipierro
So what are you proposing? On May 20, 1:40 pm, vihang vihan...@gmail.com wrote: couldn't agree more with Annet On May 20, 11:32 am, annet.verm...@gmail.com wrote: I buy the 80-20 rule. But that is a self-fulfilling prophecy. I think you are all doing a great job developing web2py,

[web2py:22232] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread giohappy
Thanks Mark. I've digged the problem with a rudimental debug, and I can see from the response headers that it's an invalid application error, as web2py looks for /var/www/lighttpd/web2py/applications/w2p, while the last key should be stripped. Lighttpd comes with a strip-request-uri, but it seems

[web2py:22237] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread mdipierro
Do not do this: #strip-request-uri = w2p/ instead in the web2py folder create a file routes.py that contains routes_in=(('/w2p/(?a.*)','/$a'),) routes_out=(('/(?a.*)','/w2p/$a'),) this should solve your problem assuming you build all your inner references using

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

2009-05-20 Thread mdipierro
Yes, I just have not connected, the part that interest me most is containing forms in components. On May 20, 11:14 am, Skylar Saveland skylar.savel...@gmail.com wrote: https://www.web2py.com/jpolite https://www.web2py.com/jpolite/default/main#t7 The RSS readers to not work for me.  I

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

2009-05-20 Thread mdipierro
I fixed the RSS. Just for fun. Here is the web2py RSS code: def rss(): import gluon.contrib.feedparser as feedparser d = feedparser.parse(request.vars.q) r = TAG.channel(P(A(d.channel.title,_href=d.channel.link),XML (d.channel.description))) [

[web2py:22219] Re: selection of local file

2009-05-20 Thread Hans
could you reproduce it on your side? On May 18, 4:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thank you. I will look into this later today. On May 18, 7:35 am, Hans johann.scheibelho...@easytouch-edv.com wrote: diff did not help since excel files are considered binary format. the

[web2py:22238] Re: access db from mymodule

2009-05-20 Thread Carl
thanks M. I mis-thought that with 'db' being global it would be available to modules. thanks for clarifying. (sorry for the basic Python question) On May 20, 7:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: your module is a module and only sees things that are imported. You must pass db to

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

2009-05-20 Thread mdipierro
Yet more improvements now RSS works and forms stay in the boxes if form has class='ajaxform1'. It also enforces all web2py_ajax constraints in 'integer', 'date' fields, etc. Massimo On May 20, 12:16 pm, mdipierro mdipie...@cs.depaul.edu wrote: I fixed the RSS. Just for fun. Here is the web2py

[web2py:22242] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread giohappy
Ops, right, I should have seen it! I'm sorry but it doesn't solve... I'm still receiving invalid application. I will go trying... On 20 Mag, 22:28, mdipierro mdipie...@cs.depaul.edu wrote: Sorry. My bad routes_in=(('/w2p/(?Pa.*)','/$a'),) routes_out=(('/(?Pa.*)','/w2p/$a'),) On May 20,

[web2py:22243] Re: make it work under Lighttpd with $HOST['url']?

2009-05-20 Thread giohappy
The strange is that request.folder still contains /w2p/ at the end. Why isn't it remapped? On 20 Mag, 23:26, giohappy gioha...@gmail.com wrote: Ops, right, I should have seen it! I'm sorry but it doesn't solve... I'm still receiving invalid application. I will go trying... On 20 Mag,

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

2009-05-20 Thread Wes James
Is it supposed to say response.title at the top? On Tue, May 19, 2009 at 1:06 PM, mdipierro mdipie...@cs.depaul.edu wrote: I turned jpolite into a web2py app. https://www.web2py.com/jpolite (there is a download link to the w2p file, requires web2py 1.62.1) The form submission needs more

[web2py:22245] How about making a type called translatable for SQLField?

2009-05-20 Thread mgbeli...@gmail.com
To anyone who would join me on this: How hard do you think it would be to make a translatable type for SQLField, where whatever text you enter will show up in the translator section of the app even though it's in a db and not a controller/view file? I'm thinking about writing something like this

[web2py:22246] Shoes for Python

2009-05-20 Thread mikech
Is anyone aware of a Python implementation of Ruby Shoes http://shoooes.net/ a small gui for Ruby? --~--~-~--~~~---~--~~ 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:22248] auth MVC???

2009-05-20 Thread Horst Herb
I want to create my own login forms and need to create users programmatically. I expected some function such as login(username, cleartextpassword) in the auth class, and also something like cryptpwd(cleartextpassword) Auth however seems to break the MVC paradigm completely. Questions: 1) what do

[web2py:22249] Re: How about making a type called translatable for SQLField?

2009-05-20 Thread Álvaro Justen [Turicas]
On Wed, May 20, 2009 at 8:33 PM, mdipierro mdipie...@cs.depaul.edu wrote: I am not in favor of this because it mixes two different levels of web2py that should be separate. The reason they should be separate is that T is thought for static strings not for dynamic strings. You will run into

[web2py:22250] Re: auth MVC???

2009-05-20 Thread mdipierro
Here is how you manually create a user and the associated user = auth.get_or_create_user(dict(email='...',password='...')) the password must be encrypted. How the password is encrypted depends on the algorithms you choose in auth.settings.table_user.password.requires IF

[web2py:22251] Re: How about making a type called translatable for SQLField?

2009-05-20 Thread mdipierro
It opens a big can of worms. It will make GAE apps very slow. I do not think this should be a priority. Massimo On May 20, 8:24 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Wed, May 20, 2009 at 8:33 PM, mdipierro mdipie...@cs.depaul.edu wrote: I am not in favor of this

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

2009-05-20 Thread mdipierro
I have not set response.title='jPolite and web2py' On May 20, 4:36 pm, Wes James compte...@gmail.com wrote: Is it supposed to say response.title at the top? On Tue, May 19, 2009 at 1:06 PM, mdipierro mdipie...@cs.depaul.edu wrote: I turned jpolite into a web2py app.

[web2py:22253] Re: How about making a type called translatable for SQLField?

2009-05-20 Thread mdipierro
I would be more interested in having tickets in db on GAE. It is not difficult but it will be difficult to do it in an elegant way. Massimo On May 20, 10:09 pm, mdipierro mdipie...@cs.depaul.edu wrote: It opens a big can of worms. It will make GAE apps very slow. I do not think this should be

[web2py:22254] Re: How about making a type called translatable for SQLField?

2009-05-20 Thread mgbeli...@gmail.com
Aha, I see. That function db.mytable.myfield.represent=lambda value: T(value) seems to be what I was looking for. Much easier than modifiying gluon.languages. Shouldn't build what you don't need. Thanks again Massimo. -Matt B. --~--~-~--~~~---~--~~ You

[web2py:22255] Can't access admin because of invalid remote_addr

2009-05-20 Thread Richard
hello, I can't access admin because request.env.remote_addr is invalid. From localhost request.env.remote_addr is defined as: '::1' and from 127.0.0.1 as: ':::127.0.0.1'. Has anyone seen this before? Does it sound like a server configuration problem? I followed this tutorial to set up

[web2py:22256] Re: auth MVC???

2009-05-20 Thread Jason Brower
Massimo, Perhaps we should have more details on that in the guide. Horst, You create your view in the same file you created the controller. If you created Auth() in default.py then you create a /default/login.html and it works. Same with register and so forth. That password hash, I can't remember