elopment environment.
Any suggestions on what might be causing this discrepancy?
Thanks,
AT
--
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
I found that callback functions can serve the purpose - but just curious if
there are other better ways?
On Thursday, 1 December 2022 at 11:24:39 UTC+5 at wrote:
> Hi,
> I was wondering what is a good way to monitor changes in certain database
> tables? The purpose is to post d
Hi,
I was wondering what is a good way to monitor changes in certain database
tables? The purpose is to post data to an external API if one of define
conditions is met.
Thanks,
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Here is the code:
`fields=['id', 'name']`
`grid = SQLFORM.grid(db.engagement, fields=fields)`
Error:
`AttributeError('str' object has no attribute 'tablename')`
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://c
Thank you Stifan & Clemens for the help!
Best Regards
On Saturday, 23 January 2021 at 14:53:26 UTC+5 Clemens wrote:
> Just reference the session in the module by:
> session = current.session
>
> Then you can use exactly in the same way as in the controllers.
>
> Best rega
Is it possible to write to session variables from Web2py modules?
--
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 a
Thank you Leonel for your reply. I am looking into the suggested solutions.
On Wednesday, 2 November 2016 18:21:51 UTC+5, Leonel Câmara wrote:
>
> If I understood your question correctly, I think I have answered this,
> here:
>
> https://groups.google.com/forum/#!topic/web2py/y1QYmM4HfeM
>
>
those translation files can grow extremely big, since
description for example can contain hundreds of words for each project.
What do you think about this?
Thanks,
AT
If T() is used, then those translation files can grow extremely big, since
description for example can contain hundreds of words for
Thank you Massimo.
One quick question: When we use auth.signature, and then delete records in
a table, they are marked as deleted but they are not actually deleted from
the database. What is the recommended way to delete such records from the
database?
Best Regards,
AT
On Thursday, 10
ually delete
it from the database but it is marked as inactive; what is the recommended
way or configuration that allows me delete the *inactive* records from the
database?
Thanks,
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
css.
>
> The repository is available at:
>
> https://bitbucket.org/MarkGraves/welcome_materialize/
>
> You can preview it at:
>
> https://gravesmedical.pythonanywhere.com/welcome/
>
> There are definitely some issues, but I thought it might be useful for
> some folks.
&g
Hi,
When I create a SQLFORM for a table containing following field, it creates
a drop-down listing all specified fields and *additionally a blank option*.
How can we avoid it?
Field('code', default='F3',
requires=IS_IN_SET(['U1', 'F3', 'T9', 'K3', 'S2',
'M1', 'Z5'])),
T
e('phone',
> Field('config2', 'reference config2'),
> Field('service_type', 'string'),
> Field('phone_number', 'string'))
>
> Then you could use SQLFORM.smartgrid to display/navigate the two tables
> and add r
Initially I was thinking the same, but results are not as desired:
db.define_table('phone',
Field('service_type', 'string'),
Field('phone_number', 'string'))
db.define_table('config2',
Field('cell_phones', '
Hi Stifan,
Thank you for your prompt reply. This will not give the desired result.
After your suggested change, I get:
What I need is service-type and phone-number side-by-side, so when I add a
record it should add one service-name and one corresponding phone number.
Best Regards,
Atif
On Fr
phoneconfig.py
form = crud.update(db.config, 1)
views/phoneconfig/index.html
{{extend 'layout.html'}}
{{=form}}
Thanks,
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/is
looking for git repository integration so that one of my friend can also
collaborate in this project. Is codenvy the right thing for my needs?
Thanks,
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
Thanks a lot Edwood for your help. I'll definitely try to follow your tips.
Best Regards,
AT
On Sunday, 6 September 2015 09:55:25 UTC+5, Edwood wrote:
>
> Hi.
>
> Wrapping inside table columns is not currently supported by "write_html",
> nor are CSS prope
Hi,
I was trying to use the first sample report from:
https://code.google.com/p/pyfpdf/wiki/Web2Py. I modified it a little to
fill the data dynamically inside the table, but the long text is not
wrapping inside the table cells. I've tried setting different css to
address the issue but no luck.
as well:
>
> myform = SQLFORM.factory(..., _id='myformid')
>
> Anthony
>
> On Friday, August 28, 2015 at 2:55:18 AM UTC-4, at wrote:
>>
>> Ok, got it.
>>
>>
>> myform = SQLFORM.factory(
>> Field('title', label=T
Ok, got it.
myform = SQLFORM.factory(
Field('title', label=T('Title'), requires=IS_NOT_EMPTY()),
.
.
.
)
myform['_id'] = 'myformid'
On Friday, 28 August 2015 10:54:08 UTC+5, at wrote:
>
> Hi,
>
> A quick and silly q
Hi,
A quick and silly question:
*How to define id for a form created with SQLFORM.factory?*
Thanks
--
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 r
Hi,
I've been asked to integrate WHMCS with a jhomla website. The website
currently consists of just a few pages of information on the business, its
services, products, clients and feedback/contact form. My most of the
recent work experience is on python & web2py and I am intermediate-level
de
So it's incorrect or impermissible to add records with custom ids?
Thanks
On Thursday, 26 June 2014 16:33:02 UTC+5, at wrote:
>
>
> Yes you are right. Without id=1 it's working.
> But if I insert data using postgres/psql with id=1, it doesn't give any
> error as
Yes you are right. Without id=1 it's working.
But if I insert data using postgres/psql with id=1, it doesn't give any
error.
Regards,
AT
On Thursday, 26 June 2014 15:39:20 UTC+5, Simon Ashley wrote:
>
> Believe it will be failing with the id=1 etc. Interfering with the prim
Yes
On Thursday, 26 June 2014 14:55:35 UTC+5, Niphlod wrote:
>
> was the table created by web2py ?
>
> On Thursday, June 26, 2014 9:53:31 AM UTC+2, at wrote:
>>
>> Hello,
>>
>> I am getting getting this:
>>
>> (lastval is not yet defined i
l NOT NULL,
title character varying(50),
CONSTRAINT user_role_pkey PRIMARY KEY (id )
)
WITH (
OIDS=FALSE
);
Any help please ...
Thanks & Regards
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.goog
On Wednesday, 11 June 2014 21:08:43 UTC+5, Niphlod wrote:
>
> this is the relevant excerpt
>
> *Note that the version of Python from which this baseline environment is
> created must be the same version of Python that mod_wsgi was compiled for.
> It is not possible to mix environments based on
wrote:
>
> verify that apache is running the same python version you're running and
> has PIL installed. This is a well-known issue, but has nothing to do with
> web2py.
>
> On Wednesday, June 11, 2014 2:39:38 PM UTC+2, at wrote:
>>
>> facing same issue both on ubuntu
facing same issue both on ubuntu and windows7:
Trying:
from PIL import ImageGrab
Getting:
ImportError: No module named PIL
and the strange thing is *no errors* on:
from PIL import Image
Any help?
Thanks
On Wednesday, 11 June 2014 15:16:47 UTC+5, Sharjeel Ali Shaukat wrote:
>
> I m having a pr
Hi Damien,
Have you got the answer of your question? I was also looking for the
similar stuff.
Thanks,
AT
--
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
Thank$ : )
--
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" grou
Hi,
I am working on a web-application which needs to be translated to finnish
language and there are no translator available for *finnish* in web2py
languages folder. Can someone suggest what to do now?
Thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http:
>>> for table in db:
>>>print table._tablename
returns the correct order, the same as defined in models/db.py, whereas if
I add a print statement 'print table' under loop 'for table in self.db:'
in scripts/cpdb.py it returns the list of tables in alphabetic order.
Thanks & Regards
On
27;admission' table and hence failing.
Any suggestions how it can be fixed? How can we force *cpdb* to use the
same order of tables definition as defined in *db.py*?
Thanks & Regards,
AT
PS. I am using -f, -F, -y, -Y & -d switches with cpdb.
--
Resources:
- http://web2py.com
Thanks Anthony for the explanation.
We am using #1 and occasionally get '*insufficient data left in message*',
could it be because of datetime.now?
On Thursday, 7 November 2013 17:56:47 UTC+5, Anthony wrote:
>
> Is there any difference between following two statements:
>> #1
>> from datetime imp
x27;, type='datetime', default=request.now, writable=False ),
)
Thanks & Regards
AT
--
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 rec
Yes except datetime fields; the all inserted values seem to be ok and
datetime fields are evaluated by datetime.now
AT
On Thursday, 7 November 2013 12:41:55 UTC+5, Paolo Valleri wrote:
>
> have you checked the variables content of a failure?
> Paolo
>
--
Resources:
- http://web2p
Hi,
Occationally an error is reported stating following problem:
"/home/www-data/web2py/gluon/dal.py", line 8514, in insert\nret =
self._db._adapter.insert(self, self._listify(fields))\n File
"/home/www-data/web2py/gluon/dal.py", line 1206, in insert\nraise
e\nProgrammingError: (\'ERR
thank you richard!
--
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-use
Thanks all for replies and assistance; I've now a better understading of
DAL's scope and limitations.
Regards,
AT
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/li
Is is possible to create a postgres database from web2py application?
Thanks & Regards
--
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
Hi,
I am getting following error message while trying to run statements:
db0 = DAL('postgres://adminuser:testing@localhost/postgres')
result=db0.executesql('create database mydb owner user1;')
('ERROR', '25001',
'CREATE DATABASE cannot run inside a transaction block')
Can someone help
thanks rischard.
On Tuesday, 1 October 2013 19:00:49 UTC+5, Richard wrote:
>
> But you can mimick crud authentication with
> auth.has_membership('role_name') or auth.has_permission(...), read the book
> about that.
>
> Richard
>
>
> On Tue, Oct 1, 2013 at
Does it work with crud as well?
Thanksd
On Monday, 12 October 2009 06:37:31 UTC+5, mdipierro wrote:
>
> Something is wrong with this:
>
> db.define_table('dogs',
> ...
> Field('vaccination_id', db.vaccinations))
>
> db.define_table('vaccinations',
> Field('dog_id', db.dogs),
>
s
On Wednesday, 21 August 2013 12:06:11 UTC+5, at wrote:
>
>
> Trying to run following script inside a controller:
> python web2py.py -S myapp -M -N -R applications/myapp/private/alerts.py
> -A 1 2 3
>
> and getting:
>
> SyntaxError: invalid syntax at web2p*y*.py
>
>
Trying to run following script inside a controller:
python web2py.py -S myapp -M -N -R applications/myapp/private/alerts.py -A
1 2 3
and getting:
SyntaxError: invalid syntax at web2p*y*.py
Can someone assist please.
Thanks & Regards
AT
--
---
You received this message because you
interesting feature ..
thanks
On Monday, 19 August 2013 19:07:02 UTC+5, Anthony wrote:
>
> On Sunday, August 18, 2013 12:52:10 AM UTC-7, at wrote:
>
>> Thank you Niphlod.
>>
>> If connection string is same, can we generate .table files in one server
>>
quite interesting and useful knowledge for me.
thanks a lot.
On Sunday, 18 August 2013 23:11:45 UTC+5, Anthony wrote:
>
> On Sunday, August 18, 2013 2:03:47 PM UTC-4, at wrote:
>
>>
>> IC, I was not aware of that. I thought application can't be run without
>>
; On 18 Aug 2013, at 10:48 AM, at > wrote:
> > Thank you for detailed explaination.
> >
> > Sorry I couldn't understand that how can we live with a blank databases
> folder?
> >
> > Suppose server1 is active and it has filled databases folder, and
&g
Thank you for detailed explaination.
Sorry I couldn't understand that how can we live with a blank databases
folder?
Suppose server1 is active and it has filled databases folder, and server2
is passive with empty databases folder. Both are pointing to same database
which is on server3. My und
model is modified.
Regards,
AT
On Saturday, 17 August 2013 16:48:07 UTC+5, Niphlod wrote:
>
> the part preceding the _options is the md5 of the connection string. If
> you want a quick and dirty method, backup those files to another dir, set
> fake_migrate=True and let web2py recrea
c5f365ce982338d5733d61d0ac11ded3_option.table
eee02c492ba9ed34049a9ff8dc72b10c_option.table
Thanks & Regards,
AT
--
---
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,
Thank you Anthony!
That means it should be working in 2.4.6-stable? we've 2.4.6-stable on
production server.
Regards,
AT
On Thursday, 15 August 2013 10:55:50 UTC+5, Anthony wrote:
>
> Looks like there was a bug, which has now been fixed in trunk. So, the
> second version wi
2.4.5
On Thursday, 15 August 2013 07:44:02 UTC+5, Anthony wrote:
>
> What version of web2py are you using?
>
> On Wednesday, August 14, 2013 9:22:57 PM UTC-4, at wrote:
>>
>> Thanks a lot anthony,
>> db(db.mytable.id==24).update(file1=db.mytable.file1.store(requ
27;d replied to your post yesterday, but somehow it was not posted
On Tuesday, 13 August 2013 19:19:44 UTC+5, Anthony wrote:
>
> On Tuesday, August 13, 2013 9:20:47 AM UTC-4, at wrote:
>
>>
>> Here is my controller code:
>> def test_upload:
>> if request.vars.fi
/mytable.file1.8586ded7f7608eee.746d706c3176667666.txt
Thanks,
AT
On Tuesday, 13 August 2013 17:49:34 UTC+5, Anthony wrote:
>
> 'txt' is the default extension given if the filename doesn't match the
> following regex: '\.(?P\w{1,5})$'. "picture.jpg" should mat
d? What I mean is, does picture.jpg change into picture.txt
> or into picture.jpg.txt?
>
> Regards,
> Ales
>
> On Tuesday, August 13, 2013 12:10:40 PM UTC+2, at wrote:
>>
>>
>>
>> Hi,
>>
>> Please consider following model:
>> db.define
Hi,
Please consider following model:
db.define_table('mytable',
Field('file1', type='upload', uploadseparate=True,
requires =
IS_EMPTY_OR(IS_UPLOAD_FILENAME(extension='pdf|jpg|png|gif|doc|docx|rtf|txt',
error_message='Only PDF, Word Docs, RTF, Text
tabase
> tables.
>
> On Thursday, April 25, 2013 12:24:59 PM UTC+2, at wrote:
>>
>> Hi,
>>
>> I am trying to connect to a remote postgres database running on a ubuntu
>> server. The application is hosted on windows 7 server. Getting following
>> error
Hi,
I am trying to connect to a remote postgres database running on a ubuntu
server. The application is hosted on windows 7 server. Getting following
error on application startup:
('ERROR', '42P07',
'relation "mytable" already exists')
The strange thing is in databases folder, I already have
Thank you Alan for the tip.
On Friday, 12 April 2013 00:50:23 UTC+5, Alan Etkin wrote:
>
> > all you have to do is menu.elements('li')
>
> Yes, I know, it's just that I had no idea that the MENU helper didn't
> support server-side DOM in the same way as the other helpers. Perhaps it
> can be enh
> For example, instead of:
>
> response.menu = [(T('Home'), False, URL('default', 'index'))]
>
> you could do:
>
> response.menu = [LI(A('Home', _href=URL('default', 'index')), _id='myid')]
>
> Of course, that is
Hello,
Is it possible to define ids of s if we are using MENU helper /
response.menu?
On Thursday, 11 April 2013 14:47:00 UTC+5, at wrote:
>
>
> Can somebody assist how can we define "id"s for sub-menu items?
>
> Thanks
>
>
--
---
You received this messag
Can somebody assist how can we define "id"s for sub-menu items?
Thanks
--
---
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.c
Thank you Alan .. will give it a try definately. May be I'll be the first
to download this plugin? :)
Regards
On Monday, 8 April 2013 00:15:12 UTC+5, Alan Etkin wrote:
>
> > You are right we cant get web2py form helpers but can you
> authentication, session management, jsonifying etc. We alrea
in static. Your ExtJS should handle
> all the data. Add json services and let the ExtJS consume them. Note that
> you won't get form helpers or the security that web2py provides, but you
> get the authentication, DAL, automatic jsonifying and caching.
>
>
> On Thursda
One of the problems is that the extjs implementation has made the
application slow. Because each page is itself an extjs application, it
reloads extjs libs on accessing a view.
So wanted to at least avoid reloading of js libs on each page access
request.
Regards
On Friday, 5 April 2013 19:03
HI,
Started working on a project where the team is already working on using
extjs to develop the views. Each view of web2py application is basically an
ExtJS application. They've placed extjs library in
web2py/applications/app/static /extjs and created an extjs_views folder in
web2py/applicat
is ~ a list of dictionaries, so you can play with it
> freely.
>
> On Wednesday, March 6, 2013 10:21:39 AM UTC+1, at wrote:
>>
>> actually I wanted to change this label just in current record set, I mean
>> in *rows* only; is it possible?
>>
>> thanks
>>
actually I wanted to change this label just in current record set, I mean
in *rows* only; is it possible?
thanks
On Wednesday, 6 March 2013 14:18:32 UTC+5, 黄祥 wrote:
>
> i'm usually use it on models for :
> db.person.dob.label=T('Date of Birth')
> the other solution is to use labels in form (SQ
thanks for the swift response!
when this label statement should be run ... before or after running *
db().select*?
regards
On Wednesday, 6 March 2013 13:29:21 UTC+5, 黄祥 wrote:
>
> yes, it can please use label
> e.g.
> db.person.dob.label=T('Date of Birth')
>
> or if you use sqltable you can use
Can we change title of a field in DAL select?
e.g. in rows=db().select(db.persons.name, db.persons.dob,
db.persons.occupation), can we change db.persons.dob title to Date of Birth
in resultset i.e. in rows?
Thanks
--
---
You received this message because you are subscribed to the Google Gr
Thanks Johann, it works. :)
I'd tried it earlier but was getting some errror. I hadn't realized that it
was due to some other problem.
Regards
On Wednesday, 6 March 2013 11:33:09 UTC+5, Johann Spies wrote:
>
> On 6 March 2013 08:10, at > wrote:
> >
> > Pl cons
Pl consider following select statement:
rows=db().select(db.persons.ALL, db.books.ALL,
left=db.persons.on(db.persons.id==db.books.owner))
Want to order by persons.dob, then books.purchased, where both are of type
date/time.
On Wednesday, 6 March 2013 11:01:03 UTC+5, 黄祥 wrote:
>
> could you be
Is it possible to order by two or more db fields in a DAL select statement?
Thanks & Regards,
AT
--
---
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 em
thanks for the reply and info.
nice to know that you were one of the contributers of urllib3 development.
can you help me understanding what is the differnce between Requests source
available at http://docs.python-requests.org/en/latest/index.html and @
https://github.com/niphlod/w2p_tvseries
returns xml, but a few are
> jsonrpc ... but you'll get the idea).
>
>
> On Wednesday, February 13, 2013 9:00:55 AM UTC+1, at wrote:
>>
>>
>> Thanks, I am trying it now.
>>
>> What about using external libs like
>> *Requests*<http://docs.pyth
using
them?
Regards
On Tuesday, 12 February 2013 19:38:29 UTC+5, tomasz bandura wrote:
>
> Did you read http://web2py.com/books/default/chapter/29/14#Twitter-API?
>
> It is an example of Twitter RESTful+ json.
>
> T.
>
>
> 2013/2/12 at >
>
>>
>> Want to
Want to call a web service from a web2py application. The service supports
get/posts methos for taking input and gives response in json.
Can someboday help me out?
Thanks & Regards,
AT
--
---
You received this message because you are subscribed to the Google Groups
"web2py-use
old version of web2py...
>
> Richard
>
>
> On Thu, Feb 7, 2013 at 4:06 AM, at >wrote:
>
>> Hi,
>>
>> Currenty we are usnig web2py (1.99.7) + apache + ssl + mod_wsgi +
>> postgresql on ubuntu on production and development servers.
>> Before we upgr
the best and clean way to accomplish it?
Thanks,
AT
--
---
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 mo
quot;Found something else"
*Regards
On Saturday, 29 December 2012 13:23:39 UTC+5, at wrote:
>
> lets say we've:
> dType = type(all_rows[rowid][key])
>
> Now how to check if the dType is string, or integer, boolean etc? Any
> build-in functions for this purpose?
&g
lets say we've:
dType = type(all_rows[rowid][key])
Now how to check if the dType is string, or integer, boolean etc? Any
build-in functions for this purpose?
Regards
On Saturday, 29 December 2012 13:07:29 UTC+5, at wrote:
>
>
> While looping through all database fields of a
While looping through all database fields of a table, need to determine
data-type of each field before processing data in it.
How to determine which fields is of type *str*, which one is of *int type*,
etc. Can somebody assist?
Thanks
--
>
> On Friday, 28 December 2012 01:24:37 UTC-6, at wrote:
>>
>> thank you massimo for this interesting and very useful tip ... it would
>> save my good amount of time
>> btw, is this syntax available in web2py documentation?
>>
>> On Friday, 28 December 2
ame][myfld] == "")).update(
> [myfld] = myvalue)*
> *
> *
> *should be*
> *
> *
> *db((db[table_name].id == rowid) & (db[table_name][myfld] ==
> "")).update(**{myfld:myvalue})*
> *
> *
>
>
> On Friday, 28 December 2012 00:40:15 UTC-6, at wr
uot;")).update(
[myfld] = myvalue)*
thanks
On Thursday, 27 December 2012 19:41:45 UTC+5, Anthony wrote:
>
> *
> db(db[tname].id <http://db.tname.id/> == rowid).select()
>
> *or just:
>
> db[tname](rowid)
>
> Anthony
>
> On Thursday, December 27, 2012 9:35:5
thanks all for the prompt response & help.
regards
On Thursday, 27 December 2012 19:41:45 UTC+5, Anthony wrote:
>
> *
> db(db[tname].id <http://db.tname.id/> == rowid).select()
>
> *or just:
>
> db[tname](rowid)
>
> Anthony
>
> On Thursday, D
Wanted to avoid hard-coding table name in the following statement by using
var *tname*, but not successful: any tip pls?
*db(db.tname.id == rowid).select*
Thanks
On Thursday, 27 December 2012 19:10:31 UTC+5, at wrote:
>
> gr8!
> *tname,z=my_rows.colnames[0].split('.')* gav
On Thursday, 27 December 2012 07:45:52 UTC-6, at wrote:
>>
>>
>> How can we get table name from ROWS object?
>>
>> Thanks
>>
>
--
How can we get table name from ROWS object?
Thanks
--
odwsgi/6nmiDUt0ldI/discussion>
>
>
>
>
> Il giorno lunedì 24 dicembre 2012 12:21:45 UTC+1, at ha scritto:
>>
>>
>> After adding mod_wsgi in apache2, I am getting following error on apache
>> startup:
>> httpd.exe: Syntax error on line 174 of
>&g
Hi
After setting up web2py+apache with wsgi on windows, I can see web2py admin
page at http://localhost/admin/default/index. But it is asking password to
log into the administrative interface. How to set a password? Is there any
default password for first time entrance?
Thanks
AT
--
module was downloaded from
http://code.google.com/p/modwsgi/downloads/list
Can somebody assist?
Thanks & Regards
AT
--
Can we convert tuple to gluon.dal.Rows (and vise verse) using any standard
function?
The requirement is to convert executesql results to gluon.dal.Rows.
Thanks in advance
--
:
they do not appear in the list of db.table.fields and are not visualized by
default in tables (TABLE) and grids (SQLFORM.grid, SQLFORM.smartgrid).
On Tuesday, 18 December 2012 18:33:43 UTC+5, Jose wrote:
>
>
>
> El martes, 18 de diciembre de 2012 10:24:08 UTC-3, at escribió:
>>
27;),
Field.Virtual('namey',lambda row: row.taxpayer.name+'y'))
* __init__() takes exactly 2 arguments (3
given)*
On Tuesday, 18 December 2012 17:32:00 UTC+5, viniciusban wrote:
>
> See this: http://web2py.com/examples/default/changelog
>
>
> On Tue, Dec 18
n is use computed fields.
>
> But if you really need to use a SQL function, you should write your
> query by hand.
>
>
>
> On Thu, Dec 13, 2012 at 3:48 PM, at >
> wrote:
> >
> > Hi,
> >
> > Lets say we've a table with name taxpayers; it
r = db.taxpayer.id
queryset = db(db.taxpayer)
record_list = queryset.select(db.taxpayer.ALL, orderby = myorder)
**
*Thanks & Regards,
AT
--
1 - 100 of 107 matches
Mail list logo