[web2py:29303] Re: fyi

2009-08-25 Thread mdipierro
I hope we never get to find out. On Aug 24, 6:45 pm, suiato wrote: > I posted on reddit for the first time : > frequent updates that don't break code is an important point to be > made. Linux kernel development is, of course, far larger in scale, but > the same principle applies. Its statistics

[web2py:29304] Re: new welcome layout

2009-08-25 Thread mdipierro
That color scheme is based on the color wheel by Itten. It is the same used here http://www.web2py.com/layouts. In fact I have rewritten the algorithm in Python. The problem is that I lack the software to make button, banners, etc. Massimo On Aug 24, 7:00 pm, "mr.freeze" wrote: > It may just

[web2py:29305] Re: The TAO of Key-Value DBs "NoSQL" (V. Good List of NoSQL DBs)

2009-08-25 Thread mdipierro
Not that I know but we can help you want to do it. On Aug 24, 11:39 pm, suiato wrote: > recently installed Tokyo Cabinet/Tyrant on my test server. > interested in using it from within web2py thru memcached or RESTful > http interface... > any activities along this line of development? > > -- > T

[web2py:29307] Re: upload filename inconsistency

2009-08-25 Thread mdipierro
So how should one remove the path without knowing whether is a Linux or a Windows path? Massimo On Aug 25, 12:39 am, Richard wrote: > if there is a Windows path passed to my Linux based web2py server, > then os.path.basename() is not going to remove the directory. Could > that be the problem? >

[web2py:29306] Re: Googlemap in web2py

2009-08-25 Thread mdipierro
We have this: http://bazaar.launchpad.net/~mdipierro/web2conf/devel/annotate/head%3A/views/default/maps.html and we have from gluon.tools import geocode (lo,la)=geocode('243 S Wabash Ave, Chicago, IL") On Aug 24, 11:58 pm, rondevu wrote: > Is there any examples of implementation of GoogleMap

[web2py:29308] Re: ticket events

2009-08-25 Thread mdipierro
On Aug 25, 1:45 am, Richard wrote: > A few questions/comments from my experience implementing this: > > tickets2db.py needs an update because of a new interface for > RestrictedError(): > 40) error.load(filename) -> error.load(request, request.app, > filename) will fix it, thanks. > If I want

[web2py:29309] problem with Enthought Python

2009-08-25 Thread mdipierro
I have been trying to use web2py with Enthought Python. It seems that cron break something. No error not the web server does not start. I do not have much time to look into this so any help will be appreciated. --~--~-~--~~~---~--~~ You received this message because

[web2py:29310] Re: Every while and then file upload fails

2009-08-25 Thread mmstud
Got it captured. Actually upload process fails quite often with Safari (4.0.3): http://www.screencast.com/users/mmstud/folders/Jing/media/bc50ae72-c826-4184-af40-4dcad5c95517 On Aug 25, 9:44 am, mmstud wrote: > Didnt happen with Firefox yesterday. I try today with Safari again. > > On Aug 24, 8

[web2py:29311] Re: appadmin error

2009-08-25 Thread mdipierro
There are two issues here: 1) cgi.FieldStorage behaves differently between 2.5 and 2.6. There is NO WAY around this problem. For example if the request.get_vars contain {'x', 'y'} and the request.post_vars contain {'x': ['y','z']} does it mean that x=y is in the body of the POST or that python is

[web2py:29312] Re: IS_NULL_OR + IS_IMAGE

2009-08-25 Thread mdipierro
Fixed in trunk! Thanks for reporting the problem. On Aug 24, 8:16 pm, Jose wrote: > Version: 1.66.2 > Rev: 1187 (svn) > > Model: > > db.define_table('unatabla', >     Field('nombre'), >     Field('foto', 'upload') > ) > db.unatabla.foto.requires = IS_NULL_OR(IS_IMAGE(maxsize=(600, 400))) > > Hi,

[web2py:29313] Re: IS_NULL_OR + IS_IMAGE

2009-08-25 Thread Jose
On 25 ago, 08:57, mdipierro wrote: > Fixed in trunk! Thanks for reporting the problem. > Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py

[web2py:29314] Re: Every while and then file upload fails

2009-08-25 Thread mdipierro
I have seen this before. I do not know what the problem is. Somebody needs to do a tcpdump of the conversation and figure out why the timeout occurs. Massimo On Aug 25, 3:09 am, mmstud wrote: > Got it captured. Actually upload process fails quite often with Safari > (4.0.3): > > http://www.scre

[web2py:29315] ldap authentification AD

2009-08-25 Thread max
I tried to add the following code in the db.py from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [ldap_auth(mode='ad', server='my.domain.controller', base_dn='ou=Users,dc=domain,dc=com')] but it gives the failure. gluon.contrib.login_methods.ldap_auth impo

[web2py:29316] Re: ldap authentification AD

2009-08-25 Thread mdipierro
Do you have python ldap API installed? It does not come with web2py. On Aug 25, 4:41 am, max wrote: > I tried to add the following code in the db.py > > from gluon.contrib.login_methods.ldap_auth import ldap_auth > auth.settings.login_methods = [ldap_auth(mode='ad', > server='my.domain.controlle

[web2py:29317] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
yeap, I am uploading it now! On Aug 24, 11:29 pm, Joe Barnhart wrote: > That's a good idea and a nicely done site.  In light of Massimo's plea for > more visibility, do you think you could put a "created using web2py" message > somewhere on the page? > > On Mon, Aug 24, 2009 at 8:53 AM, Jon Rome

[web2py:29318] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
it's ready :) I would be very glad if web2py.com was using the service and of course other opensource developers. On Aug 25, 12:53 pm, Jon Romero wrote: > yeap, I am uploading it now! > > On Aug 24, 11:29 pm, Joe Barnhart wrote: > > > That's a good idea and a nicely done site.  In light of Mass

[web2py:29319] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread ProfessionalIT
Congratulations !!! Jon. Very good !. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to w

[web2py:29320] Solved: ldap authentification AD

2009-08-25 Thread max
thanks. now i installed it. On 25 Aug., 11:52, mdipierro wrote: > Do you have python ldap API installed? It does not come with web2py. > > On Aug 25, 4:41 am, max wrote: > > > I tried to add the following code in the db.py > > > from gluon.contrib.login_methods.ldap_auth import ldap_auth > > au

[web2py:29323] Re: Solved: ldap authentification AD

2009-08-25 Thread max
i installed python-ldap and now i can load it. Then i tried it with cas by changing the cas_auth by editting it like this. But it still it works only for the local database. What i need is that the web2py user (ad user name )identifies against the active directory password after first registra

[web2py:29324] Re: run python code from onclick event

2009-08-25 Thread mdipierro
1) you changed the check() action from my example. I do not understand what it does anymore. I thought it would remove or add a single part but now it has a loop. why? 2) did you try calling the check/[prod_id]/[part_id] action without ajax? That will give you a ticket that helps debugging. 3) You

[web2py:29325] ldap authentification AD cas

2009-08-25 Thread max
i installed python-ldap and now i can load it. Then i tried it with cas by changing the cas_auth by editting it like this. But it still it works only for the local database. What i need is that the web2py user (ad user name )identifies against the active directory password after first registra

[web2py:29321] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread mdipierro
excellent work! On Aug 25, 5:55 am, ProfessionalIT wrote: > Congratulations !!! Jon. > Very good !. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@g

[web2py:29322] Re: run python code from onclick event

2009-08-25 Thread murray3
Guy's thanks for your help yesterday. Massimo, I am developing for app engine so the "&" selects do not work and I had to modify '=' to '==' in a couple of places to get the view to load without GAE errors. It is still not quite working, I nested 'if's' for GAE selects perhaps you will see what ne

[web2py:29327] Re: SSH and access.py

2009-08-25 Thread DenesL
On Aug 24, 11:45 pm, Álvaro Justen [Turicas] wrote: > Paste the SSH command you created that tunnel - I think the error is in that. In Putty it would be something like L8000 we2py-ip:8000 if you are thinking L8000 127.0.0.1:8000 that does not work, in Firefox you would get: "The connectio

[web2py:29326] Re: findby name and link to event records

2009-08-25 Thread jayvandal
I downloade ipython and it installed it in python26\lib\site packages \ipython as per the installer..(I am running Windows Vista) I ran ipython and typed in records=db(db.person.last_name==request.vars.last_name)\ .select(orderby=db.person.last_name) - It didn't like db. I dont see

[web2py:29329] Re: run python code from onclick event

2009-08-25 Thread murray3
Hi, I was trying to get it to work without the syntax errors, I changed back to your controller code and get the following error: INFO 2009-08-25 13:31:35,296 dev_appserver.py] "GET /fab3/default/ m230/8?keepThi " 500 - INFO 2009-08-25 13:32:09,000 dev_appserver.py] "GET /fab3/default/ g/a

[web2py:29328] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Benigno
Hello Jon, Nice app, and great idea. Is there a way to restrict by the kind of ads one would add to his website?. I mean, mantaining a profesional website, I wouldnt mind linking to other profesional sites, but it doesnt make sense to link to say a retail store or gaming site or whatever.

[web2py:29330] Re: findby name and link to event records

2009-08-25 Thread mr.freeze
As Yarko mentioned, you need to start web2py in shell mode by typing: >>python web2py.py -S yourapp -M This will create all of the variables you need in the shell such as db. I highly recommend going through the book from start to end. It will save you many hours of frustration and only costs $1

[web2py:29331] Re: appadmin error

2009-08-25 Thread Jonathan Lundell
On Aug 25, 2009, at 1:45 AM, mdipierro wrote: > > There are two issues here: > > 1) cgi.FieldStorage behaves differently between 2.5 and 2.6. There is > NO WAY around this problem. For example if the request.get_vars > contain {'x', 'y'} and the request.post_vars contain {'x': ['y','z']} > does i

[web2py:29332] Re: run python code from onclick event

2009-08-25 Thread mdipierro
def check(): part_id=request.args(1) if not db((db.prodj_refs.prodj_id==request.args(0))& \ (db.prodj_refs.part_id==part_id)).delete() return 'jQuery('#selector%i' % part_id).html('not selected') else: db.prodj_refs.insert(prodj_id=request.

[web2py:29333] Re: When does form.accepts fail?

2009-08-25 Thread Joe Barnhart
OK, here's the deal. There is something timing-related about having a large amount of markup to process and whether the controller is called once or twice. On small amounts of text, the controller is called once for each press of the "show" or "save" buttons. On large text blocks, where there is

[web2py:29334] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-25 Thread Carl
I've just downloaded 1.66.2 and am getting further. I'm getting this ticket... Traceback (most recent call last): File "G:\My Documents\Carl\projects\TestOrbit\web2py\gluon\main.py", line 412, in wsgibase session._try_store_on_disk(request, response) File "G:\My Documents\Carl\projects\T

[web2py:29335] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-25 Thread mdipierro
Yes. That issues was fixed in 1.66.2 On Aug 20, 4:24 am, Carl wrote: > hi, > > I upgraded from 1.65.5 to 1.66.1 this morning but had the following > issue. > > I'm using WinXP with sqlite. > > recent call stack (most recent call at bottom)... > > gluon/main.py line 470 inwsgibase session._unlock

[web2py:29336] radical proposal

2009-08-25 Thread mdipierro
I have a radical proposal of changing the default length of string, upload, password fields to 512. This will cause a migration in all existing apps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" gro

[web2py:29337] SQLFORM with individual HTML customization

2009-08-25 Thread whs
Hi, I want to program our intranet site with web2py (because it is really the best framework I found). Because this is sort of an ERP application I need a lot of customizations of the SQLFORMs in HTML, e.g. group the address or communication fields in a special way. I learned from the manual that

[web2py:29338] EARN MONEY $1000-25000 PER MONTH

2009-08-25 Thread gurudon s
EARN MONEY $1000-25000 PER MONTH TAKE SIMPLE ONLINE SURVEYS CREATE FREE ACCOUNT OTHER DETAILS LOG ON TO * http://www.AWSurveys.com/HomeMain.cfm?RefID=sangeethap77 ***

[web2py:29339] Re: radical proposal

2009-08-25 Thread Iceberg
On Aug26, 12:53am, mdipierro wrote: > I have a radical proposal of changing the default length of string, > upload, password fields to 512. This will cause a migration in all > existing apps. What is the default length of string currently? If I modified my old apps to define an explicit length

[web2py:29340] Re: new welcome layout

2009-08-25 Thread mr.freeze
IMHO the welcome app, web2py.com and the admin interface should have the same color scheme and styles to give them a unified look and feel. On Aug 25, 2:47 am, mdipierro wrote: > That color scheme is based on the color wheel by Itten. It is the same > used herehttp://www.web2py.com/layouts. > In

[web2py:29341] Re: SQLFORM with individual HTML customization

2009-08-25 Thread Iceberg
On Aug25, 9:57pm, whs wrote: > Hi, > > I want to program our intranet site with web2py (because it is really > the best framework I found). > Because this is sort of an ERP application I need a lot of > customizations of the SQLFORMs in HTML, e.g. group the address or > communication fields in a

[web2py:29342] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-25 Thread Carl
thanks! On 25/08/2009, mdipierro wrote: > > > Yes. That issues was fixed in 1.66.2 > > On Aug 20, 4:24 am, Carl wrote: > > hi, > > > > I upgraded from 1.65.5 to 1.66.1 this morning but had the following > > issue. > > > > I'm using WinXP with sqlite. > > > > recent call stack (most recent call a

[web2py:29343] Re: Every while and then file upload fails

2009-08-25 Thread Yarko Tymciurak
I would not be surprised if this is the same / closely related issue we've seen w/ download. If my memory serves, webkit based browsers send a things in a little different order. If it's what I suspect, a tcpdump will not show it, as it is a timing / recovery issue within cherrypy. Just a thou

[web2py:29344] Re: findby name and link to event records

2009-08-25 Thread Yarko Tymciurak
I suggested you have ipython installed, because web2py shell will use ipython if it's available (and you then get completion facilities). Sorry for any confusion. On Tue, Aug 25, 2009 at 8:52 AM, mr.freeze wrote: > > As Yarko mentioned, you need to start web2py in shell mode by typing: >>>python

[web2py:29346] Re: Every while and then file upload fails

2009-08-25 Thread Yarko Tymciurak
btw - webkit browsers are Safari and Google Chrome On Tue, Aug 25, 2009 at 1:18 PM, Yarko Tymciurak wrote: > I would not be surprised if this is the same / closely related issue > we've seen w/ download. > > If my memory serves,  webkit based browsers send a things in a little > different ord

[web2py:29347] Re: radical proposal

2009-08-25 Thread mdipierro
On Aug 25, 12:21 pm, Iceberg wrote: > On Aug26, 12:53am, mdipierro wrote: > > > I have a radical proposal of changing the default length of string, > > upload, password fields to 512. This will cause a migration in all > > existing apps. > > What is the default length of string currently? 32

[web2py:29348] Re: new welcome layout

2009-08-25 Thread mdipierro
I was working under the opposite assumption so that new users do now get confused on what is what. On Aug 25, 12:22 pm, "mr.freeze" wrote: > IMHO the welcome app, web2py.com and the admin interface should have > the same color scheme and styles to give them a unified look and > feel. > > On Aug

[web2py:29345] Re: new welcome layout

2009-08-25 Thread Yarko Tymciurak
the old default was 32 I think; you do not need to migrate if you have explicitly defined lengths. If you used default in apps, and did not set "migrate=False" then WARNING this change will change (migrate) your db. That's what Massimo was getting at I think. On Tue, Aug 25, 2009 at 12:22 PM,

[web2py:29349] Re: new welcome layout

2009-08-25 Thread Yarko Tymciurak
(oops! - accidentally posted this in the wrong place - should have gone to the "radical ..." thread) On Tue, Aug 25, 2009 at 1:31 PM, Yarko Tymciurak wrote: > the old default was 32 I think;   you do not need to migrate if you > have explicitly defined lengths. > If you used default in apps, and

[web2py:29350] Re: radical proposal

2009-08-25 Thread Jonathan Lundell
On Aug 25, 2009, at 9:53 AM, mdipierro wrote: > I have a radical proposal of changing the default length of string, > upload, password fields to 512. This will cause a migration in all > existing apps. This might be a good opportunity to make an explicit contract on default fields with respect

[web2py:29351] @reboot CRON patch

2009-08-25 Thread Kacper Krupa
Hello, Lately i've to use web2py's cron, and @reboot "function" but it didn't work, so I checked it and created patch. Use it if you want. http://paste.pagenoare.net/default/show/136 Regards. --~--~-~--~~~---~--~~ You received this message because you are subscri

[web2py:29352] Re: radical proposal

2009-08-25 Thread mdipierro
I agree On Aug 25, 2:08 pm, Jonathan Lundell wrote: > On Aug 25, 2009, at 9:53 AM, mdipierro wrote: > > > I have a radical proposal of changing the default length of string, > > upload, password fields to 512. This will cause a migration in all > > existing apps. > > This might be a good opportu

[web2py:29353] Re: ldap-auth issue

2009-08-25 Thread Don
I am also trying to authenticate against a LDAP server (not working). I cannot get the ldapwhoami command to work, but ldap search does work for me. I do not think the server can respond to the command. ldapsearch does work: ldapsearch -b 'ou=yp,o=company.com' -H ldaps://yp.company.com -x 'mail=

[web2py:29354] Re: new welcome layout

2009-08-25 Thread Jonathan Lundell
On Aug 25, 2009, at 11:42 AM, mdipierro wrote: > > I was working under the opposite assumption so that new users do now > get confused on what is what. I think that's a good move. > > On Aug 25, 12:22 pm, "mr.freeze" wrote: >> IMHO the welcome app, web2py.com and the admin interface should hav

[web2py:29355] Re: @reboot CRON patch

2009-08-25 Thread mdipierro
In trunk! thanks. On Aug 25, 2:14 pm, Kacper Krupa wrote: > Hello, > > Lately i've to use web2py's cron, and @reboot "function" but it didn't > work, so I checked it and created patch. Use it if you want. > > http://paste.pagenoare.net/default/show/136 > > Regards. --~--~-~--~~--

[web2py:29356] Re: radical proposal

2009-08-25 Thread mdipierro
In trunk. Give this is a try. please. On Aug 25, 2:20 pm, mdipierro wrote: > I agree > > On Aug 25, 2:08 pm, Jonathan Lundell wrote: > > > On Aug 25, 2009, at 9:53 AM, mdipierro wrote: > > > > I have a radical proposal of changing the default length of string, > > > upload, password fields to 5

[web2py:29357] Re: ldap-auth issue

2009-08-25 Thread Don
I took a look at the source code and I see that the "mode" option has a specific set of accepted values. our user names are based on the "mail" field in the ldap record. not uid. So this would not work at all. unless I change the source. On Aug 25, 3:24 pm, Don wrote: > I am also trying to au

[web2py:29358] Re: ldap-auth issue

2009-08-25 Thread mdipierro
Please send me a patch to allow this. Massimo On Aug 25, 2:47 pm, Don wrote: > I took a look at the source code and I see that the "mode" option has > a specific set of accepted values.  our user names are based on the > "mail" field in the ldap record.  not uid.  So this would not work at > al

[web2py:29359] Re: Googlemap in web2py

2009-08-25 Thread Tim Michelsen
mdipierro schrieb: > We have this: > > http://bazaar.launchpad.net/~mdipierro/web2conf/devel/annotate/head%3A/views/default/maps.html > > and we have > > from gluon.tools import geocode > (lo,la)=geocode('243 S Wabash Ave, Chicago, IL") I succeded in using OpenLayers. Quite easy with web2py.

[web2py:29362] Re: Every while and then file upload fails

2009-08-25 Thread Wes James
On Tue, Aug 25, 2009 at 2:24 PM, sherdim wrote: > > I agree that the problem exists. > > In my app a manager regularly complains on this error when uploading > photos. > > attempts to increase timeout in the class HttpServer didn't help > error can emerge through a couple of seconds > > His system

[web2py:29363] Re: EARN MONEY $1000-25000 PER MONTH

2009-08-25 Thread Yarko Tymciurak
This user is banned; this mail must have accidentally been let thru (we moderate all "new" users, and then filter spam vs. actual web2py mail - sometimes, on a very busy night of spam, it is easy to click the wrong box, and accidentally let one mail through. Thankfully, this happens very rarely)

[web2py:29364] Re: Every while and then file upload fails

2009-08-25 Thread Yarko Tymciurak
what web server are you using? Have you configured for Windows IIS-6? windows apache + wsgi? web2py's included cherrypy? (etc.)? On Tue, Aug 25, 2009 at 3:24 PM, sherdim wrote: > > I agree that the problem exists. > > In my app a manager regularly complains on this error when uploading > photo

[web2py:29365] Re: ldap-auth issue

2009-08-25 Thread Don
I made a mistake. ldapsearch does in fact return a uid. I do not manage the ldap server, so I did not know how it was setup. I think when we authenticate against postgress, it takes our e-mai addresses, finds the uid/dn (which in our case is a cryptic serial number) and then attempts to authent

[web2py:29360] Re: EARN MONEY $1000-25000 PER MONTH

2009-08-25 Thread Álvaro Justen [Turicas]
Anyone can ban this user? On Tue, Aug 25, 2009 at 14:14, gurudon s wrote: > > EARN MONEY $1000-25000 PER MONTH > TAKE SIMPLE ONLINE SURVEYS > CREATE FREE ACCOUNT OTHER DETAILS LOG ON TO > *

[web2py:29361] Re: Every while and then file upload fails

2009-08-25 Thread sherdim
I agree that the problem exists. In my app a manager regularly complains on this error when uploading photos. attempts to increase timeout in the class HttpServer didn't help error can emerge through a couple of seconds His system: Windows Vista, IE7 Server: Windows Server 2003, web2py in sour

[web2py:29366] Re: ldap-auth issue

2009-08-25 Thread Don Lee
I thought the following code would work, but I am not getting any response. === if mode == 'company': # search company ldap database via the e-mail address to figure out the dn con.simple_bind_s("", "") filter = '(mail='+username+')'

[web2py:29367] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
>     Nice app, and great idea. Is there a way to restrict by the kind > of ads one would add to his website?. By choosing the category of your site, your banner is displayed only to sites from the same category (and you are getting relevant banners for your site). This feature for now is disable

[web2py:29368] Re: run python code from onclick event

2009-08-25 Thread murray3
Ok I have a better understanding (i read a jquery ajax tutorial) of what you where trying to do in your first reply. I have amended "=" to "==" and added ":" in the "if not" statement which where missing and caused syntax errors. The problem is that in the view: onclick="{{=URL (r=request,f='check

[web2py:29369] Re: findby name and link to event records

2009-08-25 Thread jayvandal
Thanks I have the book. I downloaded the book and then printed it . I don't remember any ipython. i have the web2py windows installed and python 26 installed. I have downloaded ipython installed in python folder in script , but I don't have a web2py.py file. Do I need a ppython file of web2py to

[web2py:29370] Re: findby name and link to event records

2009-08-25 Thread mr.freeze
Yes, you'll need the source code. You can get it here...: http://www.web2py.com/examples/static/web2py_src.zip ...then extract it to the folder of your choice (c:\web2py for me) Now open a command prompt, cd into that folder and type: python web2py.py -S yourapp -M The -S switch is for shell m

[web2py:29371] Re: ldap-auth issue

2009-08-25 Thread Don Lee
I finally have this working!! I just had to read a lot of code and the manual as well. For my companies special LDAP server setup, I had to modify ldap_auth.py and add the following section of code: == i