if there is a guide to help
explain how to rewrite my code) if it means I get a better framework.
Thanks to you all for your fantastic work.
Rod Watkins
On Wednesday, 13 January 2016 21:35:36 UTC-8, Massimo Di Pierro wrote:
>
> It is another experiment.
>
> It is a rewrite of some of the we
This looks cool. I had not found this. I plan to study it today.
Rod
On Thursday, October 22, 2015 at 3:17:00 AM UTC-7, mcm wrote:
>
> This ractive extension could be of interest to you IMHO:
>
> http://ractive-require.codecorico.com/
>
> 2015-10-22 10:11 GMT+02:00 p a :
>
The redirection trick is good to know. Little gotchas like that can drive
you nuts. I'll put this in my vault for later when I try to learn how to
use ractive for my app.
On Thursday, October 22, 2015 at 1:11:13 AM UTC-7, p a wrote:
>
> Two more comments:
>
> - I don't intend to push all logic
Hi p a,
What you have described is basically where I am at. I have a large
multi-page app. My plan is to start as you did and "component-ize" it and
convert the bulk of the views to components I can then load with ajax. To
convert it to a full-fledged SPA, I'd then start using ractive to move
Hello everyone,
I am hoping some of you who have already been using ractive.js may be able
to help me. I'd like to create a single page app. The usual frameworks for
doing so, from what I've read, are angular, backbone (+ marionette) and
ember. I've studied angular and ember and each seems to
22:51:04 UTC-5, Rod Watkins wrote:
>>
>> Hi everyone,
>>
>> I have a question about the scheduler and communicating between the
>> scheduler process and my web app. In another post here, Niphlod suggested
>> using the database or the file system to communicat
Hi everyone,
I have a question about the scheduler and communicating between the
scheduler process and my web app. In another post here, Niphlod suggested
using the database or the file system to communicate between the scheduler
and my app--for example, to communicate some content to display
I'd like to add the ability to update my application from within the app
(similar to how web2py can update itself through the admin interface). Has
anyone tried to do this? Just curious and looking for some suggestions.
Thanks y'all
--
Resources:
- http://web2py.com
- http://web2py.com/book
Thanks Niphlod. That was very useful, especially the toolbar trick. I was
not aware of that. Many thanks!
Rod
On Wednesday, April 15, 2015 at 3:26:36 PM UTC-7, Niphlod wrote:
in order:
@alex: same thing. if you can stuff everything inside the define_table()
call you'll be sure to have
I have this question as well. And, also, what bout custom widgets assigned
after the table definition? Does that trigger the unlazification as well?
TIA
On Wednesday, April 15, 2015 at 3:05:23 PM UTC-7, Alex Glaros wrote:
regarding validator better placed in the table definition itself
what
Hi all,
Has anyone run into this problem? If you use Redis to store sessions, when
logging out, the following error is thrown. I'm looking into i8t myself,
but thought others may have run into it as well.
Thanks
Rod
type 'exceptions.AttributeError' 'MockQuery' object has no attribute
'delete'
Hi all,
Would it be possible to alter the DAL code for caching to allow the cache
key name to be passed as part of the call for selects? I ask because it
would make it much easier to invalidate cache entries in a finer grained
way,
Thanks
Rod
--
Resources:
- http://web2py.com
-
, Rod Watkins wrote:
Hi all,
Would it be possible to alter the DAL code for caching to allow the cache
key name to be passed as part of the call for selects? I ask because it
would make it much easier to invalidate cache entries in a finer grained
way,
Thanks
Rod
--
Resources:
- http
Thanks Niphlod. i had a silly typo i kept missing. Got it working great.
rod
On Tuesday, March 3, 2015 at 3:46:50 PM UTC-8, Tim Richardson wrote:
On Wednesday, March 4, 2015 at 6:43:03 AM UTC+11, Niphlod wrote:
nssm isn't rocket science, from the web2py perspective.
The point usually is
Hi everyone,
Could someone share with me their nssm configuration to run web2py on port
80 and port 443 with ssl on windows?
I've tried to follow the book as well as researching here for fixes, but
have had no luck. Either the service fails to load or if it does, I cannot
connect.
Thanks for
Hello all,
I am about ready to start deploying my site. It is a private site for about
8-10 users. I was wondering if, given the small size, whether it would be
safe to use the rocket web server, rather than apache or nginx?
Thanks
Rod
--
Resources:
- http://web2py.com
-
Good. I like its simplicity.
Thanks!
On Friday, 24 October 2014 12:42:43 UTC-7, Niphlod wrote:
rocket is perfectly fine.
On Friday, October 24, 2014 7:29:47 PM UTC+2, Rod Watkins wrote:
Hello all,
I am about ready to start deploying my site. It is a private site for
about 8-10 users. I
Excellent. I was not even aware of this thread, but its potential is great.
Rod
On Thursday, January 9, 2014 6:30:25 AM UTC-8, Massimo Di Pierro wrote:
I have something coming up soon.
On Thursday, 9 January 2014 03:47:35 UTC-6, Jesus Alvaro wrote:
Any news on progress?
El sábado, 8 de
Hello,
I have a simple question that I haven't been able to find an answer to.
I need to know how to use the URL helper to link to an external site. Here
is the code I am using: URL(scheme='http', host='forum.xxx.ca/MyBB').
But this appends the default app, controller and function to the
But how do I create the link then? I ask because it is a link used as part
of the primary menu system and it seems to only take a URL to create the
link.
Thanks again
Rod
On Wednesday, December 4, 2013 8:39:33 AM UTC-8, Jonathan Lundell wrote:
On 4 Dec 2013, at 8:22 AM, Rod Watkins
Works great! Thanks!!
Rod
On Wednesday, December 4, 2013 8:58:38 AM UTC-8, Anthony wrote:
The URL() helper just generates a string, so in place of it, just put '
http://forum.xxx.ca/MyBB'.
Anthony
On Wednesday, December 4, 2013 11:48:19 AM UTC-5, Rod Watkins wrote:
But how do I
--a security hole if
left as is. So how do I load the content of a text file into my admin page?
Sorry for the rudimentary question. And thanks in advance.
Rod Watkins
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
, Rod Watkins wrote:
Hi All,
I've managed to get logging to a file, call it app.log, using the logging
functions. I now want to be able to display the contents of that file on a
page that is secure. Currently, it loads directly through the static file
process. But I cannot restrict who
My log shows the following error--I believe it may due to psycopg2.
Traceback (most recent call last):
File C:\projects\web2py\gluon\dal.py, line 7538, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File C:\projects\web2py\gluon\dal.py, line 2713, in __init__
if
(db.tag.name,distinct=True))
On Tuesday, 27 November 2012 11:48:00 UTC-6, Rod Watkins wrote:
I need to create a comma separated list of tags from the rows returned
from a tags table.
This is how I am doing it now, but it seems wasteful. There must be a
better way.
tag_db = db(db.tag.id0).select
I need to create a comma separated list of tags from the rows returned from
a tags table.
This is how I am doing it now, but it seems wasteful. There must be a
better way.
tag_db = db(db.tag.id0).select(db.tag.name)
tag_list = []
for t in tag_db:
tag_list.append(t.name)
tags = ,
Hello everyone,
I am in the process of preparing my web app to switch over to bootstrap. I
wanted to get a better understanding of how the web2py implementation
departs in any way from the standard vanilla bootstrap library.
I already understand that the welcome scaffold app makes use of some
I have a question about timezones. What is the best way to handle datetimes
entered by users. Since they will enter a datetime in their local timezone,
what is the best way to transform that to a UTC datetime value before
inserting it into the database?
Thanks
Rod
--
in or with servers
physically within Canada. I like the idea of a vps server rather than
shared hosting since it avoids several complications. So if I could get any
recommendations or warning about who to avoid, I would really appreciate
your input.
Thanks
Rod Watkins
--
= IS_IN_DB(db(query), 'auth_user.id',
db.auth_user._format)
If you don't like the default auth_user format, you can specify a custom
format (e.g., '%(last_name)s, %(first_name)s').
Anthony
On Wednesday, May 30, 2012 6:41:58 PM UTC-4, Rod Watkins wrote:
RTM, eh. I didn't think to look
Hello everyone,
I have a quick question.
I am using the SQLFORM tool and creating a form using the generated custom
widgets. One part of the form allows a one to choose a user from a select
list (the table has a reference to auth_user). I'd like to limit the
options shown in the select list
/7
query = (db.table.field == 'xyz') #in practice 'xyz' would be a variable
db.table.field.requires=IS_IN_DB(db(query),)
put that before calling SQLFORM and voilà.
Il giorno mercoledì 30 maggio 2012 22:47:33 UTC+2, Rod Watkins ha scritto:
Hello everyone,
I have a quick question.
I
I have created a Storage object in a model to expose some settings gathered
from the database.
But I am facing a problem.
When I access the object from a view, it works correctly, e.g.,
{{=gsettings.setting_name}} produces the correct text in my html.
But if I try to access that value in my
No, no such function.
On Wednesday, 16 May 2012 12:46:26 UTC-7, rochacbruno wrote:
do you have a function named gsettings in controller?
--
Bruno Rocha
[http://rochacbruno.com.br]
Ahh, found it. I did have a function named gsettings. It was in a different
model file and I had forgotten to delete it. Thanks for the suggestion.
That was two hours wasted. :)
Rod
On Wednesday, 16 May 2012 12:46:26 UTC-7, rochacbruno wrote:
do you have a function named gsettings in
I have a question I have not been able to answer for myself.
In the web2py cookbook, there is this suggested model for handling tags:
db.define_table('data', Field('value'))
db.define_table('tag', Field('record_id', db.data), Field('name'))
I like that. But I have struggled with the correct
Wow, very cool. One question. In the cms app, a page (with an id) already
exists so the ajax post to the addtag action can add the tag to the page.
In my case the create version of the form will not have an entity with an
id yet since it does not exist in the db. Am I wrong to think than that
Hi everyone,
I am fairly new to web2py and python programming, but have had some rather
wonderful success in the month or so I've been learning it.
I am now preparing to start a real project and want to have unit tests as I
go. I've read a bit (will be doing more) about python unit testing
Hello everyone,
I have a question regarding best practices with respect to SQLform and
custom widgets.
My forms require custom layouts to achieve look I am after. So far, to
accomplish this, I have used SQLform to handle the form processing
(brilliant, by the way) and then have done my form
web2py version):
if 0:
from gluon import *
If you've got db and auth objects, you could also add:
from gluon.tools import Auth
db = DAL()
auth = Auth(db)
Anthony
On Tuesday, April 3, 2012 10:54:06 PM UTC-4, Rod Watkins wrote:
I know this has been asked before. I
,
Rod Watkins
41 matches
Mail list logo