[web2py] Detect Facebook/Twitter shares

2015-10-28 Thread Phillip
Is there a way to detect a user's id when the facebook/twitter share mechanism is used? A user's share activity would need to be tracked to, for instance, incentivize using the share function, If this has already been asked and detailed, please indicate where to find the post --

[web2py] Re: Why is https not working (not private) with my implementation of this web2py slice?

2015-10-15 Thread Phillip
I can access the page, but in order to access the functionality of the service worker process on the page, it appears some other step needs to be taken to properly utilize https. Is there no way to 'normalize' https for this app? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Why is https not working (not private) with my implementation of this web2py slice?

2015-10-14 Thread Phillip
]): python web2py.py -c /Users/Phillip/Desktop/web2pyFiles/web2py/applications/GJBSG/private/ssl_certificate.crt -k /Users/Phillip/Desktop/web2pyFiles/web2py/applications/GJBSG/private/ssl_self_signed.key -i 127.0.0.1 -p 8000 but https is declared 'not private' and is crossed out. Because

[web2py] Re: How to download (zip) file with jQuery ajax?

2015-09-28 Thread Phillip
Yes, it appears to work perfectly for me as well, as did the function I posted. Hence, it appears that something is wrong with either the ajax call, or some nuance that a novice like myself does not see, which is probably so obvious to you that you do not see what I'm missing. My only hint is

[web2py] Are there any efficient security recommendations for file downloads?

2015-09-28 Thread Phillip
Presently, files are being downloaded simply by concatenating a string of all file id's to a "{{=URL('download_files')}}" call. To be efficient, I want to avoid having to authorize each ID as belonging to the user (since there could be a manual download call with arbitrary IDs) Is there

[web2py] Re: How to download (zip) file with jQuery ajax?

2015-09-26 Thread Phillip
I get the same result with the posted function, albeit your nuances appreciated. To be thorough, I'll repost the updated function. def download_that(): import zipfile import cStringIO import contenttype as c vars = request.vars tempfile = cStringIO.StringIO()

[web2py] How to download (zip) file with jQuery ajax?

2015-09-25 Thread Phillip
A zip file is written in 'download_data' and nothing happens upon returning. Please indicate what is missing in the following ajax call and / or controller function to spawn the zip file download. jQuery.ajax({method:'get',url:'{{=URL('download_data')}}', data:fileIDs,

[web2py] Re: Has anyone integrated user-driven multiprocessing?

2015-09-18 Thread Phillip
My basic interpretation: The scheduler shouldn't be managed by the webserver (shouldn't be controlled by user requests) which could basically create zombie processess and / or will drop long-running processes. If you see no reason the scheduler shouldn't work for this purpose (while

[web2py] Re: Has anyone integrated user-driven multiprocessing?

2015-09-18 Thread Phillip
If I understand, using the scheduler in my case would only be a viable option for my own processing purposes, not multiple users. If so, it appears that my only option would be to export a downloadable desktop version of the interface to be used for this processing. If I am at all offtrack

[web2py] Re: Has anyone integrated user-driven multiprocessing?

2015-09-16 Thread Phillip
Are you saying that workers should be started before any tasks are queued (by an arbitrary number of users) which will be running for an arbitrary amount of time? If the answer is no Here is the set up: There is a grid of files from which a user can generate 'offspring' files in all possible

[web2py] Has anyone integrated user-driven multiprocessing?

2015-09-15 Thread Phillip
It is my understanding that, despite being able to queue tasks from the controller, workers can only be started from the command line (perhaps a security issue?). I have a long-running python script that needs to be executed by the user for many files. Multiprocessing is essential. Based on

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

2015-09-09 Thread Phillip
*Please see top post (9-9-15)* -- 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 message because you are subscribed to the Google Groups

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

2015-09-09 Thread Phillip
It appears that no workers are being started with my queuing the tasks in this manner. If they can't be started in the controller or if they were expected to be started with the above code, please let me know. Otherwise, sincere thanks for all of your posts, in general, with Web2py --

[web2py] Re: How do I start the (workers of) queued tasks?

2015-09-07 Thread Phillip
*9-6-15: *The following code was expecting the scheduler to automatically start the queued workers: for dataID in dataIDs: scheduler.queue_task(ImportData, [dataID], immediate=True, timeout=100) # tried without immediate # tried db.commit() after the loop or

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

2015-09-01 Thread Phillip
Thank you. A very helpful response. -- 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 message because you are subscribed to the Google

[web2py] Is this use of the scheduler correct?

2015-08-23 Thread Phillip
My goal is to use the scheduler to concurrently process as many files as possible (thousands, for instance). My tasks are defined in a module, not model. In the view, a potentially large number of items are selected which triggers the callback and process below. *note: *in the function

Re: [web2py] When using multiple upload, how can I send all files at once?

2015-08-04 Thread Phillip
On Tue, Aug 4, 2015 at 1:44 PM, Phillip philli...@gmail.com javascript: wrote: I am using fileuploader.js trying to implement the web2py cookbook example jQuery-File-Upload has the singleFileUploads option to send all files at once instead of making an upload request for each file *note

[web2py] When using multiple upload, how can I send all files at once?

2015-08-04 Thread Phillip
I am using fileuploader.js trying to implement the web2py cookbook example jQuery-File-Upload has the singleFileUploads option to send all files at once instead of making an upload request for each file *note: *I have already tried the jQuery-File-Upload, but was receiving a server/php 404

[web2py] Re: Multiple Uploads using jQuery-File-Upload: Javascript/CSS Conflict?

2015-08-04 Thread Phillip
Has anyone had the 404 error (where server/php is called)? I do not know where to trace this to. -- 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

[web2py] Upload multiple files and do background processing

2015-07-28 Thread Phillip
I need directions for properly executing the following Drop a window for selecting multiple files for upload Process the files in the controller (ideally using the scheduler to prevent the application from hanging) Since it appears that the processing must occur after all files

[web2py] Re: Is this the right way to encode downloaded files with base64?

2015-07-26 Thread Phillip
instead of a basic ASCII string. A novice, it looks like loads are for Python, not Javascript; Since there is not an object_hook encoder for dumps, I am unaware of how to get the string 'as is' to javascript. Please let me know if you need any other info from me. Thanks, Phillip

[web2py] Re: Is this the right way to encode downloaded files with base64?

2015-07-25 Thread Phillip
are you trying to do? On Wednesday, 22 July 2015 01:34:05 UTC-5, Phillip wrote: In the controller in a json service function, I download a stored file of type 'upload' as follows: filecontents = URL('download', args=db.s_files[1].s_file) encoded = base64.b64encode(filecontents) return

[web2py] Re: Is powertable a viable option for this customization?

2015-07-23 Thread Phillip
The table should reference files that will be small, but may be used as a basis (perhaps in all possible combinations) for the creation of more files. So essentially the table should be used for streaming and adding records, ideally with extensible row customization for other features. While

[web2py] Slickgrid header is blocked when layout.html is extended

2015-07-09 Thread Phillip
It seems there should be a simple solution or others with a similar problem, but I can't find anything on this. I need to extend layout to keep the menu, but this replaces the header of the page using Slickgrid (which contains all of the column titles). Please let me know if you need anything

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-09 Thread Phillip
The first processing is the importing of files which is intensive due to collecting data on pattern recognition in the files. Similarly, the processing intensiveness (on stored files after unpickling them) will be high in application due to extrapolation of the collected data. Larger files may

[web2py] Re: Where to call python code for processing (embedded as JS or in controllers)?

2015-07-08 Thread Phillip
of embedding as JS On Tuesday, July 7, 2015 at 5:40:39 PM UTC-4, Phillip wrote: I am having trouble finding anything definitive here. Please help if you have any input, even if short. My goal is to prevent the server from doing the python processing. Is this incorrect?: If running

[web2py] Re: Scheduling and/or multiprocessing

2015-07-07 Thread Phillip
as the process calling multiprocess waits for the spawned process. There may be issue with the database connection maintained by the process. Try it and let us know. On Monday, 6 July 2015 10:22:10 UTC-5, Phillip wrote: It is my understanding that if only multiprocessing is used to spawn processes

[web2py] Is the server or client processing Python in the controller?

2015-07-07 Thread Phillip
I assume python embedded into a view would be processed by the server. This would be useful to know to given the difficulty to say what CPU costs may be. If all is by default processed by the server, would delegating this processing to the client be viable? Any ideas appreciated --

[web2py] Where to call python code for processing (embedded as JS or in controllers)?

2015-07-07 Thread Phillip
, etc. Am I on the right track? Thanks, Phillip K -- 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 message because you

[web2py] Is pickling custom objects the only or best method of storage?

2015-07-06 Thread Phillip
Instead of having to frequently unpickle data, Is there a way to store custom objects (e.g. VirtualFields) in Web2py such that their specifics can be queried? If so, would not pickling decrease performance? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Scheduling and/or multiprocessing

2015-07-06 Thread Phillip
It is my understanding that if only multiprocessing is used to spawn processes, the processes are at risk of being killed (depending on their time lapse). Are there any reasons Web2py's scheduler would have problems scheduling a python script that uses multiprocessing? Thanks --

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-07-03 Thread Phillip Veda
sense to embed my python code as JS in web2py. Does anyone have experience with this sort of interface deployment (converting web2py app to wxPython, and successfully communicating back and forth with the server/database)? On Sunday, June 28, 2015 at 4:41:57 PM UTC-5, Phillip Veda wrote: I

[web2py] PowerTable plugin: layout broken (live not a function).

2015-07-03 Thread Phillip
The following link contains a solution to the first powerTable problem: charCodeAt is not a function https://groups.google.com/d/msg/web2py/iRTDzkIZMxc/CM0umjRzsuwJ I followed the steps that was said solved his problem (copy a different version of a js file to a folder and include the

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-07-01 Thread Phillip Veda
I should have clarified, in general, with web2py On Tuesday, June 30, 2015 at 2:37:55 AM UTC-5, Massimo Di Pierro wrote: I did not do it. Mariano (one of our oldest members) did it. On Tuesday, 30 June 2015 02:30:28 UTC-5, Phillip Veda wrote: I just happened accross gui2py last night. I had

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-06-30 Thread Phillip Veda
wrote: does this help? https://code.google.com/p/gui2py/ On Sunday, 28 June 2015 16:41:57 UTC-5, Phillip Veda wrote: I started a project in web2py aimed to store and manipulate user files, which at some point needs a dynamic GUI interface. Due to the intensive nature of the file processing

[web2py] GUI crossroads: Cappuccino and/or web2py

2015-06-28 Thread Phillip Veda
I started a project in web2py aimed to store and manipulate user files, which at some point needs a dynamic GUI interface. Due to the intensive nature of the file processing, I am unsure whether embedding this python code would be very price-sensitive as deployed to GAE with its server-side

[web2py] [Web2py] redirect doesn't work with 'tab' as var name

2015-03-24 Thread Phillip Parente
In controller, redirect is not working with 'tab' as var name: redirect(URL('mycontroller', 'index', vars={'tab':'DF03'})) is not working redirect(URL('mycontroller', 'index', vars={'tab2':'DF03'})) works fine Is that a bug? Phillip -- Resources: - http://web2py.com - http://web2py.com

[web2py] redirect with var name 'tab' doesn't work

2015-03-24 Thread Phillip Parente
Hello Guys, redirect with var name 'tab' doesn't work: redirect(URL('mycontroller', 'index', vars={'tab':'DF03'})) Is that a bug? redirect(URL('mycontroller', 'index', vars={'tab_with_another_string':'DF03'})) works fine! Thanks, -- Resources: - http://web2py.com -