[web2py] Regarding one Ajax call blocked by another Ajax call

2013-02-02 Thread Saransh Gupta
Hello, I have a web-app that is running on host A, it runs a few commands on another host B and i want to display the output of the commands running on B on a webpage present on A i.e. i want to create a kind of live streaming of B's console on a webpage present on A. For this what i did is I red

[web2py] Re: IDE plugin what to use?

2013-02-02 Thread Massimo Di Pierro
We have tried many options in the past. We always run into issues. codemirror is the only one that so, so far, has not had issues. It is used by github and this makes me think it will have decent long term support. Massimo On Saturday, 2 February 2013 18:55:56 UTC-6, samuel bonilla wrote: > >

[web2py] Re: how to get an excerpt from a link

2013-02-02 Thread Massimo Di Pierro
{{form gluon.contrib.autolinks import expand_html}} {{=XML(expand_html(your_html),cache.ram('mycachekey',lambda:dict(),3600)}} will do what you ask. Will expand all links not already tagged using the oembed protocol. On Saturday, 2 February 2013 18:33:42 UTC-6, sasogeek wrote: > > Not sure if I

[web2py] Re: Record versioning on delete CASCADE

2013-02-02 Thread Massimo Di Pierro
I should explain my answer. In order to have record versioning, record must be copied. To have a cascade delete we would have to loop and copy each individual record. Those records themselves could have references. More looping. etc. This are even more complex since there may be non-trivial cir

[web2py] Re: Record versioning on delete CASCADE

2013-02-02 Thread Massimo Di Pierro
It is possible but very very inefficient since it would not be handled at the database level. On Saturday, 2 February 2013 15:44:20 UTC-6, Felipe Meirelles wrote: > > I think they should, to be compatible with the default behaviour. Is this > possible to do? > > On Saturday, February 2, 2013 6:4

[web2py] Re: having a problem with the online editor

2013-02-02 Thread Niphlod
then try to install firebug in firefox and turn on the console to see the error in javascript (there should be one) On Saturday, February 2, 2013 8:24:13 PM UTC+1, JFroles wrote: > > Hmm thanks for the tip but no luck. Verified JavaScript in enabled as > well. Tried a few other minor things li

Re: [web2py] Re: create query for join multiple table

2013-02-02 Thread steve van christie
my purpose is to fetch all the data (company, invoices) of the user who created the invoices i mean the part that make me confuse is i think db.auth_user.company_id==company_id is same like db.auth_user.company_id==db.company.id how do you think? thank you so much for your detail explaination niph

[web2py] Re: IDE plugin what to use?

2013-02-02 Thread samuel bonilla
NINJA IDE (ninja-ide.org) El viernes, 1 de febrero de 2013 03:29:47 UTC-5, Mika Sjöman escribió: > > Hi > > I am totally new to web2py and thinking of skipping Django to get things > done in Web2py instead. But - I really like working in an IDE if possible. > > Is there any Eclipse web2py plug

[web2py] Re: IDE plugin what to use?

2013-02-02 Thread samuel bonilla
Sublime Text 2/3 (www.sublimetext.com)! or NINJA IDE (ninja-ide.org), are the best options El viernes, 1 de febrero de 2013 03:29:47 UTC-5, Mika Sjöman escribió: > > Hi > > I am totally new to web2py and thinking of skipping Django to get things > done in Web2py instead. But - I really like work

[web2py] Re: how to get an excerpt from a link

2013-02-02 Thread sasogeek
Not sure if I understand your questions but I guess I'll say html cos that's what I'm familiar with... :| On Saturday, 2 February 2013 20:44:25 UTC, Massimo Di Pierro wrote: > > It depends. In which format is the input? markmin, html? > > On Friday, 1 February 2013 22:15:13 UTC-6, sasogeek wrote:

[web2py] Re: looking for volunteers to help proof-read book 5th ed.

2013-02-02 Thread wwwgong
Massimo, Do you plan to add a section to briefly highlight the major revisions when the new edition of web2py book comes online? Thanks, Wen On Sunday, January 20, 2013 6:52:02 PM UTC-5, Massimo Di Pierro wrote: > > I am looking for help proofreading the final version of the book. It is > almost

[web2py] Re: RuntimeError: Unable to handle upload

2013-02-02 Thread Bill Thayer
Yes. That is what I meant. On Saturday, February 2, 2013 1:49:55 PM UTC-6, Alan Etkin wrote: > > Your code also threw the same error so before I un-commented the if >> statements in dal.py I added some print statements >> > > Did you try the store command as I posted it (passing pathname and > f

[web2py] Re: The Great Web Framework Shootout

2013-02-02 Thread OJ
Could you send it to me? Or did you mean that you don't have it anymore :) I tried to contact the author about it, but haven't heard from him. On Saturday, February 2, 2013 10:40:36 PM UTC+2, Massimo Di Pierro wrote: > > I do not recall. I do not see it there which is strange. > > On Saturday, 2

Re: [web2py] Re: contribute: db diagram for web2py appadmin

2013-02-02 Thread Arnon Marcus
There are many problems I can detect in this solution: 1. It is a code-generator - I was aiming for a file-format parser that implements the code, not generate it, and one that is built-into the DAL constructor, and uses conventions. I don't really care for auto-generated-comments, but I would lik

[web2py] Re: Record versioning on delete CASCADE

2013-02-02 Thread Felipe Meirelles
I think they should, to be compatible with the default behaviour. Is this possible to do? On Saturday, February 2, 2013 6:41:25 PM UTC-2, Massimo Di Pierro wrote: > > Good point. No. they are not set to is_active=False. Should they? > > On Saturday, 2 February 2013 06:20:47 UTC-6, Felipe Meirelle

[web2py] Re: contribute: db diagram for web2py appadmin

2013-02-02 Thread Jose
El sábado, 2 de febrero de 2013 13:30:49 UTC-3, Arnon Marcus escribió: > > It may be not directly related to this topic, but I have been thinking > about this for a long time now: > Writing database schemas in python in the model is very simple and > decorative. > Why not make it a declarative

[web2py] Re: how to get an excerpt from a link

2013-02-02 Thread Massimo Di Pierro
It depends. In which format is the input? markmin, html? On Friday, 1 February 2013 22:15:13 UTC-6, sasogeek wrote: > > I want to do something similar to how facebook reatcs to links... > let's say a user makes a post with a link in it (the post is not > necessarily just the link) > i want to be

[web2py] Re: Record versioning on delete CASCADE

2013-02-02 Thread Massimo Di Pierro
Good point. No. they are not set to is_active=False. Should they? On Saturday, 2 February 2013 06:20:47 UTC-6, Felipe Meirelles wrote: > > No, I mean, when a record is "delete" aka is_active is seted to False, the > other records there make reference to it are seted false too? > > On Friday, Febr

[web2py] Re: The Great Web Framework Shootout

2013-02-02 Thread Massimo Di Pierro
I do not recall. I do not see it there which is strange. On Saturday, 2 February 2013 05:24:05 UTC-6, OJ wrote: > > Massimo, where can I find your patch? I understood that you submitted > web2py -patch for the shootout. I'm currently interested to see how hw > aspect would have effect to results

[web2py] Re: Image store with open does not work on GAE

2013-02-02 Thread Massimo Di Pierro
This should work fine on GAE. Please show us your exact model. Are you testing with SDK? On Saturday, 2 February 2013 04:33:56 UTC-6, Sebastian Cambeo wrote: > > The following line of code works perfectly well locally (no GAE): > > db.table1.insert(image = open('test.jpg', 'rb') > > However it d

[web2py] Re: RuntimeError: Unable to handle upload

2013-02-02 Thread Alan Etkin
> Your code also threw the same error so before I un-commented the if > statements in dal.py I added some print statements > Did you try the store command as I posted it (passing pathname and filename) without changing dal.py? What is the error output? -- --- You received this message beca

[web2py] Re: Several questions - Scheduler Related

2013-02-02 Thread Morgan Hein
This answers all my questions! Thanks so much! On Saturday, February 2, 2013 11:15:28 AM UTC-8, Niphlod wrote: > > > > On Saturday, February 2, 2013 7:06:18 PM UTC+1, Morgan Hein wrote: >> >> So I am using the trunk version, and finally got scheduling to run, >> however i'm encountering several p

[web2py] Re: having a problem with the online editor

2013-02-02 Thread JFroles
Hmm thanks for the tip but no luck. Verified JavaScript in enabled as well. Tried a few other minor things like re-installing web2py but no luck and it's not Chrome specific because it happens in Firefox as well. On Saturday, February 2, 2013 2:03:13 PM UTC-5, Niphlod wrote: > > try a ctrl+R

[web2py] Re: how to run web2py on Mint 9

2013-02-02 Thread Alex Glaros
you're right Anthony I tried to run it from:/home/alex/web2py but there was a copy in /home/alex/Downloads/web2py that runs correctly thanks, Alex On Saturday, February 2, 2013 8:52:37 AM UTC-8, Alex Glaros wrote: > > no it's not there. There is a large list of gluon related files, e.g.

[web2py] Re: RuntimeError: Unable to handle upload

2013-02-02 Thread Bill Thayer
So I just replaced the first if statement with 'if True:' so that the code would execute. Looks like a unicode object does not have an attribute 'file' (InteractiveConsole) >>> import test_tamoto_rpc as trpc >>> trpc.upload_file() C:\Users\bthayer\Documents\car\carfiles.txt wiki_media.id wiki_m

[web2py] Is there a way to display field or field value (instead of field name) in smartgrid breadcrumb?

2013-02-02 Thread Michael Beller
I'm using smartgrids to manage Owners and Dogs. While navigating to the Dogs for an Owner from the Dogs smartgrid, the breadcrumb shows: " Owners> Joe> Dogs for f_owner" ... it would be much nicer to show: " Owners> Joe>Dogs for Owner" or " Owners> Joe>Dogs for Joe". It would also be nice f

[web2py] Re: Several questions - Scheduler Related

2013-02-02 Thread Niphlod
On Saturday, February 2, 2013 7:06:18 PM UTC+1, Morgan Hein wrote: > > So I am using the trunk version, and finally got scheduling to run, > however i'm encountering several problems (i'm assuming mostly due to my > lack of understanding). > > Problem A) First off, for a while, when the workers

[web2py] Re: RuntimeError: Unable to handle upload

2013-02-02 Thread Bill Thayer
Hi Alan, Just now getting back to this days later... Your code also threw the same error so before I un-commented the if statements in dal.py I added some print statements and can see the list of fields, then the name of the filename field as 'filename' followed by wiki_media.filename.9b724ad1

[web2py] Re: having a problem with the online editor

2013-02-02 Thread Niphlod
try a ctrl+R to refresh the page refetching all the static files. That visualization should happen only when javascript is disabled, which I guess it's not your case On Saturday, February 2, 2013 7:17:35 PM UTC+1, JFroles wrote: > > Hey all! I'm relatively new to web2py so I am guessing this is

[web2py] Issue with the online editor

2013-02-02 Thread JFroles
Hey all! I'm relatively new to web2py so this is most likely something simple I am missing but I've been having a problem with the online editor. For whatever reason it keeps loading what I assume to be a basic html text box (seen in the pic) instead of the actual editor and none of the ZenCo

[web2py] having a problem with the online editor

2013-02-02 Thread JFroles
Hey all! I'm relatively new to web2py so I am guessing this is a simple problem. For whatever reason web2py keeps loading what I assume to be a basic html text box instead of the actual editor (see screencap in pic) and none of the ZenCoding bindings work. Is there an option I am not seeing

[web2py] Several questions - Scheduler Related

2013-02-02 Thread Morgan Hein
So I am using the trunk version, and finally got scheduling to run, however i'm encountering several problems (i'm assuming mostly due to my lack of understanding). Problem A) First off, for a while, when the workers ran the database that showed results worked. However now, workers run my scrip

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread Bruno Rocha
You can also use Redis Queue http://rochacbruno.com.br/web2py-and-redis-queue/ -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegro

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread José Luis Redrejo Rodríguez
Niphlod Thanks very much , your "learn by trial" application has been gold for me. Catched!! 2013/2/2 Niphlod : > you must save somewhere in your "long_time_consuming_function()" the > progress and let the page show that. > > If you manage that function outside web2py (using the scheduler or not),

[web2py] Re: how to run web2py on Mint 9

2013-02-02 Thread Alex Glaros
no it's not there. There is a large list of gluon related files, e.g., lex@alex-desktop ~/web2py $ ls *gluon.widget* toc-web2py.gluon.widget-module.html web2py.gluon.widget-module.html web2py.gluon.widget.web2pyDialog-class.html web2py.gluon.widget.IO-class.htmlweb2py.gluon.widget-pysrc.ht

[web2py] Re: how to run web2py on Mint 9

2013-02-02 Thread Anthony
Is /web2py/gluon/widget.py there? On Saturday, February 2, 2013 11:25:30 AM UTC-5, Alex Glaros wrote: > > do you mean to cd to web2py folder? yes, I did that. Here is the error > > alex@alex-desktop ~/web2py $ python2.6 web2py.py > Traceback (most recent call last): > File "web2py.py", line 18

[web2py] Re: contribute: db diagram for web2py appadmin

2013-02-02 Thread Paolo Caruccio
thank you. package downloaded from [1] setup.py modified following istructions on [2] After setup.py install command all worked fine. Il giorno sabato 2 febbraio 2013 14:03:09 UTC+1, Jose ha scritto: > > > > El viernes, 1 de febrero de 2013 15:50:43 UTC-3, Paolo Caruccio escribió: >> >> Jose. t

[web2py] Re: contribute: db diagram for web2py appadmin

2013-02-02 Thread Arnon Marcus
It may be not directly related to this topic, but I have been thinking about this for a long time now: Writing database schemas in python in the model is very simple and decorative. Why not make it a declarative format? This way, it can be designed and updated with this kind of GUI tooling, as a

[web2py] Re: how to run web2py on Mint 9

2013-02-02 Thread Alex Glaros
do you mean to cd to web2py folder? yes, I did that. Here is the error alex@alex-desktop ~/web2py $ python2.6 web2py.py Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget ImportError: No module named gluon.widget thanks, Alex On Saturday, February 2, 2

Re: [web2py] Re: create query for join multiple table

2013-02-02 Thread Niphlod
On Saturday, February 2, 2013 2:07:15 AM UTC+1, 黄祥 wrote: > > thank you so much for your hints niphlod. > yes you re right that i want is "all data of the company the current user > belongs to" > actually i've just modified your hints and works well > > def invoice(): > query=db(db.sale.invo

[web2py] Re: Adding a scheduled task using the scheduler results in db error.

2013-02-02 Thread Niphlod
if your db is istantiated with check_reserved=['all'] then you need to fetch the gluon/scheduler.py from trunk and use that, because in 2.3.2 stable the column names of the scheduler's table are not compatible. On Saturday, February 2, 2013 5:44:01 AM UTC+1, Morgan Hein wrote: > > Massimo, > >

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread Niphlod
you must save somewhere in your "long_time_consuming_function()" the progress and let the page show that. If you manage that function outside web2py (using the scheduler or not), you need something readable by your page and writeable by the external process. A record on the db, a file, somethi

[web2py] Re: contribute: db diagram for web2py appadmin

2013-02-02 Thread Jose
El viernes, 1 de febrero de 2013 15:50:43 UTC-3, Paolo Caruccio escribió: > > Jose. thank you too for the amazing idea to draw a graph of the database. > > I take the opportunity to ask you where I can download a working > pygraphviz build for windows. > > Tried with this [1] or [2]? [1] http:

[web2py] Re: The Great Web Framework Shootout

2013-02-02 Thread OJ
Massimo, where can I find your patch? I understood that you submitted web2py -patch for the shootout. I'm currently interested to see how hw aspect would have effect to results and I need web2py to be part of it. On Monday, February 20, 2012 3:51:36 PM UTC+2, Massimo Di Pierro wrote: > > I did

[web2py] Re: how to run web2py on Mint 9

2013-02-02 Thread Anthony
Change directory to the /web2py folder and then enter the command. Anthony On Saturday, February 2, 2013 2:28:37 AM UTC-5, Alex Glaros wrote: > I have Mint 9 on my desktop > > when I type python2.5 web2py.py I get: no command 'python2.5' found > > when I type python web2py.py I get: importError

Re: [web2py] Re: Pattern to run async proccess

2013-02-02 Thread José Luis Redrejo Rodríguez
I've been studying the scheduler, but I think it fails in one of the things I need: "The web page must be updated as the process is being done" i.e. if the scheduler is doiing some background task, I need to update the web page with the progress of the task, but I don't find how to do it with the s

[web2py] Re: Record versioning on delete CASCADE

2013-02-02 Thread Felipe Meirelles
No, I mean, when a record is "delete" aka is_active is seted to False, the other records there make reference to it are seted false too? On Friday, February 1, 2013 6:19:52 PM UTC-2, Massimo Di Pierro wrote: > > When using versioning. Latest versions of records are never deleted, only > filtered

[web2py] Re: Adding a scheduled task using the scheduler results in db error.

2013-02-02 Thread Morgan Hein
Massimo, Wow that's customer support. Thanks for the quick reply! However I am using 2.3.2, which is what is listed as the stable version. Do I need to download the experimental to get the scheduler to work? Also, is it possible for me to just delete the old tables, replace web2py, and it will

[web2py] LinkedIn?

2013-02-02 Thread Marin Pranjić
Hello, I am using this as a linkedin api but I don't like it. I guess the API has changed and it's not maintained anymore. Is there a better one? Marin -- --- You received this message because you are subscribed to the Google Groups "web2py-users

[web2py] Image store with open does not work on GAE

2013-02-02 Thread Sebastian Cambeo
The following line of code works perfectly well locally (no GAE): db.table1.insert(image = open('test.jpg', 'rb') However it does not work on GAE: As the filesystem has no permission to write, this line of code should automatically upload the blob data into "image_blob". However "image_blob" r