Re: [web2py] shared host deployment of my web2py site

2012-04-25 Thread Johann Spies
On 25 April 2012 03:47, netcode wrote: > I got SSH enabled on my account. Currently using putty but when i run > this: "./configure --prefix=$HOME" i get the following error: > > *checking for cl.exe... no* > *configure: error: no acceptable C compiler found in $PATH* > *See `config.log' for more

[web2py] attachment;filename=%s.ics

2012-04-25 Thread Annet
In a .ics view I generate the file name as follows: {{response.headers['Content-Disposition'] = 'attachment;filename=%s.ics' % IS_SLUG()(organization.name)[0]}} I'd like to add the row.id to the file name as well, I've tried several ways but none of them worked, what is the correct syntax to do

[web2py] how to create login form

2012-04-25 Thread Vibhor Purandare
How to create log In form in web2py

[web2py] Re: Free e-book abhout Rest API

2012-04-25 Thread Ross Peoples
Thanks for the link! I've been looking for good API design resources.

Re: [web2py] Re: Free e-book abhout Rest API

2012-04-25 Thread Carlos Costa
So helpful. Thanks. 2012/4/25 Ross Peoples : > Thanks for the link! I've been looking for good API design resources. -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] Re: Google Drive with free 5Gb

2012-04-25 Thread Khalil KHAMLICHI
if this becomes a built-in feature of web2py, since it already runs on gae, everyone would be able to code his own dropbox.

Re: [web2py] need help combine autocomplete and web2py slice SELECT_OR_ADD_OPTION

2012-04-25 Thread Richard Vézina
Up! Richard On Tue, Apr 24, 2012 at 4:24 PM, Richard wrote: > Hello, > > I modify SELECT_OR_ADD_OPTION in order to combine autocomplete widget and > the SELECT_OR_ADD_OPTION widget, but only thing I get from autocomplete in > form is it instance id : > > > > Here what I change in SELECT_OR_ADD_

[web2py] Re: Add conditional sub-menu

2012-04-25 Thread Omi Chiba
Thanks again ! I came back from vacation and tried the code but I got different error... File "C:\web2py\gluon\dal.py", line 1386, in log_execute ret = self.cursor.execute(*a, **b) ProgrammingError: The cursor's connection has been closed. sub_menu = [('Admin', False, URL('admin'), []),

[web2py] Re: how to create login form

2012-04-25 Thread Massimo Di Pierro
form=auth.login() On Wednesday, 25 April 2012 04:53:52 UTC-5, Vibhor Purandare wrote: > > > How to create log In form in web2py >

[web2py] Re: mailing with pgp

2012-04-25 Thread weheh
# this is my controller def test_mail(): """Email tester""" mail.settings.sender = 'x...@y.com' mail.settings.server = 'z.com:587' # SMTP server mail.settings.login = 'asdf:lkjh' mail.settings.encrypt = False mail.settings.ssl = False mail.settings.tls = True m

[web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Richard Vézina
Hello, Sorry to duplicate this question, but I really need help and think that my subject title was not that clear. My problem is that I can't find how to display correctly the Autocomplete widget (only get the address of the instance of the autocomplete class to display in the form) if I combine

[web2py] Re: how to create login form

2012-04-25 Thread Anthony
Also, simply doing form=auth() will produce a login form if the first arg in the URL (i.e., request.args(0)) is "login". The user() function in the default.py controller of the "welcome" app works this way. form=auth() will generate different auth forms depending on the value of request.args(0

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Johann Spies
I also interested in this but unfortunately am too much of a beginner with jquery / javascript to be able to help you now. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

[web2py] Re: mailing with pgp

2012-04-25 Thread szimszon
In linux web2py user's keyring is in ~web2py/.gnupg/{pubring.gpg,secring.gpg} It's the default location. If you'll sign the mail than the private key should belong to 'x...@y.com'. Can you send mail if there is no gpg in action? Is smtp working? If I get some time at night I'll look at the code

Re: [web2py] Re: Google Drive with free 5Gb

2012-04-25 Thread villas
> > if this becomes a built-in feature of web2py, since it already runs on > gae, everyone would be able to code his own dropbox. Yes I see good potential for cheap office document filing. It is great that Google will index the contents of files, including PDFs. Searching for documents i

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Richard Vézina
Hello, I made a lot of progress, by changing my approach, instead of trying to use Autocomplete form SELECT_OR_ADD_OPTION, I bring SELECT_OR_ADD_OPTION into Autocomplete to create a new AutocompleteWidgetSelectOrAddOption widget... What I get so far : class AutocompleteWidgetSelectOrAddOption(ob

[web2py] use PAM groups for group membership decorators

2012-04-25 Thread Matt
It seems that web2py group membership is restricted to groups created by web2py. We have a situation where we are bypassing web2py's user management and using PAM directly. This works great for just logging in, but we have no access to group information because web2py is looking to its own data

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Richard Vézina
No, I was wrong, is because I need to strip withe space coming from the field type... Richard On Wed, Apr 25, 2012 at 11:33 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Hello, > > I made a lot of progress, by changing my approach, instead of trying to > use Autocomplete form SELECT

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Richard Vézina
No, callback issue... How can I trigger call back when I set my new foreing entry in autocomplete widget box?? Richard On Wed, Apr 25, 2012 at 11:43 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > No, I was wrong, is because I need to strip withe space coming from the > field type...

Re: [web2py] Re: Google Drive with free 5Gb

2012-04-25 Thread Willoughby
Remember though that it's covered by the Google Terms of Service which means although you maintain IP ownership, you're granting them a license to use your content: http://www.google.com/intl/en/policies/terms/ On Wednesday, April 25, 2012 11:24:48 AM UTC-4, villas wrote: > > if this becomes a

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Richard Vézina
I have been a little further and I can partly trigger the callback with this : response.js += """$('#test_ph_eregistry_id').keyup();""" But the autocomplete selecting panel stays there for ever... So I try to trigger a "tab" key stroke event that make it disapear in a real case scenario (I mean w

[web2py] Re: mailing with pgp

2012-04-25 Thread weheh
Thanks szimszon. I see. The keyrings were not installed under web2py. But now they are, and unfortunately, I'm still failing out in the same place (although now I have a better idea where). The message is that there is no key for signing "my_from_addr...@xyz.com", which is the mail.settings.sen

[web2py] Re: mailing with pgp

2012-04-25 Thread szimszon
What is the error message? 2012. április 25., szerda 19:28:10 UTC+2 időpontban weheh a következőt írta: > > Thanks szimszon. I see. The keyrings were not installed under web2py. But > now they are, and unfortunately, I'm still failing out in the same place > (although now I have a better idea wh

[web2py] Re: Using _before_insert to implement subsecond precision?

2012-04-25 Thread nick name
On Tuesday, April 24, 2012 9:24:34 AM UTC-4, Massimo Di Pierro wrote: > > I think this belongs to the validator. If the validator has already > removed the subseconds you are in no luck. > If it works for you, I do not see a problem. Anyway, remember that this > API is experimental. They will sta

[web2py] welcome application calls lockerz.com ?

2012-04-25 Thread Sebastian E. Ovide
Hi All, I've just noticed that web2py welcome application is doing calls like this http://pts.lockerz.com/1x1.gif?ver=0.1&app=a2a&uuid=e91edf70-1558-4a46-8ef1-5081e621377d&event=load&url=http%3A%2F%2Flocalhost%3A8000%2Fwelcome%2Fdefault%2Findex&referrer= any ideas ? thanks -- Sebastian E. Ovi

[web2py] Re: welcome application calls lockerz.com ?

2012-04-25 Thread Anthony
That's the AddToAny "Share" button in the upper right -- AddToAny is now Lockerz. Anthony On Wednesday, April 25, 2012 3:45:06 PM UTC-4, sebastian wrote: > > Hi All, > > I've just noticed that web2py welcome application is doing calls like this > > > http://pts.lockerz.com/1x1.gif?ver=0.1&app=a2

Re: [web2py] Re: Using _before_insert to implement subsecond precision?

2012-04-25 Thread Bruno Rocha
You can use validators in scripts with .validate_and_insert or .update_and_insert http://zerp.ly/rochacbruno Em 25/04/2012 15:53, "nick name" escreveu: > On Tuesday, April 24, 2012 9:24:34 AM UTC-4, Massimo Di Pierro wrote: >> >> I think this belongs to the validator. If the validator has alread

[web2py] String EOF error

2012-04-25 Thread Bruce Wade
Hi I randomly get a EOFError this doesn't always happen and I have no idea what is causing it. Traceback (most recent call last): File "/home/developer/projects/yaw/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/developer/projects/yaw/applications/admin

Re: [web2py] Re: Google Drive with free 5Gb

2012-04-25 Thread villas
Yes, it is a bit scary, but on the other hand many businesses already use Gmail and Docs, so they have already handed over a lot of their stuff. I can't imagine Google handing a company's files over to that company's competitors, and in most cases that's probably the biggest concern. The

[web2py] Re: mailing with pgp

2012-04-25 Thread weheh
no key for signing "my_from_addr...@xyz.com" On Thursday, April 26, 2012 2:29:53 AM UTC+8, szimszon wrote: > > What is the error message? > > 2012. április 25., szerda 19:28:10 UTC+2 időpontban weheh a következőt > írta: >> >> Thanks szimszon. I see. The keyrings were not installed under web2py.

Re: [web2py] table which references another table in another db

2012-04-25 Thread Vincenzo Ampolo
On 04/24/2012 03:32 PM, Massimo Di Pierro wrote: > Definitively not possible. The DB does not allow it. You can make the > reference field and integer and give it a IS_IN_DB validators pointing to > the other table. It will work as you want to but bypass the DB restriction. Thanks Massimo. --

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-04-25 Thread Brian M
Cool Richard! I haven't done much with that widget since initially creating it. I thought that there was someone who was creating an improved version a few months ago but can't for the life of me find it anywhere. :( Feel free to send me a patch and I'll put it up in the bitbucket repo and/o

[web2py] Re: welcome application calls lockerz.com ?

2012-04-25 Thread Derek
What Anthony said... Just look for this in your layout.html and remove until this: On Wednesday, April 25, 2012 12:45:06 PM UTC-7, sebastian wrote: > > Hi All, > > I've just noticed that web2py welcome application is doing calls like this > > > http://pts.lockerz.com/1x1.gif?ver=0.1&app=a2a&u

[web2py] bootstrap css problem

2012-04-25 Thread tomt
Hi, I just tried bootstrap.min.css in trunk. I noticed one small problem. The buttons on SQLFORM.grid no longer show up, instead I get links for add, edit, and delete. The html generated for the add is: Add My previous code generated the same html, but it displayed a button, not just the lin

[web2py] Re: mailing with pgp

2012-04-25 Thread szimszon
what is the output of the gpg --list-secret-keys my_from_addr...@xyz.com command if running with web2py user? Is there any environment variable set about gpg in a shell and not in environment the web2py is running? 2012. április 26., csütörtök 1:02:40 UTC+2 időpontban weheh a következőt írta: >

[web2py] Re: bootstrap css problem

2012-04-25 Thread Annet
Hi, I guess this will be fixed. For now you could add btn to . I started using bootstrap when there was no bootstrap in trunk and I had to fix my forms: def addFormClasses(form): form.element('label')['_class']='control-label' form.element(_type='submit')['_class']='btn' form.element

[web2py] storing objects in session

2012-04-25 Thread Annet
A few weeks ago I had a problem caused by storing a rows object in session. Anthony helped me solve the problem and provided me with the following explanation: When you store objects in the session, those objects have to be pickled (i.e., serialized for storage). A DAL Row object is pickled as

Re: [web2py] Free e-book abhout Rest API

2012-04-25 Thread Jon Molesa
Thank you for this. Jon Molesa On Apr 24, 2012, at 4:44 PM, Bruno Rocha wrote: > Download: > > http://blog.apigee.com/detail/announcement_new_ebook_on_web_api_design/ > > -- > > Bruno Rocha > [http://rochacbruno.com.br] >

[web2py] Re: mailing with pgp

2012-04-25 Thread weheh
gpg --list-secret-keys my_from_addr...@xyz.com produces an output that indicates that the address is valid. So I know I'm using the right email address. If I purposely enter an invalid email as a test, I get an error message: gpg: error reading key: secret key not available There is a GPGKEY

Re: [web2py] Free e-book abhout Rest API

2012-04-25 Thread adesantoasman
Thx +1 +adesst -Original Message- From: Jon Molesa Sender: web2py@googlegroups.com Date: Thu, 26 Apr 2012 02:26:31 To: web2py@googlegroups.com Reply-To: web2py@googlegroups.com Subject: Re: [web2py] Free e-book abhout Rest API Thank you for this. Jon Molesa On Apr 24, 2012, at 4:44

[web2py] Re: attachment;filename=%s.ics

2012-04-25 Thread Cédric Mayer
You do not give your context so I don't know whether you have access to row, but if you have: {{response.headers['Content-Disposition'] = "attachment;filename=%s_%s.ics" % ( IS_SLUG()(organization.name)[0], row.id)}} It's straight python I think. Le mercredi 25 avril 2012 10:47:57 UTC+2, Annet