>
>
> I hadn't realized Cherokee had been abandoned. I am not in love with
> anything. I can go back to Apache. It is certainly well-documented and
> well-supported.
> Is Nginx the cat's meow? My site is not at all performance bound. I was
> just looking for an easier option.
>
uwsgi has a bu
Thanks. The versions I got were in the apt-get repositories for that
version of Ubuntu.
I hadn't realized Cherokee had been abandoned. I am not in love with
anything. I can go back to Apache. It is certainly well-documented and
well-supported.
Is Nginx the cat's meow? My site is not at al
To be able to access web2py's admin online I had a dedicated IP address at
WebFaction, and referenced admin
with a subdomain: admin.mydomain.com. A few weeks ago I changed accounts and
when I asked for a dedicated IP
address they answered:
The connection using SNI is just as strong as a norm
>
> (note that it is sudo kill... which only did the job once...)
>
> I am really at my wit's end here after hours of research and
> reconfiguring.
> These things are so fragile and poorly documented (except for the
> cookbook, which is entirely clear as far as it goes--but like any
> cookbook,
>
I thought Apache was hard. Cherokee seems impossible to configure. A web
ui doesn't help much if it doesn't work. I have tried to follow the
application cookbook carefully. I have failed in some fundamental way. I
have to say that of the dozens of webpages I have looked, there are many
inc
Anthony,
It works.. Thanks..
On Tue, May 15, 2012 at 10:05 AM, Yogesh wrote:
> Hello anthony,
>
> i will try this.. Though i remember me getting an error. will keep posting
> for errors if any..
> thanks..
>
>
> On Mon, May 14, 2012 at 6:22 PM, Anthony wrote:
>
>> After you define your custom
Thank you all for providing me with examples of how to put my model into
modules. They're very helpful to get me started on this subject.
Kind regards,
Annet.
Thank you very much Anthony.
That is exactly what I was looking for.
When I started this project, I read the first few chapters, but then "dived
in". I must have missed the thread part.
On Tuesday, May 15, 2012 6:46:33 PM UTC-4, Anthony wrote:
>
> I guess one of the things I am unclear on is
Hi.
I got a error "AttributeError: 'thread._local' object has no attribute
'request'" when trying to run web2py with wsgi.
The application was "welcome" which is sample application of web2py.
in db.py
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db, hmac_
I'm guessing he's looking for something like I am,
http://cookbook.mongodb.org/patterns/count_tags/
{
"title" : "A blog post",
"author" : "Kristina",
"content" : "...",
"tags" : ["MongoDB", "Map/Reduce", "Recipe"]
}
using DAL, how would I go about inserting that list, what wo
> I think I'm not mistaken by saying that celery is the most used library
> for this kind of operations, it's written in python and founded on rabbitMQ
> (also on others, but primarily rabbit) to handle queues. Seems huge, but
> it's fairly easy to setup (especially if you planned to use rabbi
No problem, it happens to everyone. :-)
Anthony
On Tuesday, May 15, 2012 6:33:59 PM UTC-4, Gerald Klein wrote:
>
> OK, This is the post where I make a total fool out of myself, my contrite
> apologies. I don't know if I had edited it to many times and was just not
> seeing it. At the end of the
>
> I guess one of the things I am unclear on is how granular the Web2Py
> framework is. Is there one db.py running for all sessions or is there a
> db.py running for each user session?
>
> If a db.py runs for for each user session independent of the other users,
> then customizing the DAL setu
OK, This is the post where I make a total fool out of myself, my contrite
apologies. I don't know if I had edited it to many times and was just not
seeing it. At the end of the day when I read the email and opened the code
there it was. I even recoded the previous part and it worked fine. Once
You need a domain name, a PTR record a CNAME whatever is good.
OR you can put *ANY* hostname you want in your /etc/hosts file and you
will see that facebook will accept that.
mic
2012/5/15 Christian Foster Howes :
> i don't understand,
>
> https://graph.facebook.com/oauth/authorize?redirect_uri
>
> class MyObject(object):
> def __init__(seld, db):
> self.db = db
> self.T = current.T
> self.request = current.request
>
> self.fields = [
> Field("field1", label=self.T("Foo")),
> Field("field2),
>
>
i don't understand,
https://graph.facebook.com/oauth/authorize?redirect_uri=http%3A%2F%2Fjuegozona.com%2Fuser%2Flogin&response_type=code&client_id=225870074195502
is not an option? i think that is what facebook needs.
cfh
On 5/15/12 13:54 , www.diazluis.com wrote:
Thanks for responding
n
Hello all, I need some help on this.
I'm trying to distribute my app as an exe file, and it should run as a
windows service.
Tested on trunk an also with windows binary distro.
The web2py was registered as windows service, but don't starts.
D:\web2py_win>web2py.exe -W install
>>
> web2py Web
And just to be clear, defining models in modules and defining modules using
classes are two independent design decisions -- you can use classes even in
regular model files, and you can use modules without using classes. If you
want, you can just use regular functions in modules:
*/modules/mymod
Thanks for responding
no, not possible.
would have to be able to specify a dns PTR type, and I have that option
CAS system not work for me, I retornava error "infinite redirect"
I had several customers excited about the idea of being able to log into
facebook ... pity it does not work ..
El
For example see attached, it isn't complete but will give a better example.
On Tue, May 15, 2012 at 1:43 PM, Bruce Wade wrote:
> Well one example is my location class, which contains countries,
> provinces, and cities models. Having one class allows me to write a single
> API that is self conta
Well one example is my location class, which contains countries, provinces,
and cities models. Having one class allows me to write a single API that is
self contained and very modular to handle any location related task.
On Tue, May 15, 2012 at 1:35 PM, Bruno Rocha wrote:
> I am looking in to it
I am looking in to it, and realized that there ia a better, simple and more
elegant way.
In Django models, it is very commom to use a subclass named Meta, so I will
try to run something like.
class Dog(BaseModel):
self.name = Field("name")
self.guardian = Field("guardian", "reference g
Bruce,
Maybe I'm a little simple minded today ...
Could you give an example where you would have more than one model per
class?
On Tuesday, May 15, 2012 3:43:33 PM UTC-4, Bruce Wade wrote:
>
> These examples are only good if you have 1 model per class. I prefer the
> design used in Auth with a
Hi!
I have it on my only file at models folder, at first line.
from gluon.custom_import import track_changes; track_changes(True)
When using GAE SDK, this option does NOTE reloads modules!
The tickets shows erros on wrong line numbers... and changes made on module
files are only displayed when
Hi
I'm trying to use the plugin_lazy_options_widget to build a dependent
select list. I have to fields on the screen, both with the IS_IN_DB
validator and values available in the second depend on what is selected
in the first. This widget from s-cubism seems like just the thing, but
I can't
These examples are only good if you have 1 model per class. I prefer the
design used in Auth with a define_tables method.
On Tue, May 15, 2012 at 12:41 PM, Bruno Rocha wrote:
> Better example:
>
>
> *# models/db.py*
> ...
> db = DAL(".")
> ...
>
> *# modules/datamodels/base.py*
>
> class Bas
Better example:
*# models/db.py*
...
db = DAL(".")
...
*# modules/datamodels/base.py*
class BaseModel(object):
def define_table(self):
self.db.define_table(self.tablename, *self.fields, **self.params)
*# modules/datamodels/dog.py*
from gluon import current
from gluon.dal import
Bruno mentioned modules, not conditional models.
In order to avoid "NameError: name 'task_function' is not defined":
from gluon.scheduler import Scheduler
myscheduler = Scheduler(db, dict(task_name=None))
On Wednesday, December 28, 2011 7:36:04 PM UTC-8, Brian M wrote:
>
> This is simply a note for anybody else who may come across this error w
postgresql definetely scales also with write intensive operations without
blocking.
homemade task queues are real funny to code but gets messy really
soon.blocking operations, tasks that fail and need (or don't) to be
requeued, priorities, timeouts, newtork splits, and so on.
I think I'm not
*# models/db.py*
...
db = DAL(".")
...
*# modules/datamodels/myobject.py*
from gluon import current
from gluon.dal import Field
class MyObject(object):
def __init__(seld, db):
self.db = db
self.T = current.T
self.request = current.request
self.fields = [
Not sure using conditional models is "premature optimization" it is just
better design.
On Tue, May 15, 2012 at 12:14 PM, pbreit wrote:
> "I'd better prevent running into performance problems"
>
> I generally advise against premature optimization.
>
--
--
Regards,
Bruce Wade
http://ca.linke
Il 15/05/2012 14:56, Gerald Klein ha scritto:
*def index():*
*session.counter = (session.counter or 0) + 1*
*return dict(message="hello", session.counter)*
the right code for building a dictionary is the one suggested by
Richard, in
"I'd better prevent running into performance problems"
I generally advise against premature optimization.
Is there any progress? Are you able to use it?
2012. április 27., péntek 23:06:40 UTC+2 időpontban szimszon a következőt
írta:
>
> What distrib is this?
> What is the content of GPGKEY?
>
> The list is from python shell or from web2py?
>
> 2012. április 27., péntek 17:34:06 UTC+2 időpontban weheh
> I strongly advicee the use of the scheduler because your requirements will
> be fullfilled best from that than a homemade task queue, at least, if not
> trying to use celery.anyway, just my 2 cents:
> SQLITE write operations are locking the entire database. one of 2
> controllers
+1 to Francisco
gEdit + plugins
Richard
On Tue, May 15, 2012 at 2:54 PM, Richard Vézina wrote:
> +1
>
>
> On Sun, Feb 12, 2012 at 5:41 PM, Francisco Costa
> wrote:
>
>> at tymr we use gEdit + plugins
>>
>> On Feb 12, 4:17 pm, Anthony wrote:
>> > > I am also comfortable with the web based IDE
+1
On Sun, Feb 12, 2012 at 5:41 PM, Francisco Costa wrote:
> at tymr we use gEdit + plugins
>
> On Feb 12, 4:17 pm, Anthony wrote:
> > > I am also comfortable with the web based IDE. However even with
> youadworld
> > > there was over 5000 files to port over. (Most didn't have to be ported
> > >
> I am working exclusively with web2py, over 2 years (8-24 hours a day *7)
> plus holydays. And I never used an IDE. I use Sublime-text-2 and VIM, I
> have Python code completion and I have set some web2py completions for
> common code snippets both in VIM and Sublime-text.
> But, If I wanted
yes, let me explain better.
Having a task queue that updates heavily a sqlite database while a web
application needs to read it is not a good idea. Sqlite is a wonderful
database and supports some syntax that others "big databases" dream about,
has transactions, is flexible, multiplatform,
In controller :
def index():
session.counter = (session.counter or 0) + 1
return dict(message="Hello from MyApp", counter=session.counter)
View :
{{=message}}
Number of visits: {{=counter}}
>From the book and it should work...
On Tue, May 15, 2012 at 2:16 PM
>
> outside of the string passed to the message variable in the call to dict
> my code is exactly the same, I didn't have any luck with the version above
> this so I coded this instead. As far as the syntax error, I would be happy
> to know where it is as I can't see it. And yes the trace is po
Yes, you're missing the -->> counter=...before the second arg
you're passing:
Your statement:
return dict(message="hello", session.counter)
should be
return dict(message="hello", counter=session.counter)
-Jim
On 5/15/2012 1:16 PM, Gerald Klein wrote:
outside of the string passed t
outside of the string passed to the message variable in the call to dict my
code is exactly the same, I didn't have any luck with the version above
this so I coded this instead. As far as the syntax error, I would be happy
to know where it is as I can't see it. And yes the trace is pointing to a
JungHyun,
I've deployed the default web2py app to Openshift with no issues but
haven't played with it much. I'd be happy to share my project dir so you
can see how I've structured my wsgi file and various libs like gluon so
that the app will run.
I'll try and create a mysql cartridge and put
I'm seeing the same thing. Not working in row objects...
On 5/15/2012 1:11 PM, Richard Vézina wrote:
Not working in this context :
rows = db().select(db.tab1.ALL)
for r in rows:
*r._id* # KeyError
But this work :
db[request.args(0)].FK_id.represent=\
lambda FK_id, record: A(
Yes, there is a master database that has the database designation for the
institutions.
I guess one of the things I am unclear on is how granular the Web2Py
framework is. Is there one db.py running for all sessions or is there a
db.py running for each user session?
If a db.py runs for for each
Hi Vasile,
You've probably heard that the 1.0 release for OrientDB is
out:
http://code.google.com/p/orient/downloads/detail?name=orientdb-graphed-1.0.zip
I'd be very curious to take a look at the samples you were working on and
if you're still interested in working on a DAL adapter.
Cheers,
Not working in this context :
rows = db().select(db.tab1.ALL)
for r in rows:
* r._id* # KeyError
But this work :
db[request.args(0)].FK_id.represent=\
lambda FK_id, record: A(lot_number_dict[FK_id],\
_href=URL(r=request, f='read', args=(request.args(0),
str(re
what are you using the generate the return URL that you pass to facebook
when you make the login request? it looks like that is the culprit - i
always use a hostname and not IP address for the return URL.
On Tuesday, May 15, 2012 7:17:02 AM UTC-7, www.diazluis.com wrote:
>
> I'll try to explain
>
> 1. with every other database that is not sqlite, it's safe because how
> most relational db work, transactions make you have always a consistent set
> of results (if you use them correctly!!)
It's still "safe" in SQLite -- you just might get a little more blocking
than you would with othe
there are some (complex) examples of models in modules floating around the
group. the simple suggestion bruno made would look something like this:
module/mytable.py
def init():
current.myapp.db.define_table()
return
then in your conditional model file:
current.myapp.db= db #get the db conn
yes, thank you so much. i learned some very subtle things here and i love
the way it works. thank you so much. web2py is so powerful and so cool.
I strongly advicee the use of the scheduler because your requirements will
be fullfilled best from that than a homemade task queue, at least, if not
trying to use celery.anyway, just my 2 cents:
SQLITE write operations are locking the entire database. one of 2
controllers (or modules
>
> I think you can refer to a custom id field with db.table._id (and get the
> name with db.table._id.name).
Oh yeah, db.table.id works as well, even for custom id fields.
Anthony
If you resort to using Python code, let me know. I just did this for one
of the lists in my database that has hit counts, dates, etc.
On Sunday, May 13, 2012 3:27:56 PM UTC-4, pbreit wrote:
>
> I'm not sure that query will do what you want. I think you need to sort by
> views separately.
You have a syntax error in your code, and the error appears to be reporting
that syntax error. Are you saying the line number reported in the traceback
doesn't match up with the actual line number in your code? Can you show the
full code (so we can count the line numbers) as well as the full tra
hm, I checked online book and example you mentioned, contains variable name
in dict function, while your example above, doesn't. Is this the example
you are talking about? (
http://web2py.com/books/default/chapter/29/3#Let%27s-count).
def index():
session.counter = (session.counter or 0) + 1
If there is a typo in the book report it here on the list with an email
object like : book typo
And give details and link the proper page anchors to find the book section.
Richard
On Tue, May 15, 2012 at 12:00 PM, Gerald Klein wrote:
> All suggestions that I will check out, but this is actual
Still there in the yesterday trunk...
Richard
On Tue, May 15, 2012 at 11:59 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> I don't see any ticket about that on google code...
>
> I will create it if Massimo tell me.
>
> In the mean time I will try the trunk.
>
> Richard
>
> On Tue, M
All suggestions that I will check out, but this is actually character for
character from the web2py site. I guess that's why I am scratching my head.
That and the fact that the debug references text that is not on the page. I
am always leery of platforms that do a lot for you, sometimes you giv
I don't see any ticket about that on google code...
I will create it if Massimo tell me.
In the mean time I will try the trunk.
Richard
On Tue, May 15, 2012 at 11:40 AM, Jim Steil wrote:
> Yes, that is a situation I ran into some time ago. In the past even if
> you used a custom ID column y
I too think Bruno has the right answer, however, when it comes to Python
programming I am not yet proficient enough to translate my model files into
modules and use conditional models to instantiate them :-(
I hope one of you can provide me with a working example that I can explore.
Kind regar
I don't think he needs to return it to the view if in the view he is
calling session.counter, but yes if he call the counter like this :
{{=counter}}
counter has to be pass by the function to the view.
Richard
On Tue, May 15, 2012 at 9:53 AM, Ivica Kralj wrote:
>
> I think you are missing a v
Ok, I think I had problem with model definition : 'db.auth...' : foreign
key were quoted... I have this issue since a long time, If I was removing
quote I didn't have proper representation...
Fixed now...
But now it seems that I have problem with the use of id in case were I have
define a custom
Hello!
Is there some web2py appliance to create quotes & invoices, handling
customers etc. suitable for freelancers, iow. no corporate environment?
I'm aware about CRM, but didn't found anything for invoices...
Sincerely,
Gour
--
The working senses are superior to dull matter; mind is higher
It looks like the reference links in the web2py book aren't working.
For example, the [pythonsecurity] link in the introduction (
http://web2py.com/books/default/reference/29/pythonsecurity) returns an
error: invalid function (default/reference).
I hope that may be an easy fix for someone.
How
Wait...
On Tue, May 15, 2012 at 10:37 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> Ok if I copy my custom auth models into a new app it keeps loading the
> page for ever and don't create the table at postgres level.
>
> Richard
>
>
> On Tue, May 15, 2012 at 10:19 AM, Richard Vézina
It worked as expected.
Thank you very much!
Marian
W dniu wtorek, 15 maja 2012 15:55:54 UTC+2 użytkownik Anthony napisał:
>
> In the controller that generates the grid, you can do:
>
> if request.args and request.args[-3] == 'view':
> response.view = 'path/to/other_view.html'
>
> or you can us
On Tuesday, May 15, 2012 10:13:42 AM UTC-4, Craig wrote:
>
> When a user logs on, there is a field in the profile that contains the
> designation of the database for the institution associated with that user.
>
Does that mean there's a master database that stores the user records so
you can acce
Update: This feature is actually documented in
http://web2py.com/book/default/chapter/07#One-form-for-multiple-tables,
what a shame I didn't see it earlier...
Regards
On Sunday, May 13, 2012 9:30:41 PM UTC-3, csantos wrote:
>
> Hi,
> Suppose I have two tables, with a one-to-one relationship:
>
Ok if I copy my custom auth models into a new app it keeps loading the page
for ever and don't create the table at postgres level.
Richard
On Tue, May 15, 2012 at 10:19 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> Yes I try a new app without defining auth models myself, just change
Yes I try a new app without defining auth models myself, just changed the
connection string for postgres and it works.
I don't have the typo in my code, it maybe happen when copy/paste the code
somehow.
I just add this : auth=Auth(db, *hmac_key=Auth.get_or_create_key()*)
No change.
Richard
On
On Tuesday, May 15, 2012 10:12:32 AM UTC-4, Massimo Di Pierro wrote:
>
> Agreed.
>
Nevertheless, we need the book to be editable again so we can fix
all the other errors that have been reported and start documenting newer
features. :-)
Anthony
I'll try to explain better:
I need my app to do login using facebook.
you can test in juegozona.com
juegozona.com is configured in the "panel WebFaction" to use the ip:
108.59.6.232
http://i.minus.com/iFYHPECFl6LpM.png
when the visitor tries to login, facebook return to the page from
which you
>
> Meanwhile, shall we keep the discussion about how to utilize that
> layout_jqm.html (no matter where it locates)? I am using two experimental
> callers as below:
>
> cat myapp/views/generic.mobi
> {{extend 'layout_jqm.html'}}
> {{response.headers['Content-Type'] = 'text/html'}}
> # the rest
When a user logs on, there is a field in the profile that contains the
designation of the database for the institution associated with that user.
On Monday, May 14, 2012 4:54:54 PM UTC-4, Anthony wrote:
>
> The connection string in the call to DAL() can be determined dynamically
> based on info
Agreed.
On Tuesday, 15 May 2012 08:42:31 UTC-5, Richard wrote:
>
> With what happen with pyjamas recently (see thread on python-list) I doubt
> that there will more work involve documenting pyjamas into web2py until the
> survive of pyjamas will be granted.
>
> Richard
>
> On Tue, May 15, 2012 a
Open a ticket about this. Thadeus wrote that implementation and than he
disappeared. I have been unable to contact him for more than 1 years. I
will try change it.
On Monday, 14 May 2012 22:52:58 UTC-5, Ray (a.k.a. Iceberg) wrote:
>
> The point here is that the web2py out-of-box layout.html and
You need html5 websockets to do what you want to do. That requires an async
socket that can keep many connections open for long time. You are right,
some hosts block that. They do not specifically block tornado.
On Tuesday, 15 May 2012 04:45:24 UTC-5, stefaan wrote:
>
>
> Please correct me if I'
Please bring this up to web2py-developer. If there is consensus on this I
will not oppose.
On Tuesday, 15 May 2012 00:49:41 UTC-5, Ray (a.k.a. Iceberg) wrote:
>
> Hi Massimo,
>
> Thanks for telling me such undocumented trick to use other app's layout
> file. However I still think a built-in layo
There is a typo in your code:
uth.settings.hmac_key='sha512:8e95c268-cc31-4119-890d-a5790d3e05d3'
should be
auth.settings.hmac_key='sha512:8e95c268-cc31-4119-890d-a5790d3e05d3'
although this is probably not the cause for your problems. Does it work if
you use sqlite? Does it work if you use po
right...realized that after I sent it (long day)
any ideas?
On 5/15/2012 9:53 AM, Massimo Di Pierro wrote:
It is not really a comment:
http://lachy.id.au/log/2005/05/script-comments
On Monday, 14 May 2012 14:25:07 UTC-5, Larry Wapnitsky wrote:
Here's what it's generating:
|
White
In the controller that generates the grid, you can do:
if request.args and request.args[-3] == 'view':
response.view = 'path/to/other_view.html'
or you can use conditional code in the main view for the page:
{{if request.args and request.args[-3] == 'view':}}
[custom code to display record]
I think you are missing a variable name for session.counter in return.
e.g.
return dict(message="Hello", counter=session.counter)
On 15 May 2012 13:56, Gerald Klein wrote:
> I am working through the tutorial on the web2py site, checking web2py out
> and I keep getting errors for thing
It is not really a comment:
http://lachy.id.au/log/2005/05/script-comments
On Monday, 14 May 2012 14:25:07 UTC-5, Larry Wapnitsky wrote:
>
> Here's what it's generating:
>
> Whitelisted Addresses "jqgrid_ips_pager">