Re: [web2py] authenticate against Active Directory - need some direction.

2011-02-11 Thread Panupat Chongstitwattana
using direct ldap class I am able to log in using the following settings login = 'n...@domain.com' PWD = 'password' server = 'ldap://localhost' l = ldap.initialize(server) l.set_option(ldap.OPT_REFERRALS, 0) l.protocol_version = 3 l.simple_bind_s(login, PWD): I really can't get it working with

[web2py] Re: drop support for python 2.4?

2011-02-11 Thread KMax
Just make Latest python2.4 compatible web2py_src.zip What something new, upgrade python, hosting or something else. If not, use lastest web2py_src for 2.4 Reasonable? On 5 фев, 02:37, Massimo Di Pierro massimo.dipie...@gmail.com wrote: @web2py-developers we have discussing the possibility of

[web2py] Authorization for Webhooks

2011-02-11 Thread AsmanCom
I´ve got an Application wich makes (url)callbacks to my web2py app and All these webhooks have a Cookie: header with a value identical to the browser that caused the request to be initiated. For for example it calls the web2py Controller with this Cookie: header: Cookie:

[web2py] web2py not using global http_proxy

2011-02-11 Thread whowhywhat
web2py is the first framework i actually enjoy using. :) .. been advocating it to everyone i meet these days. I sincerely thank the entire web2py community for everything. I have been developing a small web2py application for intranet use at the place where i work. During development i used

[web2py] Re: Howto populate table with data

2011-02-11 Thread Seth
You can add a fixtures file, which basically contains default data to be inserted when the table is created. An example is given here: http://thadeusb.com/weblog/2010/4/21/using_fixtures_in_web2py On Feb 10, 3:57 pm, Sascha Peilicke sasc...@gmx.de wrote: Hi guys, I'd like to know how to best

[web2py] IS_IN_DB no dropdown list

2011-02-11 Thread Rage Callao
hi, i'm just starting to learn web2py and i'm worndering what i'm doing wrong here: my db.py contains: import datetime now=datetime.date.today() db=SQLDB('mysql://cookbook:cookbook@127.0.0.1/cookbook') db.define_table('category', Field('name',length=32))

Re: [web2py] IS_IN_DB no dropdown list

2011-02-11 Thread Bruno Rocha
*THIS*: db.recipe.category.requires=[IS_IN_DB(db, db.category.id, db.category.name)] Will give you text box with auto complete widget. *THIS*: db.recipe.category.requires=IS_IN_DB(db, db.category.id, db.category.name) Will give you dropdown widget Just a matter of [ ]

Re: [web2py] IS_IN_DB no dropdown list

2011-02-11 Thread contatogilson...@gmail.com
We have a small problem in the use of IS_IN_DB. Only you can use this, and if want to use a IS_NOT_EMPTY for example, does not display the dropdown list. _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] What is the convention for using web2py/site-packages for GAE?

2011-02-11 Thread Carl
I'm using OAuth/LinkedIn on GAE. To get oauth/LinkedIn to run on dev_appserver/GAE I had to copy directory oauth2 from web2py/site-packages to web2py/gluon/contrib and httplib2 from site-packages to web2py/gluon/contrib/oauth2 Then in oauth10a_account.py change import oauth2 as oauth to import

Re: [web2py] Re: Web2py and Sencha (Extjs)

2011-02-11 Thread Michele Comitini
In Alpha stage, but promising: http://jquerymobile.com/ 2011/2/11 mikech mp.ch...@gmail.com: Sadly only on Apple at the moment

[web2py] Re: web2py not using global http_proxy

2011-02-11 Thread Massimo Di Pierro
Thanks for your comments. WHen you need urllib, and web2py.python makes outbound connections you should not need a proxy server or any proxy configuration as far as I can tell (and I am not sure about your setup). This looks more of a firewall issue. On Feb 11, 5:19 am, whowhywhat

[web2py] Re: IS_IN_DB no dropdown list

2011-02-11 Thread Massimo Di Pierro
you can have requires=IS_IN_DB(,_and=IS_NOT_IN_DB(...)) and/or requires=IS_IN_DB(db(condition),) Mind that the example in the cookbook 3 years old. It works but now you do not all those validators. They are set by default: import datetime now=datetime.date.today()

[web2py] Re: web2py layouts

2011-02-11 Thread stargate
Thanks for the information I will try it out On Feb 10, 6:16 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Now I understand. These are plugins, not apps. You need an existing app and apply them from the design page of the existing app as plugins (form is at the bottom). They do not

[web2py] Integrating SOAP services

2011-02-11 Thread Arun K.Rajeevan
Hi, I got a query to integrate BullHorn (Staffing solution) (http://bullhorn.com) and VerticalResponse (Email-Marketing) (http://www.verticalresponse.com/) together into their existing application. On investigating I found out that, both uses soap services. How do you recommend me to consume

[web2py] Re: web2py layouts

2011-02-11 Thread stargate
It worked i created then applied the theme as a plugin. In the documentation where is a tutorial in creating your own theme. Thanks for all the help On Feb 10, 6:16 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Now I understand. These are plugins, not apps. You need an existing app

Re: [web2py] Re: IS_IN_DB no dropdown list

2011-02-11 Thread Bruno Rocha
2011/2/11 Massimo Di Pierro massimo.dipie...@gmail.com you can have requires=IS_IN_DB(,_and=IS_NOT_IN_DB(...)) The above is a new syntax for me, is it on the book or somewhere?

Re: [web2py] Re: IS_IN_DB no dropdown list

2011-02-11 Thread Anthony
On Friday, February 11, 2011 9:50:32 AM UTC-5, rochacbruno wrote: 2011/2/11 Massimo Di Pierro massimo@gmail.com you can have requires=IS_IN_DB(,_and=IS_NOT_IN_DB(...)) The above is a new syntax for me, is it on the book or somewhere? Yes, in the IS_IN_DB section here:

[web2py] Re: Integrating SOAP services

2011-02-11 Thread Arun K.Rajeevan
I tried following in ipython at the second statement ipython just hanged. So I'm a bit tensed.. Am I doing something wrong. from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault client = SoapClient(wsdl=https://api.bullhornstaffing.com/webservices-1.1/?wsdl;)

Re: [web2py] Re: IS_IN_DB no dropdown list

2011-02-11 Thread Bruno Rocha
2011/2/11 Anthony abasta...@gmail.com On Friday, February 11, 2011 9:50:32 AM UTC-5, rochacbruno wrote: 2011/2/11 Massimo Di Pierro massimo@gmail.com you can have requires=IS_IN_DB(,_and=IS_NOT_IN_DB(...)) The above is a new syntax for me, is it on the book or somewhere?

[web2py] function in query

2011-02-11 Thread Manuele Pesenti
Hi, how can I select records of a table that got 2 date fields (one datetime and a simple date) wich difference is a fixed value? I thought this solution: import datetime today=datetime.datetime.today() yesterday = today.date() - datetime.timedelta(days=1) db.define_table('mytab', ...

[web2py] Re: Authorization for Webhooks

2011-02-11 Thread AsmanCom
BTW why does the callbacks with the cookie header not work with web2py just like that? Is this some kind of Security Feature of web2py? Thanks in advance. Dieter Asman On 11 Feb., 13:02, AsmanCom d.as...@web.de wrote: I´ve got an Application wich makes (url)callbacks to my web2py app and All

[web2py] Re: JSON in templates

2011-02-11 Thread smoggy
A json template system : https://github.com/ruidlopes/minimal.js Definite win 4 web2py.

[web2py] recommended ERP system?

2011-02-11 Thread Carlos
Hi, A potential client requires a complete ERP system (with POS, Inventory, CRM, etc., preferably multi-lingual with Spanish as a must, and to be installed in Mexico), which I would love to implement with web2py, but unfortunately his need is immediate (and requires something already proven),

[web2py] New web2py logo? [just for fun]

2011-02-11 Thread Anthony
My 4-year-old daughter has been practicing her writing recently. Yesterday, she handed this to me (she must have found the book on my desk and copied the title). Apparently web2py makes her think of hearts and flowers, as it does for most people. :) Anthony attachment: new_web2py_logo.png

[web2py] problem nesting menu generated from database

2011-02-11 Thread w2padawan
Hi, I'm loosing a lot of time trying to generate a categories menu from database, but my lack of experience in python seems to be yet too much. The respective error ticket says: AttributeError: 'tuple' object has no attribute 'append' How can I list.append((newitem,False,link)) inside a

Re: [web2py] New web2py logo? [just for fun]

2011-02-11 Thread Marin Pranjic
sweet :) On Fri, Feb 11, 2011 at 6:36 PM, Anthony abasta...@gmail.com wrote: My 4-year-old daughter has been practicing her writing recently. Yesterday, she handed this to me (she must have found the book on my desk and copied the title). Apparently web2py makes her think of hearts and

[web2py] Re: Authorization for Webhooks

2011-02-11 Thread pbreit
Can you just read the cookie and match it to a session? Do these callbacks occur quickly enough that the session has not expired? I don't know exactly how sessions work but I could imagine there's be problems using sessions with callbacks since the callback is not technically logged in (it has

Re: [web2py] Re: web2py not using global http_proxy

2011-02-11 Thread Luis Díaz
Greetings, web2py I mention that I use in my work. and we have a proxy that we restrict the output by user name and password I have solved the problem properly configuring the proxy on the computer where I have installed debian web2py nano /etc/profile adding the following lines: export

Re: [web2py] function in query

2011-02-11 Thread w2padawan
2011/2/11 Manuele Pesenti manuele.pese...@gmail.com: (...) TypeError: float() argument must be a string or a number Thank you very much for any help. Manuele where/why is the/a float argument?

[web2py] Re: problem nesting menu generated from database

2011-02-11 Thread Massimo Di Pierro
replace (...) with [...] in list=[(name,False,link,[newitem,False,link])] to make the respective ... catree[-1].append((supercat.nombre,False,'link')) list=[[name,False,link,[newitem,False,link]]] to make the respective ... catree[-1].append([supercat.nombre,False,'link']) On

[web2py] Re: New web2py logo? [just for fun]

2011-02-11 Thread Massimo Di Pierro
Printing and hanging on wall! On Feb 11, 11:36 am, Anthony abasta...@gmail.com wrote: My 4-year-old daughter has been practicing her writing recently. Yesterday, she handed this to me (she must have found the book on my desk and copied the title). Apparently web2py makes her think of hearts

Re: [web2py] Re: web2py not using global http_proxy

2011-02-11 Thread Luis Díaz
I forgot. if you need to specify username and password then the structure would be something. export http_proxy = http://username:password@proxy:port/ export https_proxy = http://username:password@proxy:port / export ftp_proxy = http://username:password@proxy:port / 2011/2/11 Luis Díaz

[web2py] Re: function in query

2011-02-11 Thread Massimo Di Pierro
db(db.mytab.date1-db.mytab.date1 == datetime.timedelta(days=2).select() must be db(db.mytab.date1 == db.mytab.date1 + datetime.timedelta(days=2).select() a query has the form field = expression. You cannot have the expression on the left-hand side. I cannot exclude something else is also

Re: [web2py] Re: Web2py and Sencha (Extjs)

2011-02-11 Thread mikech
Extjs and Sencha just seem more complete UI element wise. Their table tools seem very powerful. It is pricey, but for business applications this shouldn't be a problem.

Re: [web2py] Re: Integrating SOAP services

2011-02-11 Thread Mariano Reingart
This bullhornstaffing webservice is a very complex one, it import many schemas so the library has to fetch many URL, and this can take quite a while. You can see what is happening using trace=True (and enabling wsdl caching to prevent fetching them each time): client =

Re: [web2py] URL anchor breaks routes

2011-02-11 Thread Jonathan Lundell
On Feb 10, 2011, at 5:16 PM, Plumo wrote: so let's say I have mapped /init/default/about to /about Then: URL(r=request, c='default', f='about', anchor='company') will produce: /init/default/about#company instead of: /about#company OK, I have some more information on this. With the regex

Re: [web2py] Re: problem nesting menu generated from database

2011-02-11 Thread w2padawan
I changed it as you say but now gives me: ValueError: need more than 1 value to unpack CONTROLLER == def catree(): # query supercategorias =

[web2py] Re: Web2py and Sencha (Extjs)

2011-02-11 Thread Luther Goh Lu Feng
On Feb 12, 1:53 am, mikech mp.ch...@gmail.com wrote: Extjs and Sencha just seem more complete UI element wise.   Their table tools seem very powerful.  It is pricey, but for business applications this shouldn't be a problem. Another mobile framework is http://joapp.com/

[web2py] Re: New web2py logo? [just for fun]

2011-02-11 Thread cjrh
On Feb 11, 7:36 pm, Anthony abasta...@gmail.com wrote: My 4-year-old daughter has been practicing her writing recently. lol!

[web2py] Re: pyamf 0.6 doesn't work with web2py

2011-02-11 Thread elffikk
What is the status, I would like to test it On Jan 31, 4:19 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: g... I can port it to the new one. Can you help with testing? On Jan 31, 3:04 am, elffikk elff...@gmail.com wrote: hi Massimo, I think this is due to a list of

[web2py] Re: recommended ERP system?

2011-02-11 Thread b00m_chef
Based on your criteria listed in your original post, the answer is easy - http://www.xtuple.com/ You can interface with the database that xTuple uses (postgresql) from any language. So you can extend xTuple using any set of tools you want. Don't bite off more than you can chew though...ERPs are

Re: [web2py] Re: Integrating SOAP services

2011-02-11 Thread Arun K.Rajeevan
Hi, your solution worked. Before I was clueless about what's happening and terminated the process in between. It takes minutes upon minutes to finish. I've a doubt, it's not that pressing, but curious. I've no access to server side implementation, all I know is location of this wsdl file (I've

Re: [web2py] Re: Integrating SOAP services

2011-02-11 Thread Arun K.Rajeevan
Oh, I forgot to Thank you, Thank you very much for the tip. It saved my day. :)

[web2py] new support platform for web2py - make money

2011-02-11 Thread Francisco Costa
Hello! During the past months I'm using a lot web2py. I've been asking a few questions here in this group and I've received help from people all around the world. Sometimes I really felt like I should give back something to those kind souls.. So that's why in the past 2 days I've created

[web2py] Re: new support platform for web2py - make money

2011-02-11 Thread Anthony
Cool site. Have you looked at http://beta.qa-stack.com/ -- it's also a web2py-based QA app (open source code)? On Friday, February 11, 2011 2:45:52 PM UTC-5, Francisco Costa wrote: Hello! During the past months I'm using a lot web2py. I've been asking a few questions here in this group and

[web2py] Re: new support platform for web2py - make money

2011-02-11 Thread pbreit
Where can qa-stack be downloaded?

[web2py] What user is logged in (or, restricting access based on user)

2011-02-11 Thread Ed Greenberg
I am adding authentication and limitations to an app. Consider two tables: db_define_table('detail', , Field('detail_item', type='string',label=T('Item')) , FIeld('owner_id', db.auth_user, readable=False, writable=False) ) I have a controller that includes a method to list all records

[web2py] Re: Say hello to pyStack.com

2011-02-11 Thread pbreit
I'm interested in having a look at the code. Thanks.

[web2py] plugin_wiki

2011-02-11 Thread stargate
I am trying to apply the plugin_wiki to a test application i created in the wizard but when i go to preview the site it doesn't look like the limey green look why is that.

[web2py] Re: problem nesting menu generated from database

2011-02-11 Thread Massimo Di Pierro
please post the complete traceback. On Feb 11, 12:08 pm, w2padawan web2py.n...@gmail.com wrote: I changed it as you say but now gives me:     ValueError: need more than 1 value to unpack CONTROLLER == def catree():     # query    

Re: [web2py] plugin_wiki

2011-02-11 Thread Albert Abril
I'm not sure what you would mean whit 'the limey green', but if you want to access the plugin_wiki once installed, you should go to http://URL/YourApp/plugin_wiki . On Fri, Feb 11, 2011 at 10:27 PM, stargate kyoukh...@gmail.com wrote: I am trying to apply the plugin_wiki to a test application i

[web2py] Re: auth.signature

2011-02-11 Thread villas
Yes, it does seem strange to have 'modified_on','updated_by'. They should be the same. In the plugin_wiki it is modified_on, modified_by -- at least that's consistent. On Feb 11, 12:29 am, Vinicius Assef vinicius...@gmail.com wrote: If you have 'created_on' and 'created_by', what about

Re: [web2py] Re: new support platform for web2py - make money

2011-02-11 Thread Marin Pranjic
Cannot. Still in beta. On 11 Feb 2011 21:53, pbreit pbreitenb...@gmail.com wrote: Where can qa-stack be downloaded?

[web2py] Re: What user is logged in (or, restricting access based on user)

2011-02-11 Thread villas
Something quick for you to try... 1. Make sure your owner_id field has a user_id saved in there. Take a look through the admin. 2. You may wish to add this to the field definition so it will save your logged in user: default=auth.user_id Field('owner_id', db.auth_user,default=auth.user_id,

[web2py] Re: What user is logged in (or, restricting access based on user)

2011-02-11 Thread pbreit
I'm having trouble as well figuring out the best way to do this. It is core to ever app I contemplate building but doesn't seem to be spelled out in the docs. Pretty much every web site I know of personalizes web pages based on who is logged in. I noticed that for each user, a db.auth_group is

[web2py] Re: What user is logged in (or, restricting access based on user)

2011-02-11 Thread villas
The individual auth_group can be used for giving permissions to that individual user. The main idea is to save yourself some work. Instead of giving every individual person their own permissions, divide your users into groups. Once you have all your users in groups, it becomes more manageable

[web2py] Re: Howto populate table with data

2011-02-11 Thread Christopher Steel
The Instant-press application is a great application to take a look at for a number of reasons. In addition you will find an example of populating a table with default values. http://code.google.com/p/instant-press/ Chris On Feb 10, 4:57 pm, Sascha Peilicke sasc...@gmx.de wrote: Hi guys,

[web2py] testing ldap communication?

2011-02-11 Thread Panupat
I'm really stuck here, would greatly appreciate any help. Is there a way to check or test if the DAL is communicating with the ldap ad host? It seems like no matter what settings I used to the server and base_dn, even ones that are obviously wrong, I am only getting the same invalid login error.

[web2py] Re: plugin_wiki

2011-02-11 Thread John-Kim Murphy
The green theme is from a previous version of web2py (pre 1.89?) If you really want it, Chris Steel uploaded a plugin (http:// groups.google.com/group/web2py/msg/954dfcfd1adeb440) that will restore it. The plugin_wiki just adds functionality to your app without visually altering it. It adds a new

[web2py] Re: testing ldap communication?

2011-02-11 Thread Massimo Di Pierro
No difference On Feb 11, 7:30 pm, Panupat panup...@gmail.com wrote: I'm really stuck here, would greatly appreciate any help. Is there a way to check or test if the DAL is communicating with the ldap ad host? It seems like no matter what settings I used to the server and base_dn, even ones

[web2py] Re: What user is logged in (or, restricting access based on user)

2011-02-11 Thread pbreit
I get the concept of groups which is why I was confused that web2py auth creates a auth_group.role for each individual user (user_1, user_2 and so on). In all of my apps I have just one class of users. Sometimes, only the created_by can view an item. And usually, only the create_by can edit an

[web2py] Re: WSGI + shared host

2011-02-11 Thread Christopher Steel
Are you running behind apache? On Feb 10, 4:43 pm, Nico nikola.cvrtn...@gmail.com wrote: Hey peeps ! I have simple question Since web2py doesnt need any installation and i want to run it on my shared host... how can i set it up... I contacted my host, they moved my acc on another

[web2py] [+-off topic] Rails vulnerability issue (are we protected?)

2011-02-11 Thread rochacbruno
I just read about Rails vulnerability, just thinking if we are protected against the same kind of thing? http://lists.webappsec.org/pipermail/websecurity_lists.webappsec.org/2011-February/007533.html

[web2py] Help me with the coding for making a table

2011-02-11 Thread Rupesh Pradhan
I want using the data below, generate a table: header=['roll', 'name', 'absent'] data=[['1', ''], ['2', ''], ['3', ''], ['4', '']] table width=200 border=1 tr th scope=colRoll/th th scope=colName/th th scope=colpAbsent/p p label( input type=checkbox name=absentall id=absentall

[web2py] Re: web2py not using global http_proxy

2011-02-11 Thread whowhywhat
Thanks for the quick replies. As Luis mentions i have used export http_proxy (but in /etc/ environment and in the startup script of cherokee). I will try defining in /etc/profile i did some further testing by launching web2py with its own web server. by running python web2py.py -c server.crt -k

Re: [web2py] Re: Apache, Wsgi problem

2011-02-11 Thread Jonathan Lundell
On Feb 10, 2011, at 6:19 AM, Massimo Di Pierro wrote: I offer $300 to whoever can identify within 3 weeks and without ambiguity the cause of this problem. The bounty applies even if the problem turns out to be not in web2py but in one of the Python modules, in Apache or in the mod_wsgi

Re: [web2py] Re: Apache, Wsgi problem

2011-02-11 Thread Anthony
On Saturday, February 12, 2011 1:03:48 AM UTC-5, Jonathan Lundell wrote: On Feb 10, 2011, at 6:19 AM, Massimo Di Pierro wrote: I offer $300 to whoever can identify within 3 weeks and without ambiguity the cause of this problem. The bounty applies even if the problem turns out to be not

[web2py] Re: New web2py logo? [just for fun]

2011-02-11 Thread Changju
How On 2월12일, 오전2시36분, Anthony abasta...@gmail.com wrote: My 4-year-old daughter has been practicing her writing recently. Yesterday, she handed this to me (she must have found the book on my desk and copied the title). Apparently web2py makes her think of hearts and flowers, as it does for

[web2py] Re: New web2py logo? [just for fun]

2011-02-11 Thread Changju
How sweet:) On 2월12일, 오전2시36분, Anthony abasta...@gmail.com wrote: My 4-year-old daughter has been practicing her writing recently. Yesterday, she handed this to me (she must have found the book on my desk and copied the title). Apparently web2py makes her think of hearts and flowers, as it