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

2009-08-25 Thread mmstud
Didnt happen with Firefox yesterday. I try today with Safari again. On Aug 24, 8:53 pm, mdipierro mdipie...@cs.depaul.edu wrote: It should not be a problem. On Aug 24, 12:02 pm,mmstudmms...@gmail.com wrote: I've been using Safari. Can try some hours with Firefox. One thing Im doing, is

[web2py:29302] Re: ticket events

2009-08-25 Thread Richard
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) If I want to reuse the admin ticket view in another controller, is this the

[web2py:29303] Re: fyi

2009-08-25 Thread mdipierro
I hope we never get to find out. On Aug 24, 6:45 pm, suiato homm...@gmail.com 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.

[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 nat...@freezable.com

[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 homm...@gmail.com 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

[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 ranjeev...@gmail.com wrote: Is there any examples of

[web2py:29308] Re: ticket events

2009-08-25 Thread mdipierro
On Aug 25, 1:45 am, Richard richar...@gmail.com 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.

[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

[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 mms...@gmail.com wrote: Didnt happen with Firefox yesterday. I try today with Safari again.

[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

[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 jjac...@gmail.com 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)))

[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 mms...@gmail.com wrote: Got it captured. Actually upload process fails quite often with Safari (4.0.3):

[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

[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 dulip.withan...@gmail.com 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',

[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 joe.barnh...@gmail.com 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

[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 darks...@gmail.com wrote: yeap, I am uploading it now! On Aug 24, 11:29 pm, Joe Barnhart joe.barnh...@gmail.com wrote: That's a good idea and a

[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

[web2py:29320] Solved: ldap authentification AD

2009-08-25 Thread max
thanks. now i installed it. On 25 Aug., 11:52, mdipierro mdipie...@cs.depaul.edu wrote: Do you have python ldap API installed? It does not come with web2py. On Aug 25, 4:41 am, max dulip.withan...@gmail.com wrote: I tried to add the following code in the db.py from

[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

[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)

[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

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

2009-08-25 Thread mdipierro
excellent work! On Aug 25, 5:55 am, ProfessionalIT lsever...@gmail.com 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

[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

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

2009-08-25 Thread DenesL
On Aug 24, 11:45 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com 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

[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

[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/

[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

[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 it mean

[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:

[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

[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 carl.ro...@gmail.com 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

[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

[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

[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 mdipie...@cs.depaul.edu 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

[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 mdipie...@cs.depaul.edu wrote: That color scheme is based on the color wheel by Itten. It is the same used

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

2009-08-25 Thread Iceberg
On Aug25, 9:57pm, whs w...@everymail.net 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

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

2009-08-25 Thread Carl
thanks! On 25/08/2009, mdipierro mdipie...@cs.depaul.edu wrote: Yes. That issues was fixed in 1.66.2 On Aug 20, 4:24 am, Carl carl.ro...@gmail.com 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

[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

[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.freezenat...@freezable.com wrote: As Yarko mentioned, you need to start web2py in shell mode

[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 Tymciurakyark...@gmail.com 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

[web2py:29347] Re: radical proposal

2009-08-25 Thread mdipierro
On Aug 25, 12:21 pm, Iceberg iceb...@21cn.com wrote: On Aug26, 12:53am, mdipierro mdipie...@cs.depaul.edu 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

[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 nat...@freezable.com 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

[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 Tymciurakyark...@gmail.com wrote: the old default was 32 I think;   you do not need to migrate if you have explicitly defined lengths. If you used default

[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:29352] Re: radical proposal

2009-08-25 Thread mdipierro
I agree On Aug 25, 2:08 pm, Jonathan Lundell jlund...@pobox.com 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

[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

[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 nat...@freezable.com wrote: IMHO the welcome app, web2py.com and the admin

[web2py:29355] Re: @reboot CRON patch

2009-08-25 Thread mdipierro
In trunk! thanks. On Aug 25, 2:14 pm, Kacper Krupa pageno...@gmail.com 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 mdipie...@cs.depaul.edu wrote: I agree On Aug 25, 2:08 pm, Jonathan Lundell jlund...@pobox.com wrote: On Aug 25, 2009, at 9:53 AM, mdipierro wrote: I have a radical proposal of changing the default length of string,

[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 sam...@gmail.com wrote: I am also

[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. But the

[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, sherdimsher...@gmail.com 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

[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, sherdimsher...@gmail.com wrote: I agree that the problem exists. In my app a manager regularly complains on this error when

[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

[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 ssdguru1...@gmail.com 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

[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 disabled

[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',args=

[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

[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: ==