Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nico Zanferrari
Nicholas, I'm sorry but this is not what Massimo asked for. You need to run these commands from inside web2py, after you've run it with: python web2py.py -S welcome and not from a pure python shell. Also, how do you normally run web2py? Launching web2py.exe ? Cheers, Nico 2013/2/6 Nicholas

[web2py] Re: compute field doesn't work on update

2013-02-06 Thread palomar
up Il giorno sabato 19 gennaio 2013 18:43:51 UTC+1, palomar ha scritto: I had the 2.1 and I've just updated to 2.3 (I hoped to solve the problem...) request.vars.id is the vars from the ajax call; it works, I'm sure, articolo.p_p is correctly updated Il giorno sabato 19 gennaio 2013

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Mistakenly ran in the shell but updated my post shortly after. No not via the exe but via web2py.py. I've tried both locally debugging via Wing and on my server running but receive the same error. I'm sure I'm doing something simple wrong. -- --- You received this message because you are

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Tim Richardson
On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: Yes it exists, independently what I want is to stop and relaunch the process when the webserver reboots. Why? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Re: How to dont show seconds in a time field

2013-02-06 Thread DenesL
Hi Gerd, field.represent controls how the field is presented on output, field.widget controls presentation on input. But having said that, your change to web2py.js should have worked, maybe it is cached, did you refresh/restart?. Regards, Denes On Wednesday, February 6, 2013 2:34:05 AM

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Tim Richardson
On Wednesday, 6 February 2013 23:13:31 UTC+11, Tim Richardson wrote: On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: Yes it exists, independently what I want is to stop and relaunch the process when the webserver reboots. Why? I'm a bit confused. A server is a

[web2py] Re: How to dont show seconds in a time field

2013-02-06 Thread Annet
Hi Gerd, So if i understand this right there is no possibility to change the representation in an update form? Yes, besides, I am not sure whether IS_TIME() has a format property like IS_DATE() and IS_DATETIME() have. In 2009 it hadn't, and Chris helped me solve the problem as follows: In

[web2py] Re: How to dont show seconds in a time field

2013-02-06 Thread Gerd
Hi Annet and DenesL! @DenesL: Yes, did restart it, nothings changed @Annet: Thanks you very much, you got it regards Gerd Am Mittwoch, 6. Februar 2013 13:31:24 UTC+1 schrieb Annet: Hi Gerd, So if i understand this right there is no possibility to change the representation in an update

Re: [web2py] Re: Real Python for Web Development, featuring web2py

2013-02-06 Thread Teddy Nyambe
...let him do something more interesting for an example - like a ticket processing system, with reminders so that we can even learn about scheduling aspect of web2py On Tue, Feb 5, 2013 at 9:52 PM, Niphlod niph...@gmail.com wrote: +1 for web2py, -1 for blog as an example app. On

[web2py] Re: Image store with open does not work on GAE

2013-02-06 Thread Massimo Di Pierro
We can solve this but the internal logic is going to be convoluted. The problem is that you cannot read the content after then record has been created and not before. Can you help me test something? db.define_table('blobs', Field('image', 'upload'), ) db.define_table('table1', Field('image',

[web2py] Re: Real Python for Web Development, featuring web2py

2013-02-06 Thread Monte Milanuk
I'm in... but I do agree that 'Yet Another Blog' example is a bit tired. Yes, its considered almost standard to do a blog or wiki as an example, and perhaps serves a purpose as a point of comparison between competing products/projects. Personally, since the existing web2py docs do cover a

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Leonel Câmara
Yes the scheduler certainly doesn't need to reboot every time the webserver restarts. However it's pratical that it does as many times, webserver reboots correspond with code updates that I want the scheduler to see too. -- --- You received this message because you are subscribed to the

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Niphlod
unless changes are in modules, scheduler loads a pristine environment at every task (meaning that if you change models or task functions, as soon as you save the file the scheduler will pick up the changes) On Wednesday, February 6, 2013 5:35:10 PM UTC+1, Leonel Câmara wrote: Yes the

Re: [web2py] Re: Real Python for Web Development, featuring web2py

2013-02-06 Thread Jim S
+1 On Wednesday, February 6, 2013 8:27:45 AM UTC-6, software.ted wrote: ...let him do something more interesting for an example - like a ticket processing system, with reminders so that we can even learn about scheduling aspect of web2py On Tue, Feb 5, 2013 at 9:52 PM, Niphlod

Re: [web2py] Re: Import problem in Web2py 2.3.2 vs 1.99.4

2013-02-06 Thread Massimo Di Pierro
I agree. I am have attempted a fix. Can you try it? On Wednesday, 6 February 2013 01:23:06 UTC-6, Álvaro José Iradier wrote: I agree they should get priority over system wide modules, but not over imports for files on the same directory. So in Geraldo reports, it does not make sense that in

[web2py] Why must 'id' primary-key Field in DAL be an integer?

2013-02-06 Thread Alec Taylor
https://github.com/web2py/web2py/blob/master/gluon/dal.py#L1776 The reason I ask is that I am following the OAuth2 spec which uses hashes for IDs. I mean, I can have two IDs; one which I never [ever!] use; but that wouldn't be very efficient… in code conciseness or database design. So why must

[web2py] Why must 'id' primary-key Field in DAL be an integer?

2013-02-06 Thread Derek
It doesn't have to be. Use the primary_key attribute. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options,

Re: [web2py] Re: Import problem in Web2py 2.3.2 vs 1.99.4

2013-02-06 Thread Álvaro J . Iradier
Works, but the identation at the else: on line 84 in custom_import.py is wrong. FIxed identation, and it apparently works perfect. Thanks very much! On Wed, Feb 6, 2013 at 6:35 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree. I am have attempted a fix. Can you try it? On

[web2py] Re: serving php and python in shared hosting

2013-02-06 Thread José Eloy
Maybe the solution is add a new RewriteRule, but I don't be an expert in apache configuration. Any idea? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Upon further research it appears that I'm unable to import ldap in only one of my applications. It works in others, but just not this one. I copied the db.py from one of the working applications over but still no luck. I'll keep digging but any suggestions as to where to look would greatly be

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Got it! Apparently the file I had in the modules folder was causing the problem. I don't understand why, but time to go read the docs. Thanks for everybody posting. On Wednesday, February 6, 2013 1:13:45 PM UTC-7, Nicholas Duffy wrote: Upon further research it appears that I'm unable to

Re: [web2py] Re: error in GAE

2013-02-06 Thread howesc
Samuel, you showed us the console log from when you deployed your code to google app engine. can you use the google app engine admin tool (website) to view the logs there and post us the stack trace? thanks, cfh On Tuesday, February 5, 2013 3:11:36 PM UTC-8, JavierQQ wrote: On Tue, Feb

[web2py] Re: Forcing SSL mode (on GAE)

2013-02-06 Thread howesc
if you want all requests in SSL it sounds like the best thing to me. note that on GAE if you want to use SSL and a custom domain you have to purchase additional add-ons to the GAE service. https on the appspot.com domain is free. cfh On Tuesday, February 5, 2013 9:49:34 AM UTC-8, Philip

[web2py] Re: GAE deployment questions...from a total beginner!

2013-02-06 Thread howesc
Riccardo, some answers: - i backup the source code of my app by using HG or GIT. - google offers data backup via google cloud storage. you can see options for this in the google app engine web admin console - yes it is possible to download GAE data. you'll have to download database data

[web2py] Re: Example JSON Code

2013-02-06 Thread howesc
the URL that you *think* you are requesting via AJAX may not be the URL you are actually hitting. can you check which URL you are trying to make a request to via AJAX? (use the debugging tools included in firefox or chrome to see all network traffic) cfh On Monday, February 4, 2013

[web2py] How to handle one-to-many relationship with sqlform and checkboxes?

2013-02-06 Thread bracquet
Hello, I was reading about the Links to referencing recordshttp://web2py.com/books/default/chapter/29/07 part in the online guide, but was confused how I would deal with custom logic of inserting it to the database. The guide seems to already have the values in the database to pull from. If

[web2py] Re: Scheduler Quick question

2013-02-06 Thread Leonel Câmara
I guess I'm having a hard time configuring the scheduler as a daemon on webfaction (not much of a sys admin) and it seemed more pratical to do it this way, since it would have the added advantage of reloading the modules and I have quite a bit of my code in modules. Quarta-feira, 6 de

[web2py] Editing problem with current admin app

2013-02-06 Thread Nico Zanferrari
Hi, I really like the web editor inside the current admin app, and I'm using it more and more for various reasons. I think that the recent changes are pointing towards a Github look and feel, where you have a notification area on the top and an editing frame in the middle. This works quite

[web2py] multiuser editing in admin?

2013-02-06 Thread Andrew Replogle
Does the admin editor have the ability to have multiple users and lock files when they're being edited by others? If I want to have a small team of developers using the admin tool that's deployed? They don't need to have any sort of real-time visibility into others work, just support for

[web2py] Re: How to handle one-to-many relationship with sqlform and checkboxes?

2013-02-06 Thread Derek
It's a list:reference field then, look at the reference in chapter 6: the database abstraction layer On Wednesday, February 6, 2013 2:09:50 PM UTC-7, brac...@gmail.com wrote: Hello, I was reading about the Links to referencing recordshttp://web2py.com/books/default/chapter/29/07 part in

[web2py] Re: How to dont show seconds in a time field

2013-02-06 Thread DenesL
On Wednesday, February 6, 2013 8:24:01 AM UTC-5, Gerd wrote: Hi Annet and DenesL! @DenesL: Yes, did restart it, nothings changed True. Note that the input will show HH:MM:SS until you click on it, then it becomes HH:MM. @Annet: Thanks you very much, you got it regards Gerd Am

Re: [web2py] Re: Import problem in Web2py 2.3.2 vs 1.99.4

2013-02-06 Thread Massimo Di Pierro
Hope it does not break anything else. On Wednesday, 6 February 2013 13:18:51 UTC-6, Álvaro José Iradier wrote: Works, but the identation at the else: on line 84 in custom_import.py is wrong. FIxed identation, and it apparently works perfect. Thanks very much! On Wed, Feb 6, 2013 at 6:35

[web2py] Re: Editing problem with current admin app

2013-02-06 Thread Massimo Di Pierro
Can you help us fix the css? On Wednesday, 6 February 2013 15:14:40 UTC-6, Nico Zanferrari wrote: Hi, I really like the web editor inside the current admin app, and I'm using it more and more for various reasons. I think that the recent changes are pointing towards a Github look and feel,

[web2py] Re: multiuser editing in admin?

2013-02-06 Thread Massimo Di Pierro
It does not lock but it detects conflcts A opens and edits file X B opens and edits file X A saves file X B saves file X web2py detects a change in the file and opens a merge window. This feature is not really documented and may have been broken with the ajax save. Nobody really used it. Please

Re: [web2py] Re: error in GAE

2013-02-06 Thread samuel bonilla
2013/2/5 Massimo Di Pierro massimo.dipie...@gmail.com Look in the GAE log for the actual error. thanks massimo... On Tuesday, 5 February 2013 15:10:49 UTC-6, samuel bonilla wrote: i'm runing my app on GAE and i get this error :

Re: [web2py] default function in a non default controller with args - routing

2013-02-06 Thread Francisco Costa
Right now using the Parameter-based system for routing if we want to define different default_function for each controller we must set a list of all controllers, and then a dictionary with a list of all functions in each controller. blog=dict( controllers=['posts', 'comments'],

[web2py] Re: Background M2M communication

2013-02-06 Thread Bernard
Is it possible to use cache.ram for a TCP socket? In my setup, establishing a TCP connection to a remote machine is time consuming and I need to find a workaround to have snappier response to the Web UI. Any help appreciated. Thanks, Bernard On Monday, February 4, 2013 11:46:22 AM UTC-8,

[web2py] Re: Background M2M communication

2013-02-06 Thread Massimo Di Pierro
yes: def connect(address): socket.settimeout(10) s = socket.socket() return s.connect(address) mysocket = cache.ram('socket',lambda address=(ip,port): connect(address),3600) mysocket.send('hello world') But mind that s.connect may block. On Wednesday, 6 February 2013 19:32:49

[web2py] Re: Background M2M communication

2013-02-06 Thread Bernard
Thanks, it works. Do I have to worry about s.close()? On Wednesday, February 6, 2013 6:12:06 PM UTC-8, Massimo Di Pierro wrote: yes: def connect(address): socket.settimeout(10) s = socket.socket() return s.connect(address) mysocket = cache.ram('socket',lambda

Re: [web2py] Re: Forcing SSL mode (on GAE)

2013-02-06 Thread Philip Kilner
Hi, On 06/02/13 20:45, howesc wrote: if you want all requests in SSL it sounds like the best thing to me. Yes, it's working very well from my PoV - but my needs are very simple in that I want to force SSL for everything. I'm used to doing this in Apache, so haven't previously had to think

[web2py] Re: How to dont show seconds in a time field

2013-02-06 Thread Gerd
Am Donnerstag, 7. Februar 2013 00:20:02 UTC+1 schrieb DenesL: On Wednesday, February 6, 2013 8:24:01 AM UTC-5, Gerd wrote: Hi Annet and DenesL! @DenesL: Yes, did restart it, nothings changed True. Note that the input will show HH:MM:SS until you click on it, then it becomes HH:MM.