Re: [web2py] None ?

2012-07-23 Thread Ashraf Mansour
Right, there was no return statement. Thank you, nice community. Ashraf --

[web2py] None ?

2012-07-23 Thread Ashraf Mansour
Hi, I just received 'None', when accessing certain page. is this an error? there is no ticket as normal. Please explain... Regards, Ashraf --

[web2py] Re: two references from one table to another.

2012-07-20 Thread Ashraf Mansour
I love both, you and web2py. Regards, > >> Ashraf >> > --

[web2py] Re: two references from one table to another.

2012-07-20 Thread Ashraf Mansour
is the question too easy or too difficult ? > > Ashraf > --

[web2py] Re: two references from one table to another.

2012-07-20 Thread Ashraf Mansour
> > Thank you for your time. > But unfortunately, I don't understand. maybe the question is not clear enough. the query will be like *( db.from_to.from_user == db.auth_user.id ) & ( db.from_to.to_user == db.auth_user.id )* How to select the two names? both are * db.auth_user.name* --

[web2py] two references from one table to another.

2012-07-19 Thread Ashraf Mansour
Hi, The first table has two fields: * from_user , db.auth_user* * to_user , db.auth_user* both are referencing db.auth_user. How to get the list of records in the first table with the corresponding first_name of the two fields? I am confused, because I don't know how to differentiate the tw

[web2py] Re: very simple question ...

2012-07-18 Thread Ashraf Mansour
I am trying to test my program against the nightly build (windows). Installing web2p, I get the error *Traceback (most recent call last):* * File "web2py.py", line 16, in * *zipimport.ZipImportError: can't find module 'gluon'* * * Please, advise. Ashraf --

[web2py] Re: very simple question ...

2012-07-18 Thread Ashraf Mansour
for these three lines: * * *current_user_id = auth.user.id* ** *xsalescompany_id=db(db.salescompany_user.user_id == current_user_id).select(db.salescompany_user.salescompany_id).first().id* * * *salescompany_name=db(db.salescompany.id == int(xsalescompany_id) ).select(db.sale

[web2py] very simple question ...

2012-07-18 Thread Ashraf Mansour
*Hi, All:* * * *Having these two tables* *db.define_table(* *'salescompany',* *Field('name') )* * * *db.define_table(* *'salescompany_user',* *Field('user_id', db.auth_user , unique = True ),* *Field('salescompany_id', db.salescompany) )* *in these three lines* * curre

Re: [web2py] Re: Hiding columns in SQLFORM.grid

2012-07-17 Thread Ashraf Mansour
I added the statements if request.function == 'new': db.mytable.myfield.readable = False db.mytable.myfield2.readable = False db.mytable.myfield3.readable = False before constructing the grid, but the fields are still in the add (create) form of the grid. I am definging default va

[web2py] Re: Hiding columns in SQLFORM.grid

2012-07-17 Thread Ashraf Mansour
Hi, > > How can i hide columns in the create form generated by sqlform.grid ? Thanks Ashraf --

[web2py] Re: What to expect in web2py 2.0

2012-06-15 Thread Ashraf Mansour
Thank you for your time... On Saturday, June 16, 2012 1:35:47 AM UTC+3, Anthony wrote: > > ... and Angular is a full-fledged client-side framework), >>> >> >> Is it possible to have a web application that have (or access) databases >> that reside in the client-side ? >> >> for example: >> user

[web2py] Re: What to expect in web2py 2.0

2012-06-15 Thread Ashraf Mansour
... and Angular is a full-fledged client-side framework), > Is it possible to have a web application that have (or access) databases that reside in the client-side ? for example: user1 has local database db1 on pc1, user2 has local database db2 on pc2. db1 and db2 has identical structure

[web2py] Re: What to expect in web2py 2.0

2012-06-15 Thread Ashraf Mansour
Angular curly brace output: > > class ng(DIV): > tag = '' > def xml(self): > return '{{%s}}' % super(ng, self).xml() > > Then in a web2py template: > > {{=DIV(ng('myvariable'))}} > > would produce an Angular template wit

[web2py] Re: What to expect in web2py 2.0

2012-06-15 Thread Ashraf Mansour
Hi Massimo, What do you think about http://www.youtube.com/watch?v=WuiHuZq_cg4 ? is it web2pyable in version 2.0? Regards...

[web2py] Re: Dashboard for web2py.

2012-06-13 Thread Ashraf Mansour
Most probably, these datasets will come from many different places. So , ETL is required. What about adding nice interface to PETL? Petl is in https://github.com/alimanfoo/petl

[web2py] Re: web2py book now free in PDF

2012-06-12 Thread Ashraf Mansour
Thanks On Tuesday, June 12, 2012 4:17:46 PM UTC+3, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo >

[web2py] Re: Dashboard for web2py.

2012-06-12 Thread Ashraf Mansour
by "Dashboard", I mean: setup (admin): define datasets ( datasources ). browsing (users): define subset of datasets. define parameters. get graphs (charts) for the defined subset. graph changes by changing the parameters.

[web2py] Dashboard for web2py.

2012-06-11 Thread Ashraf Mansour
Hi, Pls, let me know about the successfully integrate-able dashboards with web2py. Thanks, Ashraf

[web2py] Re: upgrading eCardsOnMap to API V3

2012-06-09 Thread Ashraf Mansour
Thanks On Saturday, June 9, 2012 2:23:12 AM UTC+3, puercoespin wrote: > > Maybe: > > > (function () { >window.onload=function(){ > > var myOptions = { > center: new google.maps.LatLng(-34.397, 150.644 ), > zoom: 15, > mapTypeId: google.maps

[web2py] Re: workflow manager design issues - comments invited

2012-05-24 Thread Ashraf Mansour
A good example : http://wf.runa.ru/About

Re: [web2py] Re: Pass multiple arguments to URL through javascript

2012-05-22 Thread Ashraf Mansour
Thank you, Anthony. document.getElementById('url_with_params').href = "{{=URL('action')}}" + "/" + param1 ; is working fine. >>

Re: [web2py] Re: Pass multiple arguments to URL through javascript

2012-05-22 Thread Ashraf Mansour
Thank you, Bruce. document.getElementById('url_with_params').href = "{{=URL('action')}}" + "/" + param1 ; is working fine. >

Re: [web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
both and are not working ( they are not showing the values of param1 and param2 ) >

Re: [web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
thank you for your interest. let me brief what i am doing. I am building an application accessing google maps api v3. I need the function that decide if a certain point is within certain bounds. my understanding is that i need to do that in the view ( by passing the point and the coordinates of

Re: [web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
thanks for the immediate reply. param1 and param2 are determined on the client side. how can it be generated by javascript? > >>>

[web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
thanks for the immediate reply. param1 and param2 are determined on the client side. how can it be generated by javascript? On Sunday, May 20, 2012 10:05:10 PM UTC+3, Anthony wrote: > > On Sunday, May 20, 2012 1:18:44 PM UTC-4, Ashraf Mansour wrote: >> >> I tried this >&

[web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
I tried this and it did not work.:) what is the right way of doing it? On Saturday, December 3, 2011 7:37:58 PM UTC+3, Anthony wrote: > >

[web2py] Re: Pass multiple arguments to URL through javascript

2012-05-20 Thread Ashraf Mansour
I think this is an important topic, And needs to be highlighted in the book and by example. On Saturday, December 3, 2011 7:10:59 PM UTC+3, Vineet wrote: > > I referred to the below-mentioned thread (but could not reply to it). > > > https://groups.google.com/group/web2py/browse_thread/thread/61d

[web2py] Re: are 8 stickys really necessary at the top of this forum?

2012-04-29 Thread Ashraf Mansour
Thank you... >>>

[web2py] Re: are 8 stickys really necessary at the top of this forum?

2012-04-29 Thread Ashraf Mansour
OR they can be aggregated in one sticky topic. >

[web2py] Re: web2py + leaflet

2012-04-29 Thread Ashraf Mansour
Hi, Can i know the reason of avoiding google mape api v3 ?

[web2py] Pls, upgrade eCardsonMap to V3

2012-03-19 Thread Ashraf Mansour
Hi, Pls, upgrade eCardsonMap to V3 Regards, Ashraf

[web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-22 Thread Ashraf Mansour
what about query = ( db.person.id == db.othertable.id ) & xxx xxx.requires = IS_IN_DB(db(query),'othertable.id',((( all fields of othertable are accessible, no need for dot ))), xxx ) Ashraf On Feb 22, 9:42 am, Bruno Rocha wrote: > On Tue, Feb 21, 2012 at 8:22 PM, Richard Vézina > > wrote: > >

[web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Ashraf Mansour
son( > > db.person.id).name db.othertable(db.person(db.person.id > > ).fk_to_other_table_id).field_other_table) > > > The way your table are related affect how you have to write the request... > > > db.table(id).field is nothing else then db(db.table.id == > >

[web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Ashraf Mansour
Unfortunately, did not work (both). Do you know of any running example? in other words, where is it explained, old style and new style? On Feb 22, 12:33 am, Ashraf Mansour wrote: > I will try both and i will let you know. > > On Feb 22, 12:27 am, Richard Vézina > wrote: > >

[web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Ashraf Mansour
tiple=True) # > > One table > > > Maybe this work but not sure : > > > IS_IN_DB(helper_set,'table.id',db.table2(db.table1.id).fieldTable2,multiple > > =True) > > # 2 tables > > > Richard > > > On Tue, Feb 21, 2012 at 4:21 PM, Ashraf

[web2py] Re: can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Ashraf Mansour
d_table2 # 2 table > > You can maybe proceding the same way, but I am not sure... I am still using > old requires syntax... > > Please report your experiment and how you solve it. > > Richard > > On Tue, Feb 21, 2012 at 1:57 PM, Ashraf Mansour wrote: > > > >

[web2py] can the query in IS_IN_DB have more than one table?

2012-02-21 Thread Ashraf Mansour
Hi All, can the query in IS_IN_DB have more than one table? And how the fields of these tables be referenced in the format, to be shown in the dropbox ? Thanks in advance. Ashraf

[web2py] Re: Dedicated IDE beginner

2012-02-21 Thread Ashraf Mansour
l) shouldn't be much > different, downloading the packages and extracting de data into the > specified folders. > > http://code.google.com/p/rad2py/wiki/InstallationGuide#ide2py_Quick_I... > > On Feb 19, 7:26 am, Ashraf Mansour wrote: > > > > > > > &g

[web2py] Dedicated IDE beginner

2012-02-19 Thread Ashraf Mansour
Hi all, I installed red2py and web2py. No mercurial , No psp. ide2py.ini pointing to web2py server. ((python main.py)) will show ide2py (no files open) and start the application welcome in a browser. How can i run and debug welcome application inside ide2py (as in the screenshots , no mercuria

[web2py] Re: Workflow engine for web2py

2012-02-07 Thread Ashraf Mansour
I am having the same interest... On Jan 19, 3:02 am, António Ramos wrote: > is it dificult to do something like this in web2py? > > http://blog.aizatto.com/2009/12/07/ruby-on-rails-finite-state-machine...

[web2py] Re: updating more than one record.

2012-01-31 Thread Ashraf Mansour
thanks a lot

[web2py] Re: updating more than one record.

2012-01-31 Thread Ashraf Mansour
Thank you for the immediate reply. my problem is how and where to write the statement in controller and views ? Regards, Ashraf

[web2py] updating more than one record.

2012-01-31 Thread Ashraf Mansour
Hi all, I am looking for an example that updates many records in a table. ( similar to sql update) It seems that crud.update is handling one record. I thought about looping (for) and/or executesql. An example will be perfect. Regards, Ashraf