[web2py] web2py and elasticsearch

2014-12-29 Thread Andrey K
Hi all, Could you suggest the way to marry web2py and elasticsearch (http://www.elasticsearch.org/overview/elasticsearch). I have found solution for Whoosh and Solr (https://github.com/mdipierro/web2py-haystack) but don't know how to adjust it for elasticsearch. Any suggestion and ideas will

[web2py] Re: two forms submitted into the same cotroller

2014-08-31 Thread Andrey K
Thanks Massimo. Here is my reformatted question(hope it will be more understandable): I want to present two input sets of information coming from server into two sections of the same view (div1 and div2). First input set is generated based on user choice control, that presented at the

[web2py] Re: two forms submitted into the same cotroller

2014-08-30 Thread Andrey K
Hi Massimo, Here is my dilemma: I have one view with 3 tabs (DIVS), where I would like to have one tab for user tool selection and two forms in 2 separated tabs(DIVs) : 1)static form and 2)dynamic form(generated based on user selection in first tab). Also I would like to submit all information

[web2py] two forms submitted into the same cotroller

2014-08-29 Thread Andrey K
Dear list, I have two related questions: 1. Basically I have one view (C) which contains two forms A and B. The dynamic form A is created by controller A and added by web2py_component (Ajax call). The static form B is created by controller B and added via helper LOAD. I want to submit both

[web2py] how to trier submit action of form(SQLFORM) under separated div(outside form)

2014-07-01 Thread Andrey K
Dear web2py users, I have a straight forward need in trigger submit action of sqlform outside of form div - by clicking other button and hide original submit button on the form. Can I do it and how? I have only found that I can hide submit button on the original w2p form by using: def

[web2py] Re: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-06-20 Thread Andrey K
I have exactly the same problem with moving from 2.74 to 2.95. After set up - lazy_tables=True - all references start to work properly. On Sunday, March 9, 2014 9:01:35 AM UTC+3, Tim Richardson wrote: was reported as http://code.google.com/p/web2py/issues/detail?id=1896 -- Resources: -

[web2py] Re: webDAV server plugin for web2py

2014-06-01 Thread Andrey K
/gluon/tools.py#L5342 On Friday, 30 May 2014 09:15:44 UTC-5, Andrey K wrote: Hi guys, We would like to make a web file manager for web2py as a plugin, that offer good speed, security and big file transfer. Any idea what is already done in this direction? We thinking about webDAV server

[web2py] Re: Use DAL connection pool for MongoDB?

2014-06-01 Thread Andrey K
Hi Alan, Could you please explain how to use the approach of using pymongodb connection via mycon = db._adapter.connection and what would be the difference between it and normal DAL connection to mongoDB. Can you tell what is the best connect to pymongo lib in web2py application. As I saw

[web2py] mongoDB connect via db._adapter.connection

2014-06-01 Thread Andrey K
Dear users, I have a dilemma of how to access mongoDB and pymongo in the best way using DAL and pymongo. Could you please explain how to use the approach of using pymongodb connection via mycon = db._adapter.connection and what would be the difference between it and normal DAL connection to

Re: [web2py] web2py CMS

2014-06-01 Thread Andrey K
Andrey, Do you need a blog? 2014-05-30 11:21 GMT-03:00 Andrey K kmele...@gmail.com javascript:: I am interested to add in CMS system for our web2py application. Quick search does not give me any solutions. Is there any CMS plugin already or any recipes on it? Any thoughts, suggestions, links

[web2py] webDAV server plugin for web2py

2014-05-30 Thread Andrey K
Hi guys, We would like to make a web file manager for web2py as a plugin, that offer good speed, security and big file transfer. Any idea what is already done in this direction? We thinking about webDAV server as the platform for it. Is anybody deal with webDAV in conjunction with web2py

[web2py] web2py CMS

2014-05-30 Thread Andrey K
I am interested to add in CMS system for our web2py application. Quick search does not give me any solutions. Is there any CMS plugin already or any recipes on it? Any thoughts, suggestions, links and comments would be very appreciated. Thank you in advance! -- Resources: - http://web2py.com -

[web2py] What MongoDB operators are available in current DAL, and how to use pymongo with DAL in web2py

2014-05-28 Thread Andrey K
Dear web2py experts, I would like to use MongoDB+w2p for my current task which might make my life a lot easier. The only examples I have found are: http://www.web2pyslices.com/slice/show/1580/save-the-earth-from-a-total-data-mess-with-mongodbadapter

[web2py] Re: apply static html/graphic to layout template

2014-05-08 Thread Andrey K
Thanks a lot for your feedback and suggestions! It support my vague vision:) Now I am certain on the way to go about it. Thanks again! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] apply static html/graphic to layout template

2014-05-07 Thread Andrey K
Dear web2py users, Could you please help/suggest me how to deal with following dilemma: I have developed a web2py application and have a graphic design from an outsource designer in the form of static pictures (png) and vector layouts in illustrator format (.aoi). Now, I would like to apply

[web2py] Re: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-09 Thread Andrey K
UTC+3, Niphlod wrote: On Wednesday, March 5, 2014 3:49:22 PM UTC+1, Andrey K wrote: Greetings, I am using web2py scheduler and looking the way to get scheduler_run.traceback and scheduler_run.run_result for reporting. Any idea how I can get it? After I setting up the task by: task

[web2py] how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Andrey K
Greetings, I am using web2py scheduler and looking the way to get scheduler_run.traceback and scheduler_run.run_result for reporting. Any idea how I can get it? After I setting up the task by: task=scheduler.queue_task(test_js_task,pvars=dict(x)) I can get only task.id and task.uuid. What is

[web2py] Re: run web2y scheduler instances on 2 or more servers

2014-03-04 Thread Andrey K
, Andrey K wrote: Wow, what an answer! Niphlod, thanks a lot for such a detailed info with examples - now it is crystal clear for me. Very great help, really appreciate it!!! You answer make me clarify the future architecture for my app. Before I thought to use amazon internal tools for task

[web2py] Re: run web2y scheduler instances on 2 or more servers

2014-03-03 Thread Andrey K
, Andrey K wrote: Thank Niphlod for your answer. it is already great if it is possible even theoretically! it does even in the real world :-P Regarding implementation. Correct me please if I am wrong in following understanding - am I right that I need to: 1)copy the whole web2py

Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2014-03-03 Thread Andrey K
similar thing http://www.jetbrains.com/pycharm/webhelp/remote-debugging.html On Saturday, March 16, 2013 7:25:14 PM UTC+3, Niphlod wrote: a little offtopic but http://pydev.org/manual_adv_remote_debugger.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] run web2y scheduler instances on 2 or more servers

2014-02-28 Thread Andrey K
Good day, I am working on the application that requires run background scripts on user demand. At the moment I have implemented it as native web2py job scheduler. If the demand will be high enough my server would not be able deliver all tasks in reasonable time. Thus I am looking the way to

[web2py] Re: run web2y scheduler instances on 2 or more servers

2014-02-28 Thread Andrey K
the app(s)) in another server. If that one is just doing the additional scheduler role, instead of starting the webserver, you'll start the worker with web2py.py -K appname On Friday, February 28, 2014 12:05:22 PM UTC+1, Andrey K wrote: Good day, I am working on the application

[web2py] how to add termscondition hyperlink to registration from next to the field element

2014-02-26 Thread Andrey K
Greeting, I can not figure out how to add link to the Registration from next to the field. In my case next to terms and condition checkbox. Could you give me a clue on how to deal with it? At the moment I have this: db.py: auth.settings.extra_fields['auth_user']= [ Field('Terms','boolean',

[web2py] Inject HTML in SQLFORM.factory field from client side(js or jQuery)

2014-02-10 Thread Andrey K
Dear web2py users, I would like to add dynamically fields to SQLFORM.factory defined in the model in client side by jQuery and then get the added fields values back to db (by if form.accepted) via the standard form submit ,embedded in SQLFORM.factory . It does not seems to work on the server

[web2py] Re: Inject HTML in SQLFORM.factory field from client side(js or jQuery)

2014-02-10 Thread Andrey K
could include logic to check request.post_vars and add fields to SQLFORM.factory based on the variables that have been submitted. Anthony On Monday, February 10, 2014 11:42:34 AM UTC-5, Andrey K wrote: Dear web2py users, I would like to add dynamically fields to SQLFORM.factory defined

[web2py] Re: Inject HTML in SQLFORM.factory field from client side(js or jQuery)

2014-02-10 Thread Andrey K
On Monday, February 10, 2014 2:14:57 PM UTC-5, Andrey K wrote: Thanks Anthony for your quick reply! I am not sure that I have understand you though. Do you mean I can get values from aggregated form in default.py as shown below, if so I still don't get the added values. Should l 'mark' them

[web2py] Re: adding table column/field pro grammatically to existing table under controler

2014-02-07 Thread Andrey K
Thanks Antony for your concise answer! I have tried it in the app code - it did not work, giving me no error. I have tried your code in the terminal and it looks the code does not create new table field. Any idea why it does not work? Maybe its my db settings? I use sqlite db. Your help would

[web2py] Re: adding table column/field pro grammatically to existing table under controler

2014-02-07 Thread Andrey K
is the maximum number of fields I can theoretically add to the table? On Friday, February 7, 2014 4:31:49 PM UTC+3, Cliff Kachinske wrote: Andrey, Not to be negative, but why do you want to do this? On Friday, February 7, 2014 8:07:10 AM UTC-5, Andrey K wrote: Thanks Anthony for your concise answer! I

[web2py] Re: adding table column/field pro grammatically to existing table under controler

2014-02-07 Thread Andrey K
off lazy_tables. Anthony On Friday, February 7, 2014 8:45:46 AM UTC-5, Anthony wrote: Hmm, works for me. What version of web2py are you using? On Friday, February 7, 2014 8:07:10 AM UTC-5, Andrey K wrote: Thanks Anthony for your concise answer! I have tried it in the app code - it did

[web2py] Re: adding table column/field pro grammatically to existing table under controler

2014-02-07 Thread Andrey K
I guess I found answer for my new issue of not updated db.table. It is sqlite problem - no ability to drop or add column. See here: http://web2py.com/books/default/chapter/29/6#Fixing-broken-migrations On Friday, February 7, 2014 8:17:08 PM UTC+3, Andrey K wrote: Thanks Anthony. Yahaaa. Now

[web2py] Re: adding table column/field pro grammatically to existing table under controler

2014-02-07 Thread Andrey K
Thanks Anthony. Based on your anser I can say that my problem comes from my design of the db. As the requirements have just changed and I have to provide ability to each user to add columns - so it would need to be adopted for regular basis. In addition I have checked limit of most db in max

[web2py] adding table column/field pro grammatically to existing table under controler

2014-02-06 Thread Andrey K
I have a need to dynamically add Fields to my table. I wonder what is the best way to add column/field to existing table (already defined in db.py model) under controller (for example default.py) with main Field parameters (value, type, comment)? Example: *model/dp.py:* db.define_table('tA',

[web2py] how to make complex dynamic form

2014-02-05 Thread Andrey K
Dear web2py members, I have a question for you. I would like to make a dynamic form which looks like below picture (it is easier to represent my question as a sketch rather than wording). The form suppose to allow user to add tool with 1 or many parameters. Form should consist of: tool name,

[web2py] Re: how to make complex dynamic form

2014-02-05 Thread Andrey K
the fields added by JQuery. It's not difficult, but you must remember to do it. On Wednesday, February 5, 2014 10:11:51 AM UTC-5, Andrey K wrote: Dear web2py members, I have a question for you. I would like to make a dynamic form which looks like below picture (it is easier to represent my

[web2py] Re: move from sqlite to postgres using cpdb.py failed

2014-01-30 Thread Andrey K
I have been trying to move from sqlite to postgres without any success. At the end of my experimenting unfortunately i have just modified my code and fill my tables manually: I guess I did some thing no entirely correctly but it is very little I could find in the web and in the docs about

[web2py] move from sqlite to postgres using cpdb.py failed

2014-01-26 Thread Andrey K
Dear w2p users, I want to move all my db data from sqlite to postgresql. Based on the w2p book I need to use cpdb.py script. I have used it and get positive messages but I have not got any db changes in postgresql.Any idea why it does not work? Any advice would be very appreciated! Below is my

[web2py] Re: move from sqlite to postgres using cpdb.py failed

2014-01-26 Thread Andrey K
Thanks Alan for your quick respond! I have check sql.tmp - it contains only 'END'. After adding the print line I have got following message, with no tables([]): c:\Users\power\PycharmProjects\test_test\web2pypython scripts/cpdb.py -d g -f applications/app/databases -y sqlite://storage.sqlite

[web2py] Workflow development togetherwhat is the best way to make work flow design on the client (like this

2013-09-29 Thread Andrey K
Hello everybody, I wonder is it possible to make workflow diagram compiler on the client like this (http://gojs.net/latest/samples/flowchart.html) linked to executable code generated from code blocks associated with appropriate diagram block. Can it be done in web2py. I guess it would be very

[web2py] workflow diagram and associated code generator

2013-09-29 Thread Andrey K
Hello everybody, I wonder is it possible to make workflow diagram compiler on the client like this (http://gojs.net/latest/samples/flowchart.html) linked to executable code generated from code blocks associated with appropriate diagram block. Can it be done in web2py. I guess it would be very

[web2py] Sending jobs to LSF scheduler from web2py

2013-09-29 Thread Andrey K
Good day, I am working on the web application (web2py controller) which suppose to tiger unix job scheduler (LSF) which in turn run unix executable files with parameters. Is it save to use such approach in web2py. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: GDAL and Web2py

2013-05-12 Thread Andrey K
Check it out (http://www.markbreedveld.nl/blog/blog/post?post=1) On Wednesday, November 4, 2009 12:05:00 AM UTC+3, Adolfo wrote: Hello has someone tried using gdal with web2py? can someone give me some advice on how i can use gdal with web2py thanx Adolfo -- --- You received this