Derek,
May be I misrepresented my scenario - These aren't exactly preferences.
In both the applications - user sees SQLFORM.grid with large number of
records. User will use filter to reduce the count.
Depending on the user - user is likely to use same filters for quite some
time - across logins/
After 10 days I've received no help on this. Is there something about the
question that is inappropriate?
On Wednesday, May 14, 2014 11:44:43 AM UTC-4, Ian W. Scott wrote:
>
> I need to take an existing db and implement a UUID referencing system so
> that I can sync local db's with a central rem
good work. data just refers to the dictionary. When you open up your json
file you just see a dictionary with one key that points to an array.
By saying data.dashboard_data you are then directly referencing the value
of the key, ie. the array in the dictionary.
There are several ways to do t
Hi John,
One step at a time, looking at your database model, how does 'copies'
relate to a book ? You are missing a foreign key reference. Are there
any other attributes that a copy may have ?
On Saturday, May 24, 2014 7:30:35 AM UTC+10, john smith wrote:
>
> I'm trying to create library sy
I am having the similar problem that is when I try to access my public dns
apache ubuntu page appear nothing happens
On Wednesday, 18 July 2012 07:01:24 UTC+5:30, lyn2py wrote:
>
> Ok it works now!
>
> Thanks rdodev!
>
> On Wednesday, July 18, 2012 4:55:38 AM UTC+8, lyn2py wrote:
>>
>> Connectio
In my impatience I just quickly edited the file. data.dashboard_data is
all that was needed.
I have managed to leave Scheme=true.
I don't fully understand how data.dashboard_data converts my dictionary to
an array, but I will be looking into this to understand.
In any case, thank you ever so
I'm trying to create library system and have a little problem. Here's my
current model:
db.define_table('tags',
Field('name'),format='%(name)s')
db.define_table('copies',
Field('is_active','boolean',default=True))
db.define_table('book',
Field('title',requires=IS_NOT_EMPTY(), label='Tytuł')
Hi,
I have a url that is supposed to receive a post request that contains xml.
This post request is a callback from an api.
For some reason the post request cannot connect to the url I have
specified. The view that is supposed to
receive the request only contains
fieldKeys = []
if req
Thank you so much Andrew - you have given me plenty to work on...
When I'm back I'll give these a go and let you know how I get on.
Many thanks again
On Friday, 23 May 2014 05:41:16 UTC+1, Andrew W wrote:
>
> Also, try scheme='https' in your case. See Core chapter of book.
--
Resources:
- http
Thanks for the update.
I wanted to know whether I cant import the function from the python module
that contains the print 'message delivered' to the HTML view and have it
printed e.g.
{{extend 'layout.html'}}
{{=test()}}
OR do I have to change the python code.
Kind regards
On Thursday, May
Yes, but to be clear, "over and over" really means "once per user session,
if and only if the user starts at an http URL", not "once per request".
Regarding your original point, note that URL() generates neither "http" nor
"https" URLs by default -- it generates relative URLs that start with "/"
I suppose you could just make it type='integer'. Then you could use the
IS_IN_SET validator and construct a list of id's from the two tables
(keeping in mind you should de-dup the list, as both tables will have many
of the same id's). Of course, if you end up storing a value of say, 5, you
won'
Are you saying you want to take a web2py template and generate the
intermediate representation in Python code? If so, you can do:
from gluon.template import parse_template
python_code = parse_template(open('path/to/template', 'rb'), path=
'path/to/views')
The "path" argument should be the path t
Well in this particular case I needn't know wether I'm storing a melon or a
watermelon's id.
I know it's kind of idiotic but I just need a 'fruit' id.
Think of it as a subclassing matter : the API I'm connecting to is doing
something along the lines of subclassing anyway, and I need to store da
How would you know whether the field stores an id of the melon table or the
watermelon table?
On Friday, May 23, 2014 4:52:58 PM UTC-4, Louis Amon wrote:
>
> Due to external constraints, I need to define two tables that are actually
> siblings and a third table's field that can choose from any o
Due to external constraints, I need to define two tables that are actually
siblings and a third table's field that can choose from any of said tables.
e.g.:
db.define_table('melon')
db.define_table('watermelon')
I need the third table's field to be a reference to either of the two first
tables.
Yes, due to a security vulnerability, the behavior was changed -- now by
default, a new session ID is created upon either login or logout, and upon
logout, the session itself is cleared. The behavior can be controlled with
these settings (default values shown):
auth.settings.renew_session_onlog
On Friday, May 23, 2014 11:57:27 AM UTC-7, Dave S wrote:
>
> I just downloaded the Normal ("stable"?) version and the Developer's
> ("nightly"?) version for use on a Centos machine,
>
Also, I can't see what I did wrong at startup, but the "admin interface is
disabled because of insecure channe
I just downloaded the Normal ("stable"?) version and the Developer's
("nightly"?) version for use on a Centos machine, and I wanted to check
that I got what I think I got.
The values I get are
# developer version
d083f552b19ac25d24020fdc6388baea
# normal
fe8e532990006964fda40478ef18d663
/dps
Nice!
Thanks Joe
:)
Richard
On Fri, May 23, 2014 at 3:28 AM, Joe Barnhart wrote:
> It's super-easy Richard. You can provide a list of Field objects or a
> list of colnames in "table.field" format and it will return a Rows object
> for you. It's almost too easy!
>
> rows=db.executesql("selec
A session should only be temporary storage related to the current session.
If you are storing preferences in user accounts then you should store them
with the user accounts, not using a session. I don't see what your problem
is.
On Friday, May 23, 2014 10:58:40 AM UTC-7, Mandar Vaze wrote:
>
>
the word you are looking for is 'render'.
response.render(dict)
Look at example 40 here.
http://www.web2py.com/init/default/examples
On Wednesday, May 21, 2014 6:30:33 AM UTC-7, ilyas toxanbayev wrote:
>
> How to convert html file to python file. Example:
>
> test.html :
>
> *Something *
>
> *{{
I have two applications using different versions of web2py
I'm using session variables to store some sort of user preferences.
First one uses version 2.3.2
Here - I set the session variables after user selects their preferences.
These values are available even after user logs out and logs back i
if you read the whole thing, he changed the way it works.
db = DAL('mssql://dsn=192.168.0.52;user=usr1;password=pwd1;')
hint: You have to use DBAPI 2.0 connection strings.
http://legacy.python.org/dev/peps/pep-0249/#footnotes
On Tuesday, May 20, 2014 10:17:09 PM UTC-7, Nguyen Minh Tuan wrote:
I've seen this before when the layout.html didn't include the character
coding portion.
On Friday, May 23, 2014 7:49:39 AM UTC-7, Carlos Cesar Caballero Díaz wrote:
>
> Hi, I'm using web2py and whoosh in an application that stores documents
> and makes google-like searches, using
> https://gith
wicked cool
thanks a bunch !
On Friday, May 23, 2014 3:28:43 PM UTC+2, Anthony wrote:
>
> You can use a lambda:
>
> db.define_table('other_table',
> Field('key_id', 'reference key',
> requires=IS_IN_DB(db, 'key.id', lambda r: '%s %s (%s)' % (r.
> person_id.first_name,
>
We will need more background and code...
What result is? a field that a user is actually filling or the content of a
variable that you can determine at the controller level?
If the later it is easy :
{{if result == 3:}}
modal html
modal javacript
in the javascript trigger the modal
{{pass}}
Ric
Hi, I'm using web2py and whoosh in an application that stores documents
and makes google-like searches, using
https://github.com/mdipierro/web2py-haystack as starting point, but I'm
having problems with the character encoding when Latin letters (á é í
etc ...) appears. Someone has faced this be
You don't follow my reflexion... I just say that if there were no relative
URL and the behaviour you describe... 60 ms over and over could have been a
great improvement...
Thanks again for you answer Niphold.
Richard
On Fri, May 23, 2014 at 4:27 AM, Niphlod wrote:
> Again.. it's not over
Hi, is possible to run web2py (windows and linux versions) in a
read-only filesystem (like a cd or dvd) using sqlite, assuming that the
application does not require write changes to the database?.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para
Not sure I follow. Please show the code.
Also, I'm surprised that code change made such a difference. My code did
limit the select to just the necessary fields. Does that table include
other fields that contain large amounts of data (e.g., a blob field)?
Anthony
On Friday, May 23, 2014 4:53:15
You can use a lambda:
db.define_table('other_table',
Field('key_id', 'reference key',
requires=IS_IN_DB(db, 'key.id', lambda r: '%s %s (%s)' % (r.
person_id.first_name,
r.
person_id.last_name, r.id
Anthony
On F
And when you hit the $20+ level, Linode is now price competitive with
Digital Ocean (but DO also offers $5 and $10 plans, whereas the cheapest
Linode is $20).
Anthony
On Friday, May 23, 2014 6:19:27 AM UTC-4, Philip Kilner wrote:
>
> Hi,
>
> On 23/05/14 11:07, António Ramos wrote:
> > my ping
I am trying to build a big 'plugin component', with a plugin manager and
therefore using the full naming conventions specified in the doc.
My model is starting to be huge (1000+ lines) and I'm trying to split it
into multiple files.
Is there a way to name these files so that web2py still under
where do i find a promo code for linode?
2014-05-23 11:19 GMT+01:00 Philip Kilner :
> Hi,
>
> On 23/05/14 11:07, António Ramos wrote:
> > my ping rtt to webfaction account is 60ms
> > my ping rtt to digitalOcean account is 85ms
> >
>
> Not sure of the significance of that if we don't know wher
Hi,
On 23/05/14 11:07, António Ramos wrote:
> my ping rtt to webfaction account is 60ms
> my ping rtt to digitalOcean account is 85ms
>
Not sure of the significance of that if we don't know where you're
pinging /from/?
We use Linode for the big stuff and DO for the small stuff, FWIW. I have
not
my ping rtt to webfaction account is 60ms
my ping rtt to digitalOcean account is 85ms
2014-05-22 18:27 GMT+01:00 Adnan Smajlovic :
> I switched to Digital Ocean based Anthony's previous suggestion, and have
> only words of praise (price/speed/support)!!! Got nginx+ubuntu and just
> needed to run
Alright, now i understand. Thats a pretty good structur, thank you very
much :)
Am Donnerstag, 22. Mai 2014 13:12:19 UTC+2 schrieb Lucas Schreiber:
>
> Hey,
> i'm sorry, i need help again :)
> i have a db table, and i want to create a üage where for every row is a
> form. my idea looks like this
Is this possible? I basically want to try and write a function that says
if the result == 3:
popup a modal box
I followed this example:
http://getbootstrap.com/2.3.2/javascript.html#modals
But I just can't figure out how to make the modal pop up in the same
window. I am thinking it will be
Say I have a table like this:
db.define_table('person', Field('first_name'), Field('last_name'),
format='%(first_name)s %(last_name)s'
Now if I build a new table:
db.define_table('key', Field('person_id', 'reference person',
requires=IS_IN_DB(db, db.person, label=db.person._format)))
My new t
HI Anthony,
Changes suggested by you in the controller to reduce the complexity of the
function actually worked, now the drop down options are changed instantly.
However, I am observing one strange problem now. Somehow the "getResults()"
function is not called when the drop down options are cha
On Wednesday, May 21, 2014 11:09:02 PM UTC+2, Apoorve Mohan wrote:
>
> Hello All
>
> I am running my web2py app over apache. At backend I start a a web2py
> scheduler using *python "web2py.py -K "*. When I do a "*ps -ef*"
> on my console, before adding any task to the queue, I see a single proc
Again.. it's not over and over.. it happens the only first
request that comes in pointing to anything http(ish). Second, third, etc
will point to https already.
On Thursday, May 22, 2014 3:08:01 PM UTC+2, Richard wrote:
>
> Yeah you are right, I forget about relative URL, since I was
because there's not native "event" on a completed download nor a "callback"
to use in ANY browser.
Simply put, there aren't tools in the HTML word to report back a finished
download.
On Friday, May 23, 2014 8:33:32 AM UTC+2, Mandar Vaze wrote:
>
> Derek,
>
> On Fri, May 23, 2014 at 1:29 AM, Der
It's super-easy Richard. You can provide a list of Field objects or a list
of colnames in "table.field" format and it will return a Rows object for
you. It's almost too easy!
rows=db.executesql("select id,code,name from lsc",
colnames=['lsc.id','lsc.code','lsc.name'])
--
45 matches
Mail list logo