[web2py:25067] Re: amf-rpc and Flex 3

2009-06-26 Thread mdipierro
This could be a bug. Could you try if this works for you? http://www.web2py.com/AlterEgo/default/show/232 Massimo On Jun 26, 10:27 pm, nanotalk wrote: > Has anybody could get this work? I am stucked in the same problem > here .. :( > Is it a bug, or something? > > -- > Nano Surbakti > > On May

[web2py:25066] Re: amf-rpc and Flex 3

2009-06-26 Thread nanotalk
Has anybody could get this work? I am stucked in the same problem here .. :( Is it a bug, or something? -- Nano Surbakti On May 29, 5:07 am, roblund wrote: > It appears that this has not been answered yet, so I will bump it back > to the top. I am interested in seeing any examples people have.

[web2py:25065] Re: Announcing my first web2py app

2009-06-26 Thread mdipierro
where does it say ROR? On Jun 26, 6:23 pm, "nathan.ms" wrote: > Great site! Any reason why you used ROR for the front end instead of > web2py? > > On Jun 26, 7:39 am, weheh wrote: > > > My first web2py app is now live! It is a proprietary court > > reservations system developed exclusively for

[web2py:25064] Re: communication error and socket error

2009-06-26 Thread mdipierro
This is an issue with the cherrypy wsgiserver. I suggest you bring it up on the cherrypy mailing list. Massimo On Jun 26, 1:13 pm, todor_k wrote: > I have the same issue. > > as I have understood - error: 32 refers to pipe broken and this > results in hanging up the corresponding thread in whic

[web2py:25063] Re: bug validating datatime

2009-06-26 Thread mdipierro
Yes, something is work with internationalization. Check what T.accepted_language says and then edit the corresponding language file from the admin interface. There are three place where "-MM-DD HH:MM:SS" appears. In the format of the validator, the format of the datepicker and the error messag

[web2py:25062] Re: Announcing my first web2py app

2009-06-26 Thread samwyse
On your fist page: "We firmly beleive" => "We firmly believe" I'd fix it ASAP. On Jun 26, 10:11 am, Vidul wrote: > Congratulations! > > Though a lot simpler than yours, here is my first WEB2PY application > (runs on GAE)https://loadinfo-net.appspot.com > > On Jun 26, 5:51 pm, weheh wrote: > >

[web2py:25061] bug validating datatime

2009-06-26 Thread Sebastian E. Ovide
Hi All, I am getting a wrong validation error on a new model wich has 2 datatime fields.. I am just trying to add some data using the db administrator provided by web2py. It shows a datapicker automatically (nice) but it display the error: must be -MM-DD HH:MM:SS! (the date and time are sele

[web2py:25060] Re: Announcing my first web2py app

2009-06-26 Thread nathan.ms
Great site! Any reason why you used ROR for the front end instead of web2py? On Jun 26, 7:39 am, weheh wrote: > My first web2py app is now live! It is a proprietary court > reservations system developed exclusively for SPiN New York. SPiN is a > hot new ping-pong club in New York City backed by

[web2py:25059] Re: Maemo 2009

2009-06-26 Thread JohnMc
You will find both Brazil and Argentina are big FOSS proponents. One of the bigger community WiFi setups run on FOSS. Many just cannot afford the costs of a Microsoft OS. Once past that adoption of other open source tools just naturally follow. Hope you have a great presentation. On Jun 24, 2:59

[web2py:25058] Re: Maemo 2009

2009-06-26 Thread fpp
On 26 juin, 01:06, AchipA wrote: > Just to report back, both proposals got accepted in some form, so it's > first row for web2py people :) Less so for web2py itself, as it looks like my presentation proposal will turn into a lightning talk. OTOH it's a trade-off : less time, larger audience...

[web2py:25057] Re: global logging to file

2009-06-26 Thread Hans
Mike, instead of importing in your Web2py controller use execfile('your_module.py') In your module ... try: # this variable is available in Web2Py # but raises an exception if run outside Web2Py # since its not defined request.env.web2py_version # put here your web

[web2py:25056] Re: communication error and socket error

2009-06-26 Thread todor_k
I have the same issue. as I have understood - error: 32 refers to pipe broken and this results in hanging up the corresponding thread in which this happened. May be after some timeout the thread is released. But if we have lower quantity of allowed threads (for embedded system for example) and th

[web2py:25055] Re: form_factory focus

2009-06-26 Thread DenesL
On Jun 26, 6:51 am, annet wrote: > Massimo, > > When I add this line of code: > > $("input:text:first:visible").focus(); > > to the core_ajax_init() function in web2py_ajax.html, the calendar > breaks when the first field in a form is of type date. Is there a way > to solve this. What do you mea

[web2py:25054] Re: form_factory focus

2009-06-26 Thread mdipierro
did you try? jQuery(document).ready(function(){ jQuery ("input:text:first:visble").focus(); }); On Jun 26, 1:33 pm, Hans Donner wrote: > annet, perhpas you can first retrieve the current onfocus value and > pass that back on your onfocus. This could be done for all forms. > > On Fri, Jun 26, 20

[web2py:25053] Re: form_factory focus

2009-06-26 Thread Hans Donner
annet, perhpas you can first retrieve the current onfocus value and pass that back on your onfocus. This could be done for all forms. On Fri, Jun 26, 2009 at 7:55 PM, annet wrote: > > I liked the $("input:text:first:visble").focus(); solution because one > line of code sets the focus on the first

[web2py:25052] Re: Proposed Gluon.sql patch for ill-named ID fields.

2009-06-26 Thread brado
Great. I'll watch for the DAL changes. On Jun 26, 11:53 am, mdipierro wrote: > This is complicated and with the current DAL I am not sure myself what > it would break. I am rewriting the DAL to be more modular and allow > mapping between virtual names and actual names. This will be possible > th

[web2py:25049] Re: executing db.py in models dir every app refresh

2009-06-26 Thread mdipierro
Not that if you ask for pool_size=100 connections it does not create 100 connections. It creates them as necessary up to 100. In other words the actual number of connection if the max number of concurrent connections required to serve the requested pages, capped at 100. If it happens that your ser

[web2py:25051] Re: form_factory focus

2009-06-26 Thread annet
I liked the $("input:text:first:visble").focus(); solution because one line of code sets the focus on the first input field in all my forms, in my cms application alone I have 32 forms. Only two of them have a field of type date as the first field visible. In case of Denes's code I would have to s

[web2py:25050] Re: Image validation on size and dimensions

2009-06-26 Thread mdipierro
Long ago user Voltron and Denes has done this using the PIL module. Here is an extract of a previous post: Try the following code as your db.py model and insert a new image using the appadmin, this works for me (v369 & PIL 1.1.6 on windows): import Image class IS_IMAGE(object): def __init__(sel

[web2py:25048] Re: form_factory focus

2009-06-26 Thread JohnMc
Annet, DenesL is correct. web2py_ajax.html has the onfocus set to a callback to invoke the calendar. Take DenesL code as he provided it, and in the .focus() include a call back function for the Calendar code just like it is in web2py_ajax.html. Should be a simple cut and paste. JohnMc On Jun 2

[web2py:25047] Image validation on size and dimensions

2009-06-26 Thread annet
In my application I allow users to upload images. I would like to validate the images on size (xx KB) and dimensions (width xxx and height xxx). I wonder whether any one has done this before, and what is the best way to proceed. Kind regards, Annet. --~--~-~--~~~---~

[web2py:25046] Re: executing db.py in models dir every app refresh

2009-06-26 Thread Speedbird
Excellent, then from what I gather, as with all other configuration rules-of-thumb, the answer is "It depends." While the optimal size depends on anticipated load and average database transaction time, the optimum connection pool size will usually be smaller than one might expect. If you take for

[web2py:25045] Re: A small note about the default CSS

2009-06-26 Thread Zoom.Quiet
On Sat, Jun 27, 2009 at 00:21, mdipierro wrote: > > I will change it, but can you explain what is a z-index? > 囧rz... z-index means just like words; it define object turn in z axle ~ vertical with the web page; div's z-index default is 0; so a div set z-index as 10; b div set as 100; so when the

[web2py:25044] Re: Announcing my first web2py app

2009-06-26 Thread Zoom.Quiet
On Fri, Jun 26, 2009 at 23:50, mdipierro wrote: > > Looks beautiful. Buch better that the sites I make. > that is true ;-) vido gallery is good,and speed even from china is enough! ROCK web2py , ROCK python! > Massimo > > On Jun 26, 9:51 am, weheh wrote: >> Oh, I forgot, sorry. The website ishtt

[web2py:25043] Re: A small note about the default CSS

2009-06-26 Thread mdipierro
I will change it, but can you explain what is a z-index? Massimo On Jun 26, 10:18 am, Vidul wrote: > "base.css" does not take into account, that if the layout TABLE has no > z-index eventually the Flash DIV will not be shown properly. > A quick fix: > > .layout { > ... > z-index: 1; > >

[web2py:25042] Re: Announcing my first web2py app

2009-06-26 Thread mdipierro
Hi Vidul, since this is a consulting company, let me know if you want to be listed as an "affiliated company" on the web2py site, i.e. a company that does web2py support. The images in page: https://loadinfo-net.appspot.com/init/default/about are hard to see because they are white. Massimo On

[web2py:25041] Re: Announcing my first web2py app

2009-06-26 Thread DenesL
Congratulations!. It is always good to hear success stories around web2py. --~--~-~--~~~---~--~~ 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

[web2py:25040] A small note about the default CSS

2009-06-26 Thread Vidul
"base.css" does not take into account, that if the layout TABLE has no z-index eventually the Flash DIV will not be shown properly. A quick fix: .layout { ... z-index: 1; } .flash { ... z-index: 2; } --~--~-~--~~~---~--~~ You received this message

[web2py:25039] Re: Announcing my first web2py app

2009-06-26 Thread Vidul
Congratulations! Though a lot simpler than yours, here is my first WEB2PY application (runs on GAE) https://loadinfo-net.appspot.com On Jun 26, 5:51 pm, weheh wrote: > Oh, I forgot, sorry. The website ishttp://www.spinyc.com. I guess I > didn't include the URL because it would seem like a tease

[web2py:25038] Re: executing db.py in models dir every app refresh

2009-06-26 Thread mdipierro
The only limits are those imposed by the database. They can always be changed by editing mysql.conf, postegrsql.conf etc. sqlite does not use pooling. Massimo On Jun 26, 9:57 am, Speedbird wrote: > Massimo, is there a limit or a relationship between the database and > the number of collection p

[web2py:25037] Re: Proposed Gluon.sql patch for ill-named ID fields.

2009-06-26 Thread mdipierro
This is complicated and with the current DAL I am not sure myself what it would break. I am rewriting the DAL to be more modular and allow mapping between virtual names and actual names. This will be possible then. Massimo On Jun 26, 9:07 am, brado wrote: > Legacy databases without Id fields: a

[web2py:25036] Re: Announcing my first web2py app

2009-06-26 Thread mdipierro
Looks beautiful. Buch better that the sites I make. Massimo On Jun 26, 9:51 am, weheh wrote: > Oh, I forgot, sorry. The website ishttp://www.spinyc.com. I guess I > didn't include the URL because it would seem like a tease. The > reservations system is only available to club members who are log

[web2py:25035] Re: import custom module from controller

2009-06-26 Thread MikeEllis
Thanks! That works (but wouldn't it make more sense for web2py to include the application's modules directory in sys.path?) Mike On Jun 26, 10:52 am, DenesL wrote: > You should be using: > > exec('from applications.%s.modules import xx as > yy'%request.application) > reload(yy) > > the reload is

[web2py:25034] Re: executing db.py in models dir every app refresh

2009-06-26 Thread Speedbird
Massimo, is there a limit or a relationship between the database and the number of collection pools to be defined? (I am sorry, I am at work currently and do not have access to the source to see how pool_size is implemented) Thanks! On Jun 25, 4:57 pm, mdipierro wrote: >    db=SQLDB(,pool_

[web2py:25033] Re: import custom module from controller

2009-06-26 Thread DenesL
You should be using: exec('from applications.%s.modules import xx as yy'%request.application) reload(yy) the reload is only required during development when the module code might change. This also provides application name independence. --~--~-~--~~~---~--~~ You

[web2py:25032] Re: Announcing my first web2py app

2009-06-26 Thread weheh
Oh, I forgot, sorry. The website is http://www.spinyc.com. I guess I didn't include the URL because it would seem like a tease. The reservations system is only available to club members who are logged in. So tehre's not much to see. Sorry! --~--~-~--~~~---~--~~ You

[web2py:25031] Proposed Gluon.sql patch for ill-named ID fields.

2009-06-26 Thread brado
Legacy databases without Id fields: a lightweight proposal. I plan to pluck information from a live Drupal site into a Web2Py site, and I love Web2Py's compact database layer. Drupal designs it's tables with an autoincrementing integer primary key, which agrees with gluon.sql, but it names them

[web2py:25030] Re: import custom module from controller

2009-06-26 Thread MikeEllis
Arrgh! spoke too soon. Problem reappeared the second time I visited the index page. Here's the ticket ... Error traceback Traceback (most recent call last): File "/Users/mellis/sources/trunk/python/web2py/gluon/ restricted.py", line 107, in restricted exec ccode in environment File "/Us

[web2py:25029] Announcing my first web2py app

2009-06-26 Thread weheh
My first web2py app is now live! It is a proprietary court reservations system developed exclusively for SPiN New York. SPiN is a hot new ping-pong club in New York City backed by Susan Sarandon and others (including me -- talk about putting your money where your mouth is!). Club members can reser

[web2py:25028] Re: import custom module from controller

2009-06-26 Thread MikeEllis
I just ran into what may be the same problem. I created a python module in my apps modules directory and it showed up in the admin page listings, could be edited, etc, but trying to import in a controller kept failing. After I restarted web2py, the import succeeded. Is there some documentation

[web2py:25027] Re: xml

2009-06-26 Thread JohnMc
pk, Do you know jQuery at all? Reason I ask is I just finished installing lxml and PyQuery yesterday to do data gathering. PyQuery makes it pretty easy to slice and dice HTML off a site and looks/acts like jQuery selectors. You can do the same with XML docs with PyQuery. lxml provides all the xml

[web2py:25026] Re: error messages in Auth.change_password

2009-06-26 Thread Fran
On Jun 26, 1:03 pm, "Sebastian E. Ovide" wrote: > cool !   is it part of 1.63.4 ? No - it was done in r959: http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/959 1.64.4 is r957 https://code.launchpad.net/~mdipierro/web2py/devel > another question : is it possible to customize "chang

[web2py:25025] Re: form_factory focus

2009-06-26 Thread DenesL
The calendar field is probably using the onfocus event so my guess is that you can not set the focus on those kind of fields. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to t

[web2py:25024] Re: error messages in Auth.change_password

2009-06-26 Thread Sebastian E. Ovide
cool ! is it part of 1.63.4 ? another question : is it possible to customize "change password" screen in the way to add a "cancel" button and/or another link such as "return home" ? thanks Sebastian E. Ovide On Thu, Jun 25, 2009 at 11:25 PM, mdipierro wrote: > > Try the trunk and the f

[web2py:25023] communication error and socket error

2009-06-26 Thread szimszon
Hi! I wonder if somebody could help me. web2py Version 1.64.4 (2009-06-24 00:40:36) If I try to edit controllers remote (from Internet through vpn (just UMTS) -- slow connection) I just get communication error after save : ( (no traceback on server side) >From local network I get communication

[web2py:25022] Re: form_factory focus

2009-06-26 Thread annet
Massimo, When I add this line of code: $("input:text:first:visble").focus(); to the core_ajax_init() function in web2py_ajax.html, the calendar breaks when the first field in a form is of type date. Is there a way to solve this. Denes, Using your solution, I don't have the problem described

[web2py:25021] AW: [web2py:25019] Re: web2py 1.63.4 is OUT

2009-06-26 Thread Johann . Scheibelhofer
In the file README Hans - Originalnachricht - Von: Carl [carl.ro...@gmail.com] Gesendet: 26.06.2009 03:32 MST An: web2py Web Framework Betreff: [web2py:25019] Re: web2py 1.63.4 is OUT hi M, where can I find release notes for each release? Carl On Jun 4, 2:56 pm, mdipierro wrote

[web2py:25020] Re: OR in query

2009-06-26 Thread annet
John, Thanks for drawing my attention to Fran's solution. It also comes in handy to solve another problem I was facing. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:25019] Re: web2py 1.63.4 is OUT

2009-06-26 Thread Carl
hi M, where can I find release notes for each release? Carl On Jun 4, 2:56 pm, mdipierro wrote: > 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 findrelease/ > > c

[web2py:25018] Re: autocomplete

2009-06-26 Thread Nur Hisyam Mohamed
Yeah. exactly. I'm looking for ways I can get autocompletion feature in vim for web2py.That links is helpful. I will look into Ulipad and see what it can offers. If it offers better features related to web2py, I might as well use it for just web2py rather than trying to figure out how to make vim