[web2py] web2py DAL one-to-one relation

2012-09-10 Thread martzi
Hi,
I wonder if there a way to enforce a one to one relationship with Cascade 
via web2py  DAL API. ???

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
Thanks for the reply. I have tried it, ondelete=CASCADE worked, but the 
referenced table seems to be accepting multiple entries ... one-to-many 
relation. Are there ways to prevent this from occurring ? 

On Monday, September 10, 2012 2:43:55 PM UTC+2, Massimo Di Pierro wrote:
>
> Field('','reference other_table',ondelete='CASCADE')
>
> this is actually the default. Is this what you are asking?
>
> On Monday, 10 September 2012 05:45:28 UTC-5, martzi wrote:
>>
>> Hi,
>> I wonder if there a way to enforce a one to one relationship with Cascade 
>> via web2py  DAL API. ???
>>
>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
Thanks for the reply. But if you meant Field('','reference 
other_table', unique=True), I have tried that with failure, i am still 
having a one-to-many relation. FYI: Regarding CASCADE, an  ondelete cascade 
causes deletion of all referred data.

On Tuesday, September 11, 2012 1:37:59 PM UTC+2, villas wrote:
>
> I may be wrong,  but I do not think Cascade could assist you with 
> enforcing a 1-1 relationship. 
> Maybe making the foreign key field unique would help?
>
>
> On Monday, September 10, 2012 11:45:28 AM UTC+1, martzi wrote:
>>
>> Hi,
>> I wonder if there a way to enforce a one to one relationship with Cascade 
>> via web2py  DAL API. ???
>>
>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
Unique = True,  has probably no effect. see below.
...
>>> db = DAL('sqlite://storage.db')
>>> person = db.define_table('person', Field('name'))
>>> bodypart = db.define_table('bodypart', Field('name'), Field('owner', 
'reference person', unique=True)) #unique= True seems to have no effect
>>> pid = person.insert(name='Sid')
>>> bpid = bodypart.insert(name='arms', owner= pid) #pid = 1
>>> bodypart(bpid).owner #bpid = 1, first insertion of owner as 1
1
>>> bpid = bodypart.insert(name='mouth', owner= pid) # multiple entries not 
caught, pid is still 1
>>> bodypart(bpid).owner #bpid = 2, second insertion of owner as 1 AGAIN
1

On Tuesday, September 11, 2012 2:22:09 PM UTC+2, villas wrote:
>
> I am quite familiar with cascade;  I just couldn't figure out how it could 
> assist you.
>
> In my opinion,  Field('','reference other_table', unique=True)  should 
> be supported and work.  Maybe you added the constraint later and the DB 
> didn't accept it because you already had duplicated field contents.
>
> In any case,  even if unique=True is not working for the moment,  then a 
> work-around would be to make a unique index on the field yourself.  You'll 
> have to handle exceptions when the insert/update fails due to duplicate 
> keys.
>
>
>
>
> On Tuesday, September 11, 2012 12:48:49 PM UTC+1, martzi wrote:
>>
>> Thanks for the reply. But if you meant Field('','reference 
>> other_table', unique=True), I have tried that with failure, i am still 
>> having a one-to-many relation. FYI: Regarding CASCADE, an  ondelete cascade 
>> causes deletion of all referred data.
>>
>> On Tuesday, September 11, 2012 1:37:59 PM UTC+2, villas wrote:
>>>
>>> I may be wrong,  but I do not think Cascade could assist you with 
>>> enforcing a 1-1 relationship. 
>>> Maybe making the foreign key field unique would help?
>>>
>>>
>>> On Monday, September 10, 2012 11:45:28 AM UTC+1, martzi wrote:
>>>>
>>>> Hi,
>>>> I wonder if there a way to enforce a one to one relationship with 
>>>> Cascade via web2py  DAL API. ???
>>>>
>>>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
I don't get you, could give an InteractiveConsole example, to illustrate 
your idea.

On Tuesday, September 11, 2012 3:39:53 PM UTC+2, villas wrote:
>
> I think it does have some effect.  
> I suspect that your existing data may not be unique.  
> See whether the following helps:
>
>- If using commandline,  try with db.commit() after.
>- Try with a new table.
>- Look in databases/sql.log and see whether the field was created with 
>UNIQUE.
>- Use a DB management tool to inspect your DB.
>
>
>
> On Tuesday, September 11, 2012 2:23:16 PM UTC+1, martzi wrote:
>>
>> Unique = True,  has probably no effect. see below.
>> ...
>> >>> db = DAL('sqlite://storage.db')
>> >>> person = db.define_table('person', Field('name'))
>> >>> bodypart = db.define_table('bodypart', Field('name'), Field('owner', 
>> 'reference person', unique=True)) #unique= True seems to have no effect
>> >>> pid = person.insert(name='Sid')
>> >>> bpid = bodypart.insert(name='arms', owner= pid) #pid = 1
>> >>> bodypart(bpid).owner #bpid = 1, first insertion of owner as 1
>> 1
>> >>> bpid = bodypart.insert(name='mouth', owner= pid) # multiple entries 
>> not caught, pid is still 1
>> >>> bodypart(bpid).owner #bpid = 2, second insertion of owner as 1 AGAIN
>> 1
>>
>> On Tuesday, September 11, 2012 2:22:09 PM UTC+2, villas wrote:
>>>
>>> I am quite familiar with cascade;  I just couldn't figure out how it 
>>> could assist you.
>>>
>>> In my opinion,  Field('','reference other_table', unique=True)  
>>> should be supported and work.  Maybe you added the constraint later and the 
>>> DB didn't accept it because you already had duplicated field contents.
>>>
>>> In any case,  even if unique=True is not working for the moment,  then a 
>>> work-around would be to make a unique index on the field yourself.  You'll 
>>> have to handle exceptions when the insert/update fails due to duplicate 
>>> keys.
>>>
>>>
>>>
>>>
>>> On Tuesday, September 11, 2012 12:48:49 PM UTC+1, martzi wrote:
>>>>
>>>> Thanks for the reply. But if you meant Field('','reference 
>>>> other_table', unique=True), I have tried that with failure, i am still 
>>>> having a one-to-many relation. FYI: Regarding CASCADE, an  ondelete 
>>>> cascade 
>>>> causes deletion of all referred data.
>>>>
>>>> On Tuesday, September 11, 2012 1:37:59 PM UTC+2, villas wrote:
>>>>>
>>>>> I may be wrong,  but I do not think Cascade could assist you with 
>>>>> enforcing a 1-1 relationship. 
>>>>> Maybe making the foreign key field unique would help?
>>>>>
>>>>>
>>>>> On Monday, September 10, 2012 11:45:28 AM UTC+1, martzi wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I wonder if there a way to enforce a one to one relationship with 
>>>>>> Cascade via web2py  DAL API. ???
>>>>>>
>>>>>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
FYI : putting all the fields in one table will result to multiple columns 
...

On Tuesday, September 11, 2012 5:31:37 PM UTC+2, Anthony wrote:
>
> Why do you want a one-to-one relation? Can't you just put all the fields 
> in one table?
>
> Anthony
>
> On Tuesday, September 11, 2012 9:23:16 AM UTC-4, martzi wrote:
>>
>> Unique = True,  has probably no effect. see below.
>> ...
>> >>> db = DAL('sqlite://storage.db')
>> >>> person = db.define_table('person', Field('name'))
>> >>> bodypart = db.define_table('bodypart', Field('name'), Field('owner', 
>> 'reference person', unique=True)) #unique= True seems to have no effect
>> >>> pid = person.insert(name='Sid')
>> >>> bpid = bodypart.insert(name='arms', owner= pid) #pid = 1
>> >>> bodypart(bpid).owner #bpid = 1, first insertion of owner as 1
>> 1
>> >>> bpid = bodypart.insert(name='mouth', owner= pid) # multiple entries 
>> not caught, pid is still 1
>> >>> bodypart(bpid).owner #bpid = 2, second insertion of owner as 1 AGAIN
>> 1
>>
>> On Tuesday, September 11, 2012 2:22:09 PM UTC+2, villas wrote:
>>>
>>> I am quite familiar with cascade;  I just couldn't figure out how it 
>>> could assist you.
>>>
>>> In my opinion,  Field('','reference other_table', unique=True)  
>>> should be supported and work.  Maybe you added the constraint later and the 
>>> DB didn't accept it because you already had duplicated field contents.
>>>
>>> In any case,  even if unique=True is not working for the moment,  then a 
>>> work-around would be to make a unique index on the field yourself.  You'll 
>>> have to handle exceptions when the insert/update fails due to duplicate 
>>> keys.
>>>
>>>
>>>
>>>
>>> On Tuesday, September 11, 2012 12:48:49 PM UTC+1, martzi wrote:
>>>>
>>>> Thanks for the reply. But if you meant Field('','reference 
>>>> other_table', unique=True), I have tried that with failure, i am still 
>>>> having a one-to-many relation. FYI: Regarding CASCADE, an  ondelete 
>>>> cascade 
>>>> causes deletion of all referred data.
>>>>
>>>> On Tuesday, September 11, 2012 1:37:59 PM UTC+2, villas wrote:
>>>>>
>>>>> I may be wrong,  but I do not think Cascade could assist you with 
>>>>> enforcing a 1-1 relationship. 
>>>>> Maybe making the foreign key field unique would help?
>>>>>
>>>>>
>>>>> On Monday, September 10, 2012 11:45:28 AM UTC+1, martzi wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I wonder if there a way to enforce a one to one relationship with 
>>>>>> Cascade via web2py  DAL API. ???
>>>>>>
>>>>>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-11 Thread martzi
Thanks for the reply. But db.executesql('create unique index idx_owner on 
bodypart(owner)') returned the below error, and still didn't solve the 
problem.
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/martin/Documents/web2py2/gluon/dal.py", line 7234, in 
executesql
adapter.execute(query)
  File "/home/martin/Documents/web2py2/gluon/dal.py", line 1659, in execute
return self.log_execute(*a, **b)
  File "/home/martin/Documents/web2py2/gluon/dal.py", line 1653, in 
log_execute
ret = self.cursor.execute(*a, **b)
IntegrityError: indexed columns are not unique

On Tuesday, September 11, 2012 5:17:54 PM UTC+2, villas wrote:
>
> Add this line as a test:
>
> db.executesql('create unique index idx_owner on bodypart(owner)')
>
> to your code like this:
>
> db = DAL('sqlite://storage.db')
> person = db.define_table('person', Field('name'))
> bodypart = db.define_table('bodypart', Field('name'), Field('owner', 
> 'reference 
> person', unique=True)) 
> db.executesql('create unique index idx_owner on bodypart(owner)')
> pid = person.insert(name='Sid')
> bpid = bodypart.insert(name='arms', owner= pid) 
> bodypart(bpid).owner 
> bpid = bodypart.insert(name='mouth', owner= pid) 
> bodypart(bpid).owner 
>
>
>

-- 





[web2py] Re: web2py DAL one-to-one relation

2012-09-12 Thread martzi
Thanks to all members that shared their ideas with me:
I was able to the solve my problem  after setting foreign_keys attribute to 
on :

sqlite> PRAGMA foreign_keys;
0
sqlite> PRAGMA foreign_keys = ON;
sqlite> PRAGMA foreign_keys;
1


On Monday, September 10, 2012 12:45:28 PM UTC+2, martzi wrote:
>
> Hi,
> I wonder if there's a way to enforce a one to one relationship with 
> Cascade via web2py  DAL API. ???
>

-- 





[web2py] logic bug in web2py manual (p. 340) ?

2012-09-14 Thread martzi
Hi all : The below code snippet in web2py manual (p. 340), isn't resulting 
to the expected output.
def list_records():
  table = request.args(0)   #returns db
  query = request.vars.query #db.dog.owner == 1
  records = db(query).select(db[table].ALL)  # db("...") requires 
"owner==1" as parameter
  return dict(records=records) 

This seems to work:

def list_records():
  table = request.args(1)
  query = request.vars.query.split('.')[-1]
  records = db(query).select(db[table].ALL)
  return dict(records=records)

-- 





[web2py] Typo error web2py manual (p. 434) ?

2012-09-14 Thread martzi
db.define_model('animal',
  Field('species'),
  Field('genus'),
  Field('family'))

I suppose db.define_table.

-- 





[web2py] Disabling text input onclick glow effect.

2012-09-16 Thread martzi
Hi all, I wonder if the text input glow effect on click could be disable.

-- 





[web2py] Display control effects.

2012-09-16 Thread martzi
Hi all, I wonder what's the best way to disable html controls default 
effects. without modifying bootstrap.min.css.

-- 





[web2py] Disabling Html control effects and default attributes.

2012-09-16 Thread martzi
Hi all, I wonder what's the best way to disable html controls effects / 
default attributes. without modifying bootstrap.min.css.

-- 





[web2py] Re: pagination with web2py

2012-10-08 Thread martzi
I suggest you download a copy of the web2py manual 
(http://web2py.com/book). Read and run the snippet on pagination.
with a some tweaks you could as well achieve an infinite scroll pagination.


On Thursday, October 4, 2012 4:16:00 PM UTC+2, Paulo Donizeti Gardinalli 
Filho wrote:
>
> hi, I am starting to use web2py and I am very impressive with his 
> facilities. I am a visualy empaired user and this framework is helping 
> me. 
>
> my dought is: How can I use pagination with web2py? 
> thanks in advance! 
> paulo 
>

-- 





[web2py] Re: extend with an if condition

2012-10-14 Thread martzi


On Sunday, October 14, 2012 2:52:03 PM UTC+2, qwer qwer wrote:
>
> is it not possible?
> {{if condition:}}
> {{extends 'layout1.html'}}
> {{else:}}
> {{extends 'layout2.html'}}  thanks
>

-- 





[web2py] Re: extend with an if condition

2012-10-14 Thread martzi
Yes it is. nothing prevents you from testing it out.

On Sunday, October 14, 2012 2:52:03 PM UTC+2, qwer qwer wrote:
>
> is it not possible?
> {{if condition:}}
> {{extends 'layout1.html'}}
> {{else:}}
> {{extends 'layout2.html'}}  thanks
>

-- 





[web2py] Re: Quickest way to learn web2py

2012-10-14 Thread martzi
First,  you have to program a fair bit in python. There are many online 
tutorials easy to grasp. Choose anyone that suits your reading.

Personally the online book, http://web2py.com/book is the best resource so 
far, read the chapters on the Core. (I like response / request )
After all what you will be doing is a bunch of requests and responses (html 
controls gets input makes a request, python code processes the request, 
sends a response to the browser , then you present the response output with 
html and or javascript) Read it repeatedly that's the secret!
when you're comfortable enough try get a copy of web2py Application 
Development Cookbook. have fun !

On Friday, October 12, 2012 6:43:25 PM UTC+2, Sponona wrote:
>
> Can any1 tell me quickest way to learn all the essential stuff of web2py 
> in detail?
> Any books or video-tutorials?
> The documentation is too large and is too frustrating to read.
>
>

-- 





[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread martzi
Many thanks Massimo web2py is here to stay !

On Monday, October 15, 2012 1:55:39 PM UTC+2, Massimo Di Pierro wrote:
>
> Changelog:
>
> - overall faster web2py
> - when apps are deleted, a w2p copy left in deposit folder
> - change in cron (it is now disabled by default). removed -N option and 
> introdu\
> ced -Y.
> - faster web2py_uuid() and request initialization logic, thanks Michele
> - static asset management, thanks Niphlod
> - improved mobile admin
> - request.requires_https and Auth(secure=True), thanks Yarin and Niphlod
> - better custom_import (works per app and is faster), thanks Michele
> - redis_sesssion.py, thanks Niphlod
> - allow entropy computation in IS_STRONG and web2py.js, thanks Jonathan 
> and Nip\
> hlod
> - fixed many aith.wiki problems
> - support for auth.wiki(render='html')
> - better welcome layout, thanks Paolo
> - db.define_table(...,redefine=True)
> - DAL, Row, and Rows object can now be pickled/unpickled, thanks to zombie 
> DAL.
> - admin uses codemirror
> - allow syntax auth = Auth(db).define_tables()
> - better auth.wiki with preview, thanks Alan
> - better auth.impersonate, thanks Alan
> - upgraded jQuery 1.8
> - upgraded Bootstrap 2.1
> - fixed problems with dropbox_account.py
> - many fixes to cache.ram, cache.disk, memcache and gae_memcache
> - cache.with_prefix(cache.ram,'prefix')
> - db.table.field.epoch() counts seconds from epoch
> - DAL support for SQL CASE, example: 
> db().select(...query.case('true','false))
> - DAL(...,do_connect=False) allows faking connections
> - DAL(...,auto_import=True) now retieves some fiel attributes
> - mail can specify a sender: mail.send(...,sender='Mr X <%(sender)s>')
> - renamed gluon/contrib/comet_messaging.py -> 
> gluon/contrib/websocket_messaging.py
>
> Please check it and report any problem.
> As usual, thanks to the many people who have contributed, in particular 
> Michele and Niphlod.
>
> Massimo
>

-- 





[web2py] Web2py 2.1.1 csv import bug or ?

2012-10-17 Thread martzi
Hello all,

I have being trying to import a csv data to a DAL database and this is what 
i get:

Traceback 

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Traceback (most recent call last):
  File "/home/xxx/Documents/web2py211/gluon/restricted.py", line 209, in 
restricted
exec ccode in environment
  File "/home/xxxDocuments/web2py211/applications/appx/controllers/appadmin.py" 
,
 line 447, in 
  File "/home/xxx/Documents/web2py211/gluon/globals.py", line 187, in 
self._caller = lambda f: f()
  File 
"/home/xxx/Documents/web2py211/applications/appx/controllers/appadmin.py" 
,
 line 255, in select
tb = tb,
UnboundLocalError: local variable 'tb' referenced before assignment

...
 Has anyone come across similar problem ?

-- 





[web2py] Auto-completion and the ajax function bug web2py manual (p. 472 )

2012-10-22 Thread martzi
Hi all,
following the example on auto-completion in web2py manual, there seems to 
be a "bug" using the ajax function with parameterized url.
accessing the page normally in my case with 
 (http://127.0.0.1:8000/AjaxApp/default/month_input) works fine.
but  accessing the page with args say 1,  like so =>( 
http://127.0.0.1:8000/AjaxApp/default/month_input/1 ) something weird 
happened.

Please has anyone experienced across the same problem ?

-- 





[web2py] Re: Auto-completion and the ajax function bug web2py manual (p. 472 )

2012-10-22 Thread martzi
Possible solution: use  vars=dict(id=*row.id*) instead of args=*row.id* in 
this case the Url will be something like this
 
http://127.0.0.1:8000/AjaxApp/default/month_input?id=1<http://127.0.0.1:8000/AjaxApp/default/month_input/1>
05 this will enable the auto-completion to work across any page where it's 
used with parameterized url.*
*
On Monday, October 22, 2012 4:51:47 PM UTC+2, martzi wrote:
>
> Hi all,
> following the example on auto-completion in web2py manual, there seems to 
> be a "bug" using the ajax function with parameterized url.
> accessing the page normally in my case with  (
> http://127.0.0.1:8000/AjaxApp/default/month_input) then try typing any 
> month of the year - works fine.
> but  accessing the page with args say 1,  like so =>( 
> http://127.0.0.1:8000/AjaxApp/default/month_input/1 ) then try typing any 
> month of the year and something weird happens.
>
> Please has anyone experienced across the same problem ?
>

-- 





[web2py] Data not inserting via ajax after login. web2py 2.3.2

2013-01-28 Thread martzi
Hi all,
I wonder is am doing something wrong. creating a user (normal user), i 
tried inserting into a database from a custom form, But the values aren't 
inserting, and not errors is generated.
But when i leave the field empty, i get an error message.
please could anyone help!

controller:
def ajax_create():
  return dict()

@auth.requires_login()
def create_company():
  form = SQLFORM(db.compan)
  if form.accepts(request,formname=None):
record = db(db[request.vars.tname]['id'] == form.vars.id).select()
return "show(%s);" % (repr(record)) 
  elif form.errors:
return "show(%s)" % repr('error')

view:
ajax_create.html

{{extend 'layout.html'}}

Name of company:



function show(text){
alert(text)
}
$('#fsubmit').click(function(){
ajax('create_company', ['name'], ':eval')
})



-- 

--- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
Thank all for your replies...
PN i like you solution, I am going to try it and let you know if it 
worked...
Thanks to all for yo help!

On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>
> You can also use web2py components (see the chapter titled 'Components and 
> Plugins' in the web2py book). Basically first make a normal web2py page 
> that reads the remote API every time the page is loaded, and displays the 
> results. Then, load this page as a component into another page, and specify 
> the 'timeout' parameter of the component so that it reloads every 30 
> seconds. You will not have to do any of the ajax/js yourself this way.
>
> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>
>> Hi all,
>> Please could anyone help me out, I need to pull some data from some API 
>> (ex: https//xxx/aaa/ etc.) every 30s and then display the result in a ti
>> cker
>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>
>> Thank you.
>>
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
I like the idea of tornado, I have seen some cool site running tornado... 
but I don't really know where and how to start with it. i am on webfactory.
Any idea on how to get it done ?

Thank you!

On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>
> Another stupid solution
> use websockets (tornado) and this way you can publish data every 30 s to 
> the webpage from the server to the client connectect.
>
>
>
>
>
> 2014-03-21 10:08 GMT+00:00 martzi >:
>
>> Thank all for your replies...
>> PN i like you solution, I am going to try it and let you know if it 
>> worked...
>> Thanks to all for yo help!
>>
>>
>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>
>>> You can also use web2py components (see the chapter titled 'Components 
>>> and Plugins' in the web2py book). Basically first make a normal web2py page 
>>> that reads the remote API every time the page is loaded, and displays the 
>>> results. Then, load this page as a component into another page, and specify 
>>> the 'timeout' parameter of the component so that it reloads every 30 
>>> seconds. You will not have to do any of the ajax/js yourself this way.
>>>
>>> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>>>
>>>> Hi all,
>>>> Please could anyone help me out, I need to pull some data from some API 
>>>> (ex: https//xxx/aaa/ etc.) every 30s and then display the result in a ti
>>>> cker
>>>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>>>
>>>> Thank you.
>>>>
>>>  -- 
>> 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-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
Thanks a lot i am going though and will let you know!

On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>
> see this video from Bruno Rocha
> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>
> Saved my life once...
>
>
> 2014-03-21 10:35 GMT+00:00 martzi >:
>
>> I like the idea of tornado, I have seen some cool site running tornado... 
>> but I don't really know where and how to start with it. i am on webfactory.
>> Any idea on how to get it done ?
>>
>> Thank you!
>>
>>
>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>
>>> Another stupid solution
>>> use websockets (tornado) and this way you can publish data every 30 s to 
>>> the webpage from the server to the client connectect.
>>>
>>>
>>>
>>>
>>>
>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>
>>>>  Thank all for your replies...
>>>> PN i like you solution, I am going to try it and let you know if it 
>>>> worked...
>>>> Thanks to all for yo help!
>>>>
>>>>
>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>
>>>>> You can also use web2py components (see the chapter titled 'Components 
>>>>> and Plugins' in the web2py book). Basically first make a normal web2py 
>>>>> page 
>>>>> that reads the remote API every time the page is loaded, and displays the 
>>>>> results. Then, load this page as a component into another page, and 
>>>>> specify 
>>>>> the 'timeout' parameter of the component so that it reloads every 30 
>>>>> seconds. You will not have to do any of the ajax/js yourself this way.
>>>>>
>>>>> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>>>>>
>>>>>> Hi all,
>>>>>> Please could anyone help me out, I need to pull some data from some 
>>>>>> API (ex: https//xxx/aaa/ etc.) every 30s and then display the result in 
>>>>>> a ti
>>>>>> cker
>>>>>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>  -- 
>>>> 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-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to web2py+un...@googlegroups.com.
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> 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-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
Ramos, is there an English version of the videos ? I don't understand 
Portuguese ...

On Friday, March 21, 2014 12:56:14 PM UTC+2, martzi wrote:
>
> Thanks a lot i am going though and will let you know!
>
> On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>>
>> see this video from Bruno Rocha
>> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>>
>> Saved my life once...
>>
>>
>> 2014-03-21 10:35 GMT+00:00 martzi :
>>
>>> I like the idea of tornado, I have seen some cool site running 
>>> tornado... but I don't really know where and how to start with it. i am on 
>>> webfactory.
>>> Any idea on how to get it done ?
>>>
>>> Thank you!
>>>
>>>
>>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>>
>>>> Another stupid solution
>>>> use websockets (tornado) and this way you can publish data every 30 s 
>>>> to the webpage from the server to the client connectect.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>>
>>>>>  Thank all for your replies...
>>>>> PN i like you solution, I am going to try it and let you know if it 
>>>>> worked...
>>>>> Thanks to all for yo help!
>>>>>
>>>>>
>>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>>
>>>>>> You can also use web2py components (see the chapter titled 
>>>>>> 'Components and Plugins' in the web2py book). Basically first make a 
>>>>>> normal 
>>>>>> web2py page that reads the remote API every time the page is loaded, and 
>>>>>> displays the results. Then, load this page as a component into another 
>>>>>> page, and specify the 'timeout' parameter of the component so that it 
>>>>>> reloads every 30 seconds. You will not have to do any of the ajax/js 
>>>>>> yourself this way.
>>>>>>
>>>>>> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>>>>>>
>>>>>>> Hi all,
>>>>>>> Please could anyone help me out, I need to pull some data from some 
>>>>>>> API (ex: https//xxx/aaa/ etc.) every 30s and then display the result in 
>>>>>>> a ti
>>>>>>> cker
>>>>>>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>>>>>>
>>>>>>> Thank you.
>>>>>>>
>>>>>>  -- 
>>>>> 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-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to web2py+un...@googlegroups.com.
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  -- 
>>> 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-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
Well then I will have to watch it to the end i was a bit worried for not 
understanding the explanations.

Thanks again!
On Friday, March 21, 2014 2:11:35 PM UTC+2, Ramos wrote:
>
> I guess not, the video alone is very self explanatory.
>
> You have to install tornado then start tornado as a separate process 
> inside web2py\gluon\contrib
>
> then, in your webpage add a websocket connection and a callback to process 
> the incomming data from server.
>
> You can see this very clearly in the video
>
>
>
>
> 2014-03-21 11:32 GMT+00:00 martzi >:
>
>> Ramos, is there an English version of the videos ? I don't understand 
>> Portuguese ...
>>
>>
>> On Friday, March 21, 2014 12:56:14 PM UTC+2, martzi wrote:
>>>
>>> Thanks a lot i am going though and will let you know!
>>>
>>> On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>>>>
>>>> see this video from Bruno Rocha
>>>> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>>>>
>>>> Saved my life once...
>>>>
>>>>
>>>> 2014-03-21 10:35 GMT+00:00 martzi :
>>>>
>>>>> I like the idea of tornado, I have seen some cool site running 
>>>>> tornado... but I don't really know where and how to start with it. i am 
>>>>> on 
>>>>> webfactory.
>>>>> Any idea on how to get it done ?
>>>>>
>>>>> Thank you!
>>>>>
>>>>>
>>>>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>>>>
>>>>>> Another stupid solution
>>>>>> use websockets (tornado) and this way you can publish data every 30 s 
>>>>>> to the webpage from the server to the client connectect.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>>>>
>>>>>>>  Thank all for your replies...
>>>>>>> PN i like you solution, I am going to try it and let you know if it 
>>>>>>> worked...
>>>>>>> Thanks to all for yo help!
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>>>>
>>>>>>>> You can also use web2py components (see the chapter titled 
>>>>>>>> 'Components and Plugins' in the web2py book). Basically first make a 
>>>>>>>> normal 
>>>>>>>> web2py page that reads the remote API every time the page is loaded, 
>>>>>>>> and 
>>>>>>>> displays the results. Then, load this page as a component into another 
>>>>>>>> page, and specify the 'timeout' parameter of the component so that it 
>>>>>>>> reloads every 30 seconds. You will not have to do any of the ajax/js 
>>>>>>>> yourself this way.
>>>>>>>>
>>>>>>>> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>> Please could anyone help me out, I need to pull some data from 
>>>>>>>>> some API (ex: https//xxx/aaa/ etc.) every 30s and then display the 
>>>>>>>>> result 
>>>>>>>>> in a ticker
>>>>>>>>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>>>>>>>>
>>>>>>>>> Thank you.
>>>>>>>>>
>>>>>>>>  -- 
>>>>>>> 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-users" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to web2py+un...@googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>  -- 
>>>>> 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-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to web2py+un...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  -- 
>> 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-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
OK thanks for the advice :)

On Friday, March 21, 2014 2:27:21 PM UTC+2, Ramos wrote:
>
> in the end you will understand the idea. Be patient...
>
>
> 2014-03-21 12:20 GMT+00:00 martzi >:
>
>> Well then I will have to watch it to the end i was a bit worried for not 
>> understanding the explanations.
>>
>> Thanks again!
>>
>> On Friday, March 21, 2014 2:11:35 PM UTC+2, Ramos wrote:
>>
>>> I guess not, the video alone is very self explanatory.
>>>
>>> You have to install tornado then start tornado as a separate process 
>>> inside web2py\gluon\contrib
>>>
>>> then, in your webpage add a websocket connection and a callback to 
>>> process the incomming data from server.
>>>
>>> You can see this very clearly in the video
>>>
>>>
>>>
>>>
>>> 2014-03-21 11:32 GMT+00:00 martzi :
>>>
>>> Ramos, is there an English version of the videos ? I don't understand 
>>>> Portuguese ...
>>>>
>>>>
>>>> On Friday, March 21, 2014 12:56:14 PM UTC+2, martzi wrote:
>>>>>
>>>>> Thanks a lot i am going though and will let you know!
>>>>>
>>>>> On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>>>>>>
>>>>>> see this video from Bruno Rocha
>>>>>> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>>>>>>
>>>>>> Saved my life once...
>>>>>>
>>>>>>
>>>>>> 2014-03-21 10:35 GMT+00:00 martzi :
>>>>>>
>>>>>>> I like the idea of tornado, I have seen some cool site running 
>>>>>>> tornado... but I don't really know where and how to start with it. i am 
>>>>>>> on 
>>>>>>> webfactory.
>>>>>>> Any idea on how to get it done ?
>>>>>>>
>>>>>>> Thank you!
>>>>>>>
>>>>>>>
>>>>>>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>>>>>>
>>>>>>>> Another stupid solution
>>>>>>>> use websockets (tornado) and this way you can publish data every 30 
>>>>>>>> s to the webpage from the server to the client connectect.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>>>>>>
>>>>>>>>>  Thank all for your replies...
>>>>>>>>> PN i like you solution, I am going to try it and let you know if 
>>>>>>>>> it worked...
>>>>>>>>> Thanks to all for yo help!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>>>>>>
>>>>>>>>>> You can also use web2py components (see the chapter titled 
>>>>>>>>>> 'Components and Plugins' in the web2py book). Basically first make a 
>>>>>>>>>> normal 
>>>>>>>>>> web2py page that reads the remote API every time the page is loaded, 
>>>>>>>>>> and 
>>>>>>>>>> displays the results. Then, load this page as a component into 
>>>>>>>>>> another 
>>>>>>>>>> page, and specify the 'timeout' parameter of the component so that 
>>>>>>>>>> it 
>>>>>>>>>> reloads every 30 seconds. You will not have to do any of the ajax/js 
>>>>>>>>>> yourself this way.
>>>>>>>>>>
>>>>>>>>>> On Sunday, March 16, 2014 1:48:11 PM UTC-4, Martin wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi all,
>>>>>>>>>>> Please could anyone help me out, I need to pull some data from 
>>>>>>>>>>> some API (ex: https//xxx/aaa/ etc.) every 30s and then display the 
>>>>>>>>>>> result 
>>>>>>>>>>> in a ticker
>>>>>>>>>>> How do I do this with Web2py + JavaScript ? I am new to web2py.
>>>>>>>&g

Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
I went through thev video... seems easy, unfortunately i cannot see the 
command for starting tornado... poor video quality !

On Friday, March 21, 2014 2:33:32 PM UTC+2, martzi wrote:
>
> OK thanks for the advice :)
>
> On Friday, March 21, 2014 2:27:21 PM UTC+2, Ramos wrote:
>>
>> in the end you will understand the idea. Be patient...
>>
>>
>> 2014-03-21 12:20 GMT+00:00 martzi :
>>
>>> Well then I will have to watch it to the end i was a bit worried for not 
>>> understanding the explanations.
>>>
>>> Thanks again!
>>>
>>> On Friday, March 21, 2014 2:11:35 PM UTC+2, Ramos wrote:
>>>
>>>> I guess not, the video alone is very self explanatory.
>>>>
>>>> You have to install tornado then start tornado as a separate process 
>>>> inside web2py\gluon\contrib
>>>>
>>>> then, in your webpage add a websocket connection and a callback to 
>>>> process the incomming data from server.
>>>>
>>>> You can see this very clearly in the video
>>>>
>>>>
>>>>
>>>>
>>>> 2014-03-21 11:32 GMT+00:00 martzi :
>>>>
>>>> Ramos, is there an English version of the videos ? I don't understand 
>>>>> Portuguese ...
>>>>>
>>>>>
>>>>> On Friday, March 21, 2014 12:56:14 PM UTC+2, martzi wrote:
>>>>>>
>>>>>> Thanks a lot i am going though and will let you know!
>>>>>>
>>>>>> On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>>>>>>>
>>>>>>> see this video from Bruno Rocha
>>>>>>> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>>>>>>>
>>>>>>> Saved my life once...
>>>>>>>
>>>>>>>
>>>>>>> 2014-03-21 10:35 GMT+00:00 martzi :
>>>>>>>
>>>>>>>> I like the idea of tornado, I have seen some cool site running 
>>>>>>>> tornado... but I don't really know where and how to start with it. i 
>>>>>>>> am on 
>>>>>>>> webfactory.
>>>>>>>> Any idea on how to get it done ?
>>>>>>>>
>>>>>>>> Thank you!
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>>>>>>>
>>>>>>>>> Another stupid solution
>>>>>>>>> use websockets (tornado) and this way you can publish data every 
>>>>>>>>> 30 s to the webpage from the server to the client connectect.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>>>>>>>
>>>>>>>>>>  Thank all for your replies...
>>>>>>>>>> PN i like you solution, I am going to try it and let you know if 
>>>>>>>>>> it worked...
>>>>>>>>>> Thanks to all for yo help!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>>>>>>>
>>>>>>>>>>> You can also use web2py components (see the chapter titled 
>>>>>>>>>>> 'Components and Plugins' in the web2py book). Basically first make 
>>>>>>>>>>> a normal 
>>>>>>>>>>> web2py page that reads the remote API every time the page is 
>>>>>>>>>>> loaded, and 
>>>>>>>>>>> displays the results. Then, load this page as a component into 
>>>>>>>>>>> another 
>>>>>>>>>>> page, and specify the 'timeout' parameter of the component so that 
>>>>>>>>>>> it 
>>>>>>>>>>> reloads every 30 seconds. You will not have to do any of the 
>>>>>>>>>>> ajax/js 
>>>>>>>>>>> yourself this way.
>>>>>>>>>>>
>>>>>>>>>>> On Sunday, March 16, 2014 1:48:11 P

Re: [web2py] Re: Pulling data every 30s for a ticker with web2py

2014-03-21 Thread martzi
Ok thanks!!!

On Friday, March 21, 2014 4:59:08 PM UTC+2, Ramos wrote:
>
> Inside web2py/gluon/contrib do
> Python websocket_messaging.py -k mykey -p  
> Em 21/03/2014 14:27, "martzi" > escreveu:
>
>> I went through thev video... seems easy, unfortunately i cannot see the 
>> command for starting tornado... poor video quality !
>>
>> On Friday, March 21, 2014 2:33:32 PM UTC+2, martzi wrote:
>>>
>>> OK thanks for the advice :)
>>>
>>> On Friday, March 21, 2014 2:27:21 PM UTC+2, Ramos wrote:
>>>>
>>>> in the end you will understand the idea. Be patient...
>>>>
>>>>
>>>> 2014-03-21 12:20 GMT+00:00 martzi :
>>>>
>>>>> Well then I will have to watch it to the end i was a bit worried for 
>>>>> not understanding the explanations.
>>>>>
>>>>> Thanks again!
>>>>>
>>>>> On Friday, March 21, 2014 2:11:35 PM UTC+2, Ramos wrote:
>>>>>
>>>>>> I guess not, the video alone is very self explanatory.
>>>>>>
>>>>>> You have to install tornado then start tornado as a separate process 
>>>>>> inside web2py\gluon\contrib
>>>>>>
>>>>>> then, in your webpage add a websocket connection and a callback to 
>>>>>> process the incomming data from server.
>>>>>>
>>>>>> You can see this very clearly in the video
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2014-03-21 11:32 GMT+00:00 martzi :
>>>>>>
>>>>>> Ramos, is there an English version of the videos ? I don't understand 
>>>>>>> Portuguese ...
>>>>>>>
>>>>>>>
>>>>>>> On Friday, March 21, 2014 12:56:14 PM UTC+2, martzi wrote:
>>>>>>>>
>>>>>>>> Thanks a lot i am going though and will let you know!
>>>>>>>>
>>>>>>>> On Friday, March 21, 2014 12:47:18 PM UTC+2, Ramos wrote:
>>>>>>>>>
>>>>>>>>> see this video from Bruno Rocha
>>>>>>>>> https://www.youtube.com/watch?v=MUWy-NSrvNQ
>>>>>>>>>
>>>>>>>>> Saved my life once...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2014-03-21 10:35 GMT+00:00 martzi :
>>>>>>>>>
>>>>>>>>>> I like the idea of tornado, I have seen some cool site running 
>>>>>>>>>> tornado... but I don't really know where and how to start with it. i 
>>>>>>>>>> am on 
>>>>>>>>>> webfactory.
>>>>>>>>>> Any idea on how to get it done ?
>>>>>>>>>>
>>>>>>>>>> Thank you!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Friday, March 21, 2014 12:15:35 PM UTC+2, Ramos wrote:
>>>>>>>>>>
>>>>>>>>>>> Another stupid solution
>>>>>>>>>>> use websockets (tornado) and this way you can publish data every 
>>>>>>>>>>> 30 s to the webpage from the server to the client connectect.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2014-03-21 10:08 GMT+00:00 martzi :
>>>>>>>>>>>
>>>>>>>>>>>>  Thank all for your replies...
>>>>>>>>>>>> PN i like you solution, I am going to try it and let you know 
>>>>>>>>>>>> if it worked...
>>>>>>>>>>>> Thanks to all for yo help!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Thursday, March 20, 2014 11:25:47 PM UTC+2, PN wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> You can also use web2py components (see the chapter titled 
>>>>>>>>>>>>> 'Components and Plugins' in the web2py book). Basical

Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-02 Thread martzi
Nice one! Have a web2py-like (w2y) on that!

On Tuesday, April 1, 2014 7:44:01 PM UTC+2, Richard wrote:
>
> Hello,
>
> I want to get rid of python entirely. As you probably know, I don't see 
> great future in Python 3000 and since we can't fighting the Javascript 
> dominance in webapp development world, I resign... I want to port web2py to 
> javascript by rewriting all piece of it except the DAL because it too good 
> and I like it!
>
> Is there any volonteers?
>
> Massimo
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.