[web2py:33523] Re: cross doman json-rpc

2009-10-23 Thread Don Lee
n't need special features in Web2py. If you want crossdomain feature > in QooxDoo you must set the crossDomain property to true: >    var rpc = new qx.io.remote.Rpc("http://targetdomain.com/appname/ > function/call/jsonrpc"); >    rpc.setCrossDomain(true); > > On 23

[web2py:33507] Re: cross doman json-rpc

2009-10-23 Thread Don Lee
is. If poeple have any idea let me know. > > On Oct 23, 8:24 am, Don Lee wrote: >> Is there anything within web2py's json-rpc implementation that would >> prevent cross domain calls? > > > --~--~-~--~~~---~--~~ You received this m

[web2py:33502] cross doman json-rpc

2009-10-23 Thread Don Lee
Is there anything within web2py's json-rpc implementation that would prevent cross domain calls? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googl

[web2py:33500] Re: testing json-rpc from the shell

2009-10-23 Thread Don Lee
pyjamas. On Thu, Oct 22, 2009 at 11:37 PM, mdipierro wrote: > > should we include jsonrpclib in contrib? > > Massimo > > On Oct 22, 1:51 pm, Don Lee wrote: > > I made some progress. Using jsonrpclib I am able to do the following. > > > >

[web2py:33447] Re: testing json-rpc from the shell

2009-10-22 Thread Don Lee
test from the CLI ! That should help debugging. I I had waited a couple of minutes, I could have saved an e-mail, but hopefully others will find this useful. On Thu, Oct 22, 2009 at 2:30 PM, mdipierro wrote: > > Ignore my previous message. > > I do not know. It is an RPC so t

[web2py:33436] testing json-rpc from the shell

2009-10-22 Thread Don Lee
I have created a test application to play around with json-rpc. = # coding: utf8 def index(): return dict() def call(): return service @service.jsonrpc def echo(msg) return msg = How can

[web2py:29839] Re: Bug in alternate authentication

2009-09-01 Thread Don Lee
ect* method of having a selected group of users authorized to > > > access your system is to use LDAP groups and that's something I intend > > > to add to web2py as currently LDAP support is really basic. > > > > > In my case, I want to authenticate only agains

[web2py:29835] Re: accessing a database I cannot define or control

2009-09-01 Thread Don Lee
Thanks, I thought about that. But as I said I do not have administrative access to the server. I will talk to the database directly. I was just curious is someone had another way around this. it would be nice if I would map a primary key in web2py or have a primary key that was not an integer.

[web2py:29782] Re: Bug in alternate authentication

2009-09-01 Thread Don Lee
I know it seems strange but LDAP authentication works best if you follow the books recommendation. I spent some time trying to understand the code. I used wingIDE to try to understand what was going on (I am new to python). I tried only LDAP, inserting LDAP before the reference to auth, and doin

[web2py:29503] Re: web2py book, 2nd Ed

2009-08-27 Thread Don Lee
I believe in a previous thread you wrote that people who bought the previous edition from lulu could get a free copy of the 2nd edition if they sent you a copy of their receipt. Does that offer still stand? On Thu, Aug 27, 2009 at 7:24 AM, mdipierro wrote: > > Yes this was a mistake. > > On Aug

[web2py:29371] Re: ldap-auth issue

2009-08-25 Thread Don Lee
= auth.settings.login_methods=[ldap_auth(mode='company', server='yp.company.com', base_dn='ou=yp,o=company.com')] == ** I will add a try to catch eventual errors and set it up

[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:29161] Re: SSL database connections

2009-08-23 Thread Don Lee
Yes. PostgreSQL allows for an SSL connection between the client and the server. This can be done with psycopg2, for example: import psycopg2 as database db = database.connect (host="db.host.com", sslmode="require", database="dbname", user="dbuser", password="dbpass") On Sun

[web2py:29099] Re: calling function from the view

2009-08-21 Thread Don Lee
I found what appears to be an easier way. I should have thought of it before. Everything is an object so: in my controller: = def testFunction(a): return a*a def index(): return dict(funct=testFunction) = in my vie

[web2py:29089] Re: Deployment Issues on CentOS

2009-08-21 Thread Don Lee
rking. On Fri, Aug 21, 2009 at 7:41 AM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On Aug 20, 5:45 pm, Graham Dumpleton > wrote: > > On Aug 20, 12:21 pm, Graham Dumpleton > > wrote: > > > > > On Aug 20, 5:14 am, Don Lee wrote:

[web2py:29003] Re: Deployment Issues on CentOS

2009-08-20 Thread Don Lee
quot;/welcome/static" instead of "/apps/welcome/static/". So I am a lot closer. On Thu, Aug 20, 2009 at 5:53 AM, Don Lee wrote: > Can that working configuration be posted to this list? > > > On Wed, Aug 19, 2009 at 10:21 PM, Graham Dumpleton < > graham.dumple

[web2py:28990] Re: Deployment Issues on CentOS

2009-08-20 Thread Don Lee
, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On Aug 20, 5:24 am, Don Lee wrote: > > Removing "Alias" line causes a different error. > > > > === > > Service Temporarily Unavailable > > > >

[web2py:28991] Re: Deployment Issues on CentOS

2009-08-20 Thread Don Lee
Can that working configuration be posted to this list? On Wed, Aug 19, 2009 at 10:21 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On Aug 20, 5:14 am, Don Lee wrote: > > I'll try that, but I got that from the web2py_manual. The manual gives

[web2py:28954] Re: Deployment Issues on CentOS

2009-08-19 Thread Don Lee
web2py configs, I add an "Option Indexes" directive to my "Location" stanza. Now I get a directory listing in the welcome app. Not sure if this is progress. On Wed, Aug 19, 2009 at 3:24 PM, Don Lee wrote: > Removing "Alias" line causes a different error. > &

[web2py:28953] Re: Deployment Issues on CentOS

2009-08-19 Thread Don Lee
Red Hat) configured -- resuming normal operations [Wed Aug 19 15:23:01 2009] [info] Server built: Jul 14 2009 06:02:39 [Wed Aug 19 15:23:10 2009] [error] [client xx.xx.xx.xx] Directory index forbidden by Options directive: /usr/local/web2py/current/applications/welcome/ === On

[web2py:28952] Re: Deployment Issues on CentOS

2009-08-19 Thread Don Lee
Can someone post a working apache config for rhel/centos5 ? On Wed, Aug 19, 2009 at 2:01 PM, Fran wrote: > > On Aug 19, 5:08 pm, Don Lee wrote: > > Alias /apps "/usr/local/web2py/current/applications" > > Try removing the line above > > > WSGIScriptA

[web2py:28950] Re: Deployment Issues on CentOS

2009-08-19 Thread Don Lee
I'll try that, but I got that from the web2py_manual. The manual gives an example of a virtual host configuration, so I've tried to adapt that by taking out the things I feel are related to virtual hosts. On Wed, Aug 19, 2009 at 2:01 PM, Fran wrote: > > On Aug 19, 5:08 pm

[web2py:28941] Re: Deployment Issues on CentOS

2009-08-19 Thread Don Lee
; does not have correct permissions for your web2py installation. > > There are a couple of ways to address this, depending on if you have sudo > or root access (e.g. if it's your own server, or if you just have an > account). > > > On Wed, Aug 19, 2009 at 11:08 AM, Don

[web2py:28935] Deployment Issues on CentOS

2009-08-19 Thread Don Lee
I am trying to deploy my app on a CentOS 5.3 server running apache. I get an error message whenever I try to access the apps. == Forbidden You don't have permission to access /apps/ on this server. == I have python2.6.2 installed

[web2py:28360] Re: unexpected database initilization

2009-08-11 Thread Don Lee
; everything in the folder databases/. > > Massimo > > On Aug 11, 10:41 am, Don Lee wrote: > > Thanks, that got rid of my problem with a false value for the boolean. > > > > > > # coding: utf

[web2py:28356] Re: unexpected database initilization

2009-08-11 Thread Don Lee
Thanks, that got rid of my problem with a false value for the boolean. # coding: utf8 # define a SQLite database database=SQLDB("sqlite://database.db") # create a vendor table database.define_table('vendor', database.Field('