[web2py] Re: Authorization for Webhooks

2011-02-13 Thread AsmanCom
Does nobody know, how to query these two values by the given session_id (session_id_myapp=127.0.0.1-2b77d424-4e72-4d3f-a0de- badbcdbe6a30)? 1. is_logged_in (boolean) 2. username or user email (string) I looked in the book, i´ve searched this group, i´ve searched the web, but still can´t find any

[web2py] Re: Authorization for Webhooks

2011-02-13 Thread AsmanCom
:43 am, AsmanCom d.as...@web.de wrote: Does nobody know, how to query these two values by the given session_id (session_id_myapp=127.0.0.1-2b77d424-4e72-4d3f-a0de- badbcdbe6a30)? 1. is_logged_in (boolean) 2. username or user email (string) I looked in the book, i´ve searched

[web2py] Re: Using comet sockets

2011-02-13 Thread AsmanCom
Why have you chosen Tornado for this comet sockets experiment? it´s Unix only, right? I'm currently working on a quite similar comet sockets with web2py Project, but I attempt to implement this with hookbox.org which could also be worth a look. On 13 Feb., 22:41, Massimo Di Pierro

[web2py] Re: Authorization for Webhooks

2011-02-12 Thread AsmanCom
First things first, Thanks a bunch for your reply. Can you just read the cookie Yes: request.cookies and match it to a session? I would like to, but I do not know how? Do these callbacks occur quickly enough that the session has not expired? Yes. the callback is not technically logged in

[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] 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: Plugin_JqGrid long-polling

2010-11-11 Thread AsmanCom
and check in the console log what is going on. On Nov 10, 9:53 am, AsmanCom d.as...@web.de wrote: tried it like this: app/models/plugin_jqgrid.py: var server_time=null; jQuery(document).ready(function(server_time){jQuery(#% (id)s).jqGrid({ url:'%(callback)sserver_time'+escape(server_time

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
,                              ))}} var server_time=test ... jQuery.getJSON('{{=callback}} 'server_time='+escape(server_time)) ... hope this helps. On Nov 10, 8:24 am, AsmanCom d.as...@web.de wrote: Is there no solution to my concerns? It´s such a pity...

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
jQuery(document).ready(function(server_time){jQuery(#% (id)s).jqGrid({ url:'%(callback)s', with jQuery(document).ready(function(server_time){jQuery(#% (id)s).jqGrid({ url:'%(callback)sserver_time'+escape(server_time), On Nov 10, 9:34 am, AsmanCom d.as...@web.de wrote: Hi

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
By the way, how can i set initially the var server_time=null; to a python readble False? THX On 10 Nov., 16:55, mdipierro mdipie...@cs.depaul.edu wrote: You need to install firebug and check in the console log what is going on. On Nov 10, 9:53 am, AsmanCom d.as...@web.de wrote: tried

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
, mdipierro mdipie...@cs.depaul.edu wrote: You need to install firebug and check in the console log what is going on. On Nov 10, 9:53 am, AsmanCom d.as...@web.de wrote: tried it like this: app/models/plugin_jqgrid.py: var server_time=null; jQuery(document).ready(function(server_time

[web2py] Re: Plugin_JqGrid long-polling

2010-11-09 Thread AsmanCom
)) will be request.vars.server_time.  Is that what you're asking? On Nov 7, 3:12 am, AsmanCom d.as...@web.de wrote: Can I include the var server_time in the vars=dict somehow? THX

[web2py] Re: Plugin_JqGrid long-polling

2010-11-08 Thread AsmanCom
Who can help me with this? THX On 8 Nov., 08:04, AsmanCom d.as...@web.de wrote: THX mr.freeze Yeah request.vars, but the vars=dict is already set in callback =, how can I add the Javascript var to the vars=dict? On loadComplete: I set the server_time var(last successful relaod) and * 1000

[web2py] Re: Plugin_JqGrid long-polling

2010-11-07 Thread AsmanCom
Can I include the var server_time in the vars=dict somehow? THX

[web2py] Re: Plugin_JqGrid long-polling

2010-11-07 Thread AsmanCom
)) will be request.vars.server_time.  Is that what you're asking? On Nov 7, 3:12 am, AsmanCom d.as...@web.de wrote: Can I include the var server_time in the vars=dict somehow? THX

[web2py] Plugin_JqGrid long-polling

2010-11-06 Thread AsmanCom
Hi, I need some help with plugin_jqgrid: What I basicaly want to do is steady refreshing the grid with on loadComplete .trigger(reloadGrid), how can i pass the var server_time with the url:'%(callback)s' to the controllers/ plugin_jqgrid/data call? I need this var in the controller to return

[web2py] Re: Plugin_JqGrid long-polling

2010-11-06 Thread AsmanCom
Anyone? It´s only about passing the var with the URL THX

[web2py] Re: new welcome (scaffolding) app

2010-07-15 Thread AsmanCom
Hi, I would advise to integrate jquery.ui and the ThemeSwitcher widget (http://docs.jquery.com/UI/Theming/ThemeSwitcher) to make the app visual appealing vor novices. THX Dieter Asman On Jul 9, 3:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: let's consider anewscaffolding app. What should

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-12 Thread AsmanCom
. Massimo On 6 Lug, 11:59, AsmanCom d.as...@web.de wrote: Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16, mdipierro mdipie...@cs.depaul.edu wrote: I see there is a problem. There is no mechanism to pass the database via ajax at this time. On 6

[web2py] Re: Editable jqgrid

2010-07-11 Thread AsmanCom
Hi, you have to press enter when you have finished your changes. Dieter Asman On 11 Jul., 22:45, Kenneth kenneth.t.lundst...@gmail.com wrote: Hello, I´m trying to make a editable jqgrid or something like a editable jqgrid. It doesn´t have to be a jqgrid. I have downloaded the plugin from

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-08 Thread AsmanCom
complication to be implemented in general. Massimo On 6 Lug, 11:59, AsmanCom d.as...@web.de wrote: Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16, mdipierro mdipie...@cs.depaul.edu wrote: I see there is a problem. There is no mechanism to pass

[web2py] Re: A few questions about jqgrid

2010-07-06 Thread AsmanCom
You could have a look at this plugin for for Inline edit with JQGrid and Web2py: http://app.ebansoftware.net/editable_jqgrid/default/index On 5 Jul., 21:25, Johann Spies johann.sp...@gmail.com wrote: I am a javascipt and jquery novice and would appreciate some information to help me

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread AsmanCom
it an uploaded. Please give it a try. On 5 Lug, 04:07, AsmanCom d.as...@web.de wrote: I´ve elready tried to change the controller/plugin_jqgrid.py, by replacing table=db[tablename]     if request.vars.fieldname:         dbset = db(table[request.vars.fieldname]==request.vars.fieldvalue

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread AsmanCom
Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16, mdipierro mdipie...@cs.depaul.edu wrote: I see there is a problem. There is no mechanism to pass the database via ajax at this time. On 6 Lug, 10:39, AsmanCom d.as...@web.de wrote: Hi, i´ve tried

[web2py] JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
Hi, I try to get the JQGrid Plugin (http://www.web2py.com/plugins/default/ jqgrid) to work with multiple Databases. Like this: db_1 = DAL(sqlite://db1.db) db_2 = DAL(sqlite://db2.db) db_3 = DAL(sqlite://db3.db) plugin_jqgrid(db_1.shout) But the Grid is empty. If I do it like that, it

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
] if request.vars.fieldname: dbset = db_1(table[request.vars.fieldname]==request.vars.fieldvalue) else: dbset = db_1(table.id0) But without success. THX On Jul 5, 11:00 am, AsmanCom d.as...@web.de wrote: Hi, I try to get the JQGrid Plugin (http://www.web2py.com/plugins/default/ jqgrid) to work

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-05 Thread AsmanCom
THX, that was damn fast! I´ll try it later and will let you know if it works. Dieter Asman On Jul 5, 2:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: I have fixed it an uploaded. Please give it a try. On 5 Lug, 04:07, AsmanCom d.as...@web.de wrote: I´ve elready tried to change

[web2py] Hidden SQLFORM.factory Field

2010-06-23 Thread AsmanCom
Hi, i can make a hidden Field by: form = SQLFORM.factory(Field(field_name, type=hidden, default=Off)) Now the Form is hidden, but the Fieldname is still there, how can I hide this? THX

[web2py] Re: request.vars from Javascript

2010-06-19 Thread AsmanCom
? On Jun 19, 3:11 am, AsmanCom d.as...@web.de wrote: Hi, I need to retrieve the request.vars from an JavaScript Object. controller code: form.append(INPUT( _id=buttonid, _type=button, _class=my_button, _name=buttonName, _value=Off)) and then i want to get the value from this, like

[web2py] Re: request.vars from Javascript

2010-06-19 Thread AsmanCom
Jun., 12:52, David Marko dma...@tiscali.cz wrote: For the form based applications I like Dojo Toolkit, especially declarative mode. See the Checkbox widget here:http://www.dojotoolkit.org/reference-guide/dijit/form/ToggleButton.ht... David On 19 čvn, 11:25, AsmanCom d.as...@web.de wrote: I

[web2py] Re: Download an external file to 'uploads'

2010-06-19 Thread AsmanCom
Hi, that could be useful for the unzip part: http://www.web2py.com/examples/static/epydoc/web2py.gluon.admin-pysrc.html#unzip And that could be used/customized for the downloading part (Its taken from the great clienttools module: http://www.web2pyslices.com/main/slices/take_slice/8): def

[web2py] request.vars from Javascript

2010-06-18 Thread AsmanCom
Hi, I need to retrieve the request.vars from an JavaScript Object. controller code: form.append(INPUT( _id=buttonid, _type=button, _class=my_button, _name=buttonName, _value=Off)) and then i want to get the value from this, like so: if request.vars.buttonName == Off: do anything But it

[web2py] Client Tools Application corrupt on web2py Version 1.79.2 ?

2010-06-11 Thread AsmanCom
Hi, it seems that Client Tools wont work anymore on web2py Version 1.79.2: Traceback (most recent call last): File gluon/restricted.py, line 178, in restricted File D:/web2py/applications/clienttools/controllers/default.py, line 265, in module File gluon/globals.py, line 96, in lambda

[web2py] Re: PluginManager?

2010-06-09 Thread AsmanCom
Hi, a Task Scheduler Plugin would be very nice. Kindly keep me posted about your progress! What exactly is the Problem, do you have a traceback? On 8 Jun., 05:42, Doug Warren doug.war...@gmail.com wrote: So I'm writing a plugin to handle scheduling of tasks with a dynamic granularity of a

[web2py] Re: PluginManager?

2010-06-09 Thread AsmanCom
env(a, import_models=False, c=1, f=1, dir='', extra_request={}) Return web2py execution environment for application (a), controller (c), function (f). If import_models is True the exec all application models into the environment. extra_request allows you to pass along any extra variables to the

[web2py] Re: jQgrid navigator - form editing through a grid

2010-05-30 Thread AsmanCom
What about that http://app.ebansoftware.net/editable_jqgrid/default/show_example On 29 Mai, 19:21, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: btw - trying to wade thru these doesn't seem to point to anything (and just makes my head hurt!):

[web2py] Barchart solution (with Callback) available?

2010-05-30 Thread AsmanCom
I would like to show Database Fields as Barcharts (widget) like this: http://web2py.appspot.com/t3/default/wiki/charts or better http://t.wits.sg/jquery-progress-bar/ It should be possible to show more then one barchart per Page, which can be updated by a Callback (I want to use them in a Grid)

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Could you help me setting this up too? This is the view: {{extend 'layout.html'}} h1This is the default/test.html template/h1 {{=jqgrid_table}} jQuery(#grid_id).jqGrid({ onSelectRow: function(postdata) { web2py_ajax_page('get','/myapp/default/form/'+ (postdata),null,'my_form');

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
=[...])}} is called. If you do it this way you will want to add it to the .jqGrid({ }) parameters not in the 'navGrid', 'toolbar' or other extended option parameters. Jay On May 20, 8:47 pm, AsmanCom d.as...@web.de wrote: Could you help me setting this up too? This is the view: {{extend 'layout.html

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
:45 PM, AsmanCom wrote: Thanks for your effort, but it gives an empty page.. I will use two or more Grids at least one of them must keep the editable behaveure. But in this case it should work like your approach, controlling the form. May i missed something..? Could you tell me how

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
) { web2py_ajax_page('get','/myapp/default/form/'+(postdata),null,'my_form');}}); /script On 05/20/2010 10:45 PM, AsmanCom wrote: Thanks for your effort, but it gives an empty page.. I will use two or more Grids at least one of them must keep the editable behaveure. But in this case it should work like

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
...@gmail.com wrote: Are you using the web2py jqgrid_plugin? http://web2py.com/plugins/default/jqgrid On 05/20/2010 11:53 PM, AsmanCom wrote: can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?:     onSelectRow: function(id

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
/2010 11:53 PM, AsmanCom wrote: can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?:     onSelectRow: function(id){       if(id  lastSel!=''  id!==lastSel){          jQuery(grid_name).restoreRow(lastSel);       }       lastSel=id

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
')}} check out LOAD function dochttp://www.web2py.com/AlterEgo/default/show/252 On 05/21/2010 12:09 AM, AsmanCom wrote: Many thanks, it go�s in the right direction now. I am using thehttp://app.ebansoftware.net/editable_jqgrid/default/show_example , but it is quite similar. Now

[web2py] Re: JqGrid Plugin

2010-05-14 Thread AsmanCom
@Andrea Your plugin is absolutely awesome, that´s what i´ve looked for! Are going to implement further JQGrid functions in the near future? I would appreciate if the Subgrid feature would be implemented in the plugin: http://www.trirand.com/blog/jqgrid/jqgrid.html -New since beta 3.0 -subgrid

[web2py] Re: jqgrid onSelectRow refresh iframe

2010-05-14 Thread AsmanCom
Hi, i am working with JQGrid plugin too. Just to get your approach right.. you´ve realised a Master-Detail function with the JQGrid? Very nice! May i can use this too. Is the code(for Controller, View) from your last post working, right now? Did you made any changes to the ##model code? I am

[web2py] Re: Catch and replace vars

2010-05-11 Thread AsmanCom
. Regards, Iceberg On May11, 12:08am, AsmanCom d.as...@web.de wrote: Hi, i want to do a simple task: def function_1():     var_field_1=request.vars.field_1     if var_field_1:         return var_field_1 db.define_table('table_1',                        Field('field_1','string

[web2py] Catch and replace vars

2010-05-10 Thread AsmanCom
Hi, i want to do a simple task: def function_1(): var_field_1=request.vars.field_1 if var_field_1: return var_field_1 db.define_table('table_1', Field('field_1','string' ), Field('field_2', default=function_1)

[web2py] Re: Reverse Search with .like

2010-05-08 Thread AsmanCom
the query you want? On May 7, 10:48 am, AsmanCom d.as...@web.de wrote: It returns nothing... even if I write in the exact value and it should work like a fuzzy logic.. like that: find_value= request.vars.value db('%' + table_1.field_1 + '%').lower().like(find_value).select

[web2py] Reference Fields

2010-05-07 Thread AsmanCom
1. In this Example i need to take the input string from table_1.field_1 and get_or_create a record in table_2 with table_1.field_1 value in table_2.field_1 and insert the table_2.field_2 refernce in table_1.field_2: def get_or_create(table, fields): logic=reduce(lambda

[web2py] Reverse Search with .like

2010-05-07 Thread AsmanCom
Hi, here is the important Code from an Sqlite trigger i use very often, is this possible with web2py to? Sqlite: (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%' LIKE table_1.field_1 ) or i can even do: (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%'

[web2py] Re: Reverse Search with .like

2010-05-07 Thread AsmanCom
The || operator is concatenate, its like + in python. On 7 Mai, 16:48, Mengu whalb...@gmail.com wrote: is || just a string or have any purpose? On 7 Mayıs, 17:35, AsmanCom d.as...@web.de wrote: Hi, here is the important Code from an Sqlite trigger i use very often, is this possible

[web2py] Re: Reverse Search with .like

2010-05-07 Thread AsmanCom
+ '%').select(db.table_1.field_1) Any Idea? On 7 Mai, 17:03, mdipierro mdipie...@cs.depaul.edu wrote: This should work db('%' || NEW.field_1 || '%'  LIKE table_1.field_1).select(db.table_1.field_1) On May 7, 9:35 am, AsmanCom d.as...@web.de wrote: Hi, here is the important Code from

[web2py] Re: Reverse Search with .like

2010-05-07 Thread AsmanCom
, AsmanCom d.as...@web.de wrote: Hi, here is the important Code from an Sqlite trigger i use very often, is this possible with web2py to? Sqlite: (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%' LIKE table_1.field_1 ) or i can even do: (SELECT table_1.field_1 FROM

[web2py] Re: Ext JS REST Grid + WEB2PY CRUD ?

2010-03-04 Thread AsmanCom
an xml service to feed the grid data instead. http://web2py.com/book/default/section/9/2?search=%40service.xmlhttp://www.extjs.com/deploy/dev/examples/grid/xml-grid.html On Mar 2, 7:35 am, AsmanCom d.as...@web.de wrote: Hi, any idea how to make the Ext JS Grids woking with WEB2PY?http

[web2py] Ext JS REST Grid + WEB2PY CRUD ?

2010-03-02 Thread AsmanCom
Hi, any idea how to make the Ext JS Grids woking with WEB2PY? http://www.extjs.com/deploy/dev/examples/#sample-3 In particular the RESTful Store: http://www.extjs.com/deploy/dev/examples/restful/restful.html I think it must be connected to CRUD somehow? Any Examples to connect such JS Grids to

[web2py] Download and Update Progress +a general question

2010-02-24 Thread AsmanCom
callback source when updating DB after downloading the file... Anyone any suggestions? Best regards, Dieter Asman - AsmanCom - Germany -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com

[web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread AsmanCom
- AsmanCom - Germany On 24 Feb., 18:17, Tiago Almeida tiago.b.alme...@gmail.com wrote: for quick development-shots, i need to execute my untouched(may i could change print to return) Python scripts(..with loops) in the Controller. The output should be renderd direct via http, without long-winded

[web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread AsmanCom
) bytes_so_far += len(chunk) if not chunk: break if report_hook: report_hook(bytes_so_far, chunk_size, total_size) How to display the output of chunk_report properly? (or how to update the ProgressBar with that output?) Best regards, Dieter Asman - AsmanCom

[web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread AsmanCom
my functions (1. donload text file in %, 2. import text file line by line to the DB in %) to show the Progress in browser window. Best regards, Dieter Asman - AsmanCom - Germany On 24 Feb., 23:01, Dragonfyre13 dragonfyr...@gmail.com wrote: So, let me make sure I understand this right, you want

[web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread AsmanCom
@Thadeus Burgess If rendering the standard output from scripts is not natively supported, there must be a better solution than changing the prog. language. a real-time logger or something like that. Best regards, Dieter Asman - AsmanCom - Germany On 24 Feb., 23:14, Thadeus Burgess thade