Re: [web2py] Re: ldap import problem

2015-08-26 Thread Johann Spies
Thanks Massimo. After installing python-ldap the problem was solved. I did not realise that the package in gluon/contrib was dependent on external stuff. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Resources: -

[web2py] Re: can't start git-based web2py on windows, pydal errors

2015-08-26 Thread Tim Richardson
Sorry, false alarm. Bad changes to routes.py On Thursday, 27 August 2015 10:35:34 UTC+10, Tim Richardson wrote: > > On Windows Server 2008R2 I have web2py git cloned. > at the moment > python web2py.py > > does not start. > > Traceback (most recent call last): > File "web2py.py", line 18,

[web2py] can't start git-based web2py on windows, pydal errors

2015-08-26 Thread Tim Richardson
On Windows Server 2008R2 I have web2py git cloned. at the moment python web2py.py does not start. Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "c:\Users\tim\web2py_dev\gluon\widget.py", line 26, in import gluon.main as main File "c:\

[web2py] Re: Web2py Restfull API Token authentication

2015-08-26 Thread Matheus Cardoso
Stefan, If I'm not wrong you can do the following with Angular: .factory('API', ['$resource', function($resource){ return $resource("api/product/id/:id", {id: '@id'}); }]); Am I right? On Tuesday, August 25, 2015 at 10:37:15 AM UTC-3, Stefan van den Eertwegh wrote: > > Hi everyone, > > If

[web2py] Re: add icons to table

2015-08-26 Thread Dave S
On Wednesday, August 26, 2015 at 1:12:26 PM UTC-7, Dave S wrote: > > > > On Wednesday, August 26, 2015 at 6:03:04 AM UTC-7, Iancic Bogdan wrote: >> >> All the images will be saved in static >> >> On Wednesday, August 26, 2015 at 2:54:25 PM UTC+2, Iancic Bogdan wrote: >>> >>> I want to add a colum

[web2py] Re: add icons to table

2015-08-26 Thread Dave S
On Wednesday, August 26, 2015 at 6:03:04 AM UTC-7, Iancic Bogdan wrote: > > All the images will be saved in static > > On Wednesday, August 26, 2015 at 2:54:25 PM UTC+2, Iancic Bogdan wrote: >> >> I want to add a column to my table where will be displayed icons. Also, >> when the user clicks on

[web2py] Re: Embed all process in a LOAD

2015-08-26 Thread Jose
El miércoles, 26 de agosto de 2015, 13:33:06 (UTC-3), Leonel Câmara escribió: > > Just make sure all the links inside the LOAD have a cid with the same id > as the container where you're loading the component. A simple way is to > simply put cid=request.cid in them. > > Example: > > {{=A('clic

[web2py] Re: web2py is giving an inetrnal error

2015-08-26 Thread Leonel Câmara
Can you show us the error? We can't really follow a link to your loopback address. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this mess

[web2py] Re: Embed all process in a LOAD

2015-08-26 Thread Niphlod
technically all LOADed components exhibit this behaviour automatically. On Wednesday, August 26, 2015 at 6:33:06 PM UTC+2, Leonel Câmara wrote: > > Just make sure all the links inside the LOAD have a cid with the same id > as the container where you're loading the component. A simple way is to >

[web2py] Re: Embed all process in a LOAD

2015-08-26 Thread Leonel Câmara
Just make sure all the links inside the LOAD have a cid with the same id as the container where you're loading the component. A simple way is to simply put cid=request.cid in them. Example: {{=A('click me', _href=URL_TO_LOAD_INPLACE, cid=request.cid)}} -- Resources: - http://web2py.com - http

[web2py] Embed all process in a LOAD

2015-08-26 Thread Jose
Hi, I have in my view a LOAD showing some data. It also has some links that call : a form and list. What I want is for all calls and processes to run embedded inside my container, similar to what would make an iframe. I tried ajax_trap = True, but is only for forms. Best regards, Jose -- Res

[web2py] Re: Web2py Restfull API Token authentication

2015-08-26 Thread Stefan van den Eertwegh
Oke. If it works it's oke. But lets say massimo, i want to communicate with the restful service from web2py from angularJS, i see 2 possible bottlenecks. I cant use the $resource function because the web2py api is api/product/id/3 and not api/product/3 and there is no way to authenticate with w

[web2py] Re: import_from_csv_file and id_map={}

2015-08-26 Thread Massimo Di Pierro
yes On Tuesday, 25 August 2015 18:02:40 UTC-5, Mark Li wrote: > > Is id_map still necessary to preserver references when using > import_form_csv_file function? > > I read this in the docs ( > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV--all-tables-at-once- > )

[web2py] Re: Web2py Restfull API Token authentication

2015-08-26 Thread Massimo Di Pierro
That logic was added and then removed from auth, under the assumption that we would add support for JWT. This is open for discussion. On Tuesday, 25 August 2015 08:37:15 UTC-5, Stefan van den Eertwegh wrote: > > Hi everyone, > > If i search on authentication for restfull API web2py i get basic au

Re: [web2py] Re: ldap import problem

2015-08-26 Thread Massimo Di Pierro
I understand that but that is not the problem. When you say import ldap, web2py tries to import it from various location. When it fails to import from all locations, it reports the error you see and the error include the path to the first location it tried. That does not mean that it did not t

[web2py] Re: Unable to install HandsOnTable plugin

2015-08-26 Thread Martti Lamberg
On Sunday, August 23, 2015 at 3:08:46 AM UTC+3, Massimo Di Pierro wrote: > > that plugin is a little old and hands on table is evolved since. Using > hands on table does not really require the plugin, it is very easy to use, > and it purely client side. > > On Friday, 21 August 2015 18:34:27 UT

[web2py] web2py is giving an inetrnal error

2015-08-26 Thread Vineeta Jain
when i am opening web2py framework it is giving an internal error as: Ticket issued: welcome/127.0.0.1.2015-08-24.14-15-43.bc2b872a-1f3a-4d23-9030-6eb6823ebdc3 . What is the i

[web2py] Re: routes.py causing loss of css

2015-08-26 Thread David Ripplinger
Thank you, Anthony. That helps. In my app, things will soon get complex enough that the pattern-based system will suit me best. With your help, I think I understand it a bit better now. I got it to work for what I need in this first test by simply removing '$anything'. On Wednesday, August 26,

[web2py] Re: routes.py causing loss of css

2015-08-26 Thread Niphlod
ahem. you're rewriting ANYTHING to a single url. Can you see why there's something clearly wrong with your scheme ? :D if you want MULTIPLE urls to work, you need to leave something on the left and the right side to be the "unique" parts of the urls. if you want / to go to /app/default/ind

[web2py] Re: routes.py causing loss of css

2015-08-26 Thread Anthony
Your routes.py maps literally *any *URL (including static URLs) to just the single /myapp/default/index URL. When using $anything in the first item of the tuple, you should also append it to the second so whatever arbitrary part of the original URL was matched gets retained. In any case, you pr

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-26 Thread Derek
You could open a connection to both databases then copy the data over that way. That's what my day job is, transferring data, ETL. On Sunday, August 23, 2015 at 7:49:12 PM UTC-7, Joe wrote: > > Yes, now I can connect but I wasn't able to connect before. First, I > couldn't upload the packaged ap

[web2py] routes.py causing loss of css

2015-08-26 Thread David Ripplinger
Hi everyone, I know I'm doing something wrong here. I'm trying out app-specific routes.py files. I have an app that currently has the default/index page unmodified, that is, it's equivalent to the welcome app. I have in the web2py base directory the following contents in my routes.py file: rou

Re: [web2py] Re: populate form in view

2015-08-26 Thread Jim Steil
Thanks for the correction Anthony, I didn't know that. -Jim On Wed, Aug 26, 2015 at 10:07 AM, Anthony wrote: > There's nothing wrong with calling .process() when the form is first > defined. Your code is exactly equivalent to the original. > > Anthony > > -- > Resources: > - http://web2py.com >

[web2py] Re: populate form in view

2015-08-26 Thread Anthony
There's nothing wrong with calling .process() when the form is first defined. Your code is exactly equivalent to the original. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Re: Is this use of the scheduler correct?

2015-08-26 Thread Niphlod
this is how you queue tasks, and there's nothing wrong with it. The missing point here is 1. : there is a limit to the number of concurrent workers, which is how many you start from the commandline... and, BTW, even if you queue 10k tasks, you can't expect to start 10k scheduler processes on a

[web2py] Re: populate form in view

2015-08-26 Thread Jim S
I'm confused by the use of .process() at the end of your SQLFORM instantiation. Instead, I would do this: form = SQLFORM(db.certificate_request) if form.process().accepted: response.flash = 'new CSR registered' redirect(URL('customerArea', 'index') Hope that helps. -Jim On Tuesday, A

Re: [web2py] Re: add icons to table

2015-08-26 Thread Ovidio Marinho
look at this http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falcao Neto* ovidio...@gmail.com

[web2py] Re: add icons to table

2015-08-26 Thread Iancic Bogdan
All the images will be saved in static On Wednesday, August 26, 2015 at 2:54:25 PM UTC+2, Iancic Bogdan wrote: > > I want to add a column to my table where will be displayed icons. Also, > when the user clicks on the icon I would like the icon to overlay. > > Can anyone help? I looked over the do

[web2py] add icons to table

2015-08-26 Thread Iancic Bogdan
I want to add a column to my table where will be displayed icons. Also, when the user clicks on the icon I would like the icon to overlay. Can anyone help? I looked over the documentation but I didn't find anything -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt