Right, there was no return statement.
Thank you, nice community.
Ashraf
--
Hi,
I just received 'None', when accessing certain page.
is this an error?
there is no ticket as normal.
Please explain...
Regards,
Ashraf
--
I love both, you and web2py.
Regards,
>
>> Ashraf
>>
>
--
is the question too easy or too difficult ?
>
> Ashraf
>
--
>
> 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*
--
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
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
--
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
*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
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
Hi,
>
> How can i hide columns in the create form generated by sqlform.grid ?
Thanks
Ashraf
--
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
... 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
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
Hi Massimo,
What do you think about http://www.youtube.com/watch?v=WuiHuZq_cg4 ?
is it web2pyable in version 2.0?
Regards...
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
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
>
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.
Hi,
Pls, let me know about the successfully integrate-able dashboards with
web2py.
Thanks,
Ashraf
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
A good example :
http://wf.runa.ru/About
Thank you, Anthony.
document.getElementById('url_with_params').href = "{{=URL('action')}}" +
"/" + param1 ;
is working fine.
>>
Thank you, Bruce.
document.getElementById('url_with_params').href = "{{=URL('action')}}" +
"/" + param1 ;
is working fine.
>
both
and
are not working ( they are not showing the values of param1 and param2 )
>
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
thanks for the immediate reply.
param1 and param2 are determined on the client side.
how can it be generated by javascript?
>
>>>
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
>&
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:
>
>
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
Thank you...
>>>
OR they can be aggregated in one sticky topic.
>
Hi,
Can i know the reason of avoiding google mape api v3 ?
Hi,
Pls, upgrade eCardsonMap to V3
Regards,
Ashraf
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:
> >
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 ==
> >
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:
>
>
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
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:
>
>
>
>
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
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
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
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...
thanks a lot
Thank you for the immediate reply.
my problem is how and where to write the statement in controller and
views ?
Regards,
Ashraf
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
45 matches
Mail list logo