I finally figured this out (yesterday was my second night trying to get
this to work). It was the Linux firewall. I added a few lines to iptables
and after that I could open the admin panel. It's not my server so I was
unaware that iptables was even installed.
Sorry for this. At least I now
you can't load a html fragment at wish. The second LOAD is found, it
triggers the loading: it's not the way to do it.
Still, until you can't find out why you can't attach an event to your
button, all the remains of the discussion is useless: let's start simple
(single button in the page), then
check again: there's no way mine and Anthony's last snippets generates a
single A holding two addresses
On Thursday, April 18, 2013 4:04:26 AM UTC+2, 黄祥 wrote:
thank you so much for your hints niphlod and anthony, i've tried both of
your hints, but the result is not what i'm expected (no
Ok let me start simple see where i get. Will share what i get
On Thu, Apr 18, 2013 at 9:34 AM, Niphlod niph...@gmail.com wrote:
you can't load a html fragment at wish. The second LOAD is found, it
triggers the loading: it's not the way to do it.
Still, until you can't find out why you can't
Can somebody pleas respond?
We are quite desperate here about this...
--
---
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.
yes, you are right, my mistake, the problem is on the data itself, because
i input it via populate.
thank you so much for your hints and suggestions
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop
On Wed, Apr 17, 2013 at 5:25 PM, Niphlod niph...@gmail.com wrote:
does this work when queueing, e.g. a function defined in models ?
No and
maybe yes if you make your enqueue method that will submit the
function defined in a model, but under the hood it will run a predefined method
in a
Hi@all,
I tried to display an image within the top fixed header menu.
All I can get is to display the alt text.
How to do that?
Is there a kind of tutorial explaining how the graphical layout works?
Where can I read about that?
--
---
You received this message because you are subscribed to
here ... https://groups.google.com/d/msg/web2py/js0VAKK6Dlw/CJ46I-0wT0wJ
That is what you more or less described.
if this works out in rq linearly I'll cross out port web2py's scheduler
to redis from the todo list (it will be a nice project though) :P
rq has the react fast juice but doesn't
if you're using the scaffolding app then set response.logo accordingly
by default is
response.logo = A(B('web',SPAN(2),'py'),XML('trade;nbsp;'),
_class=brand,_href=http://www.web2py.com/;)
replace, e.g., the B() element with an IMG() one and you're good to go.
On
I have the following in models/0.py:
settings.title =CENTER(IMG(_src=URL('static','images/us_crest_comb.png'),
_style=height:120px; width:auto;,
_alt=T('US-Crest-logo')))
and in menu.py:
response.title = settings.title
Read the file
Apologies, I misread your mail. Niphlod's answer is the correct one for
your purposes.
On 18 April 2013 11:11, Johann Spies johann.sp...@gmail.com wrote:
I have the following in models/0.py:
settings.title =CENTER(IMG(_src=URL('static','images/us_crest_comb.png'),
Now I remember seeing that thread, at the time I was with other things
and end up forget it.
I will see, later tonight or maybe this afternoon, what I can do about
queueing functions in models.
On Thu, Apr 18, 2013 at 10:03 AM, Niphlod niph...@gmail.com wrote:
here ...
Thanks.
I will test your suggestions.
I am currently working with Postgresql 9.1 and it takes nearly 5 minutes to
count a table 42 000 000 records.
It will if we can have the option in the grid to not do a count of the
result as it is part of the problem in my case. If for instance the query
that seems more a problem with the format of the date than the fact that it
has to be timezone-normalizedwhat language translation are you using ?
PS: what I meant with landing page is that you're sure that the user will
hit that page before arriving to the form.
If you are sure, there's no
the count affects only the grid for pagination purposes. There's no other
reason to do a count to display a grid.
This means that if you pass cache_count=10, you'll end up not having any
1,2,3 links at the bottom to fetch the next page of results.
Putting that aside, you can pass whatever thingy
Greetinfs to all.
I am facing a problem with count on a db that i am using the following to
create the query.
class CDRI():
def __init__(self,cdri_db):
self.db=cdri_db
def
_generate_querry(self,device_id,date_from=None,date_to=None,source=None,destination=None):
.select() will extract the table names from both the query and the fields
passed to .select() -- this is because we allow an empty query, like
db().select(db.mytable.ALL). However, .count() only extracts the table
names from the query, not from the distinct argument to .count(). Because
your
Hello,
I'm implementing Google Wallet into my application. The most important
aspect for me is to allow a Google federated login. I don't want to use
Janrain because the prices are ridiculous. Are there any examples on how to
implement this? My Google searches are aren't providing any examples
In psql I can do:
select * from isi.rauthor A
where
A.addressfulltext@@'south africa'
but the following
l = db(rauthor.addressfulltext@@'south africa').select()
results in
TypeError: %d format: a number is required, not NoneType
Why?
Model:
from gluon.dal import SQLCustomType
tsv =
Hello All
consider the example model file below :
db = DAL('sqlite://storage.sqlite')
signature = db.Table(db,'auth_signature',
Field('created_on','datetime',default=request.now,
writable=False,readable=False, label=T('Created on')),
For me, db(rauthor.addressfulltext@@'south africa').select() results in
SyntaxError: Set: no tables selected because the query is a string and no
fields were passed to .select().
Anthony
On Thursday, April 18, 2013 7:46:42 AM UTC-4, Johann Spies wrote:
In psql I can do:
select * from
Have the auth tables been defined at that point. In any case, to avoid
pre-mature table definition, try replacing auth.settings.table_user with:
'reference %s' % auth.settings.table_user_name
Anthony
On Thursday, April 18, 2013 7:51:19 AM UTC-4, Loïc wrote:
Hello All
consider the example
Great!
Thank you Anthony
Le jeudi 18 avril 2013 13:59:18 UTC+2, Anthony a écrit :
Have the auth tables been defined at that point. In any case, to avoid
pre-mature table definition, try replacing auth.settings.table_user with:
'reference %s' % auth.settings.table_user_name
Anthony
On
One more question Anthony,
If I have other tables which reference themselves like :
db.define_table('mytable',Field('myfield','string'))
db.define_table('my_other_table',Field('myTable','reference mytable'))
should I replace the* 'reference mytable' *statement with* 'reference %s' %
doh! Totally forgot about this - grthanks!!!
--
---
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 more options,
That's clear for me now
Thank you
Le jeudi 18 avril 2013 14:32:12 UTC+2, Anthony a écrit :
This syntax:
'reference %s' % auth.settings.table_user_name
is not about being lazy tables compliant -- it is just a way to construct
a string when part of the string is stored in a variable
In your other examples, one or more fields are passed to the .select(), so
the DAL has a way to know which table is being queried. When you pass only
a string as the query and no fields to .select(), the DAL has no way to
know which table is involved (it does not inspect string queries -- it
That is a very old version of web2py. It is hard to support something so
old. you should be able to upgrade and nothing should break.
The only case I have seen something like this is when a string field
contained data (strings) and was converted in a reference field using
sqlite. Or a
i am not using any specific language translation. It should be the default
language.
i also think that it is timezone issue, but not very sure how to do the
normalization. The model i use is Field('modified_on', 'datetime'),
I see that there is no timezone attached at the end.
On Thu, Apr
I'm not even sure I'll go with Angular myself at this point. I'll delve
more deeply into that framework once I feel I have a sufficient grasp of
Ember.
For the whole server-side dynamically generating client-side, I'm afraid
it's not my vision.
The direction things are moving toward is to
is meteor the answer?
2013/4/18 Magnitus fbunny2...@hotmail.com
I'm not even sure I'll go with Angular myself at this point. I'll delve
more deeply into that framework once I feel I have a sufficient grasp of
Ember.
For the whole server-side dynamically generating client-side, I'm afraid
Lio,
there are potentially 2 problems here:
- the request thread is using too much memory/has a memory lead
- the size of the file is too large.
i know you are having the second problem, not sure about the first. it's
possible that the second problem is being reported to you with a
it's definitely not for a lot of reasons, but if you like to dwelve with
*buzzword*, give it a spin.
On Thursday, April 18, 2013 5:13:55 PM UTC+2, Ramos wrote:
is meteor the answer?
2013/4/18 Magnitus fbunn...@hotmail.com javascript:
I'm not even sure I'll go with Angular myself at this
the whole point of timezone normalization is NOT having a timezone
attached at the end.
It's storing in the database as UTC and displaying as localized to the
users.
Are we sure that you fully grasped what the timezone implementation on the
IS_DATE* validators in web2py and that that idea fits
Hello Christian,
Thank you very much for explaining. The reason is clear to me now. I will
try to work around it.
Regards,
Lio
On Thu, Apr 18, 2013 at 11:23 PM, Christian Foster Howes
cfho...@gmail.comwrote:
Lio,
there are potentially 2 problems here:
- the request thread is using too
Hello,
I have a pretty weird behavior with web2py 2.3.2 as stated in the object.
When I am connecting to app with Chrome in windows the session file is
named like this 192.168.1.102... But my IP is 192.168.1.110 and in
auth_event I see the proper IP address.
Any idea?
Thanks
Richard
--
Ok, erase cookies seems to have solve this one...
Richard
On Thu, Apr 18, 2013 at 11:55 AM, Richard ml.richard.vez...@gmail.comwrote:
Hello,
I have a pretty weird behavior with web2py 2.3.2 as stated in the object.
When I am connecting to app with Chrome in windows the session file is
Hi I got a site which calls some major calculating. So I thought lets use
the cache decoator to speed up second time loads.
But it doesnt seem to have any effekt on pageloading times.
@cache(returnDatestring()+Somepage, time_expire=86000, cache_model=cache.
disk)
def Somepage():
#some time
yes. I am with you. I didn't store timezone in the db, and will be using
UTC for all input to the db too.
I hope to find a way to use the detected timezone to use in the .represent
method for the sqlform.grid.
db.prototype.modified_on.represent = lambda value, row :
Basically it stores the output of the function, in your case the output is
the rendered view.
For more info about cache, have a look here:
http://web2py.com/books/default/chapter/29/04#cache
Paolo
On Thursday, April 18, 2013 6:17:36 PM UTC+2, BlueShadow wrote:
Hi I got a site which calls
Why would you be using 'returnDatestring + Somepage' as your key to the
cache?
On Thursday, April 18, 2013 9:17:36 AM UTC-7, BlueShadow wrote:
Hi I got a site which calls some major calculating. So I thought lets use
the cache decoator to speed up second time loads.
But it doesnt seem to
What's the question that it's supposed to answer?
On Thursday, April 18, 2013 8:13:55 AM UTC-7, Ramos wrote:
is meteor the answer?
2013/4/18 Magnitus fbunn...@hotmail.com javascript:
I'm not even sure I'll go with Angular myself at this point. I'll delve
more deeply into that framework
So you are basicly saying I did exactly what I wanted to do save the entire
generated page on disk.
So how can I find out what is taking so long for the page to load?
@Derek: thats easy: I want the page cached from 00:05 to 23:59. because
every day at midnight the data changes. if for some
On Thu, Apr 18, 2013 at 10:20 AM, Ricardo Pedroso rmdpedr...@gmail.com wrote:
Now I remember seeing that thread, at the time I was with other things
and end up forget it.
I will see, later tonight or maybe this afternoon, what I can do about
queueing functions in models.
I pushed it to
as i understood , the discussion seems to be the around single page apps
that have its code in the client and then just push/pull data from the
server.
meteor takes care of this problem and we just have to subscribe to changes
in reactive data sources.
Its less code to worry about. No ajax! Just
deletable = False
if 'edit' in request.args:
record = db[table](request.args[-1])
if some condition of record:
deletable = True
grid = SQLFORM.grid(db[table], deletable = deletable)
On Sunday, April 14, 2013 3:12:31 PM UTC-4, Dan wrote:
Mark Kirkwood mark.kirkwood@... writes:
El miércoles, 3 de abril de 2013 08:11:21 UTC-3, Annet escribió:
I defined the following table:
db.define_table('scrptNxt',
Field('nodeID','reference node',requires=IS_EMPTY_OR(IS_IN_DB(db,'
node.id','%(id)s',zero='Select a
value')),ondelete='CASCADE',writable=False,readable=False),
for starters, not all sites can be converted into the single page app
paradigm.
On the brigther note, if you need just that, then meteor is built with that
agenda in mind: try to diverge just a little and you won't leverage its
potential.
On Thursday, April 18, 2013 7:20:57 PM UTC+2, Ramos
for starters check the cache page in appadmin (go to database
administration, then click cache at the top) to see hot many hits/misses
you find.
In a perfect world ( i.e. your cache works as expected) you'd have 1 miss
and n-1 hits with n being the number of times your page is accessed.
On
Note, the cache doesn't do anything to clear out old items, so if you
change the key every day, the previous day's page will still remain in the
cache. You might want to do something to purge the old page out of the
cache.
Also, are you absolutely sure returnDatestring() is returning only the
Another similar (though somewhat less mature) option is
Derbyhttp://derbyjs.com/(also built on Node.js). Advantages over Meteor are
two-way data binding
and the ability to render on the server as well as the client (for search
engine crawling and faster initial page loads).
Anthony
On
I was a little worried about the no sound or subtitles part but it's
actually a really great video!. I'd love to see more like this, especially
if commentary or notes could be added.
On Wednesday, April 17, 2013 6:19:06 AM UTC-4, Ramos wrote:
http://vimeo.com/8229814
--
---
You received
@Niphlod,
People come here to get answers to their questions from experts like you
and not to be knocked down on. Your sarcasm of late is kind of offputting.
Kindly tone it down for the sake of this community.
Thanks
On Wednesday, April 3, 2013 2:31:20 PM UTC+1, Niphlod wrote:
the main issue
Thanks for the responses, a number of useful pointers there.
I have had a look at the sqlhtml.py and html.py to see if I can adapt one
of these to effectively produce a json version of a form which can be
validated when it is submitted. I came to the conclusion that I didn't
understand enough
I'm not familiar with the Django way. Web2py is my first serious attempt at
web programming. What is the Django way, or (alternatively) what is the
cleanest way, to use database views in web2py? Should I just do the
define_table with migrate=False described by Vasile in this thread, or is
Well, there is no one-size-fit's-all, and there is never gonna be...
Currently, expecting a direct-connection with the database from the client
side, still raises many eye-brows, and (IMHO) rightfully so...
But that is exactly the expectation that frameworks like meteor are having.
Iy is not
Hi,
I wanted to get some information on my cache usage. so I went to the cache
page in appadmin which worked fine at that moment but told me I need guppy
in order to get the size of the cache.
So I installed it. now I get an error page which tells me guppy cannot be
imported.
I restarted
never tried to knock anyone down.
As a matter of fact, I'm quite confident to have helped Annet lots of
times, without asking anything in return.
If it's something on web2py's side to get patched I'm more than glad to
chime in, but I decided to not tutor on html+js and spend the time
saved
defining a fake table that points to the view and set migrate=False is
definitely the best (and recommended) way to do it.
On Thursday, April 18, 2013 10:19:05 PM UTC+2, David Ripplinger wrote:
I'm not familiar with the Django way. Web2py is my first serious attempt
at web programming. What
nice and easy :D keep up with the good work.
As soon as the official plugin page gets revamped/refreshed, remember to
post it there.
PS: I didn't watch inside python-rq since some time, seems to have gained
some weight (even so, it's much simpler to grasp than celery) ^_^.
Definitely the best
just wanna share what niphlod explained above:
i assume you store the logo in company table with the field trademark to
save your image file
models/menu.py
rows = db(db.company.id == 1).select()
for row in rows:
response.logo = IMG(_src=URL('download', args=row.trademark),
PS: on the web2py process side, it seems that at most 10 connections are
istantiated with Redis: is there a connection pool?
On the worker side, instead, I noticed that each job generates a new fresh
connection to Redis: is this expected ?
e.g.
[7445] 18 Apr 22:57:48.072 - Client closed
guppy has not been updated in a while, there are some known bugs with the
stable release and there seems to be already a bug listed on web2py's
official issues.
I tried to install it from sources, but didn't had luck with that either.
Seems also that the debian package is somewhat
Iy is not going to work in the foreseeable future, for many web-apps to
hold their entire database on the client side...
Are you talking about the model definitions, or the actual data? They
certainly don't move all the data in the entire database to the client.
For simple and small
Nice comment but a minor correction.
In meteor the client only has in his local database the documents he is
allowed to read.
That solves the security issues on the client.
What I like most in meteor is
Not having to refresh the browser on every change i make in code.
Not having to code web
I did kill all processes remotly related to web2py an uswgi and the
internet restarted all and the cache page still wont load without that
error.
On Thursday, April 18, 2013 11:08:14 PM UTC+2, Niphlod wrote:
guppy has not been updated in a while, there are some known bugs with the
stable
Well, as for the database, there are obvious security issues and
performance issues - I mean, having an open connection from all clients to
a single back-end database is a pretty nutty prospect for most serious
programmers...
Just think about connection-count,you can't even do connection pooling
Onde consigo encontrar exemplos sobre relacionamento muitos para muitos e
um para muitos !!!
--
---
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
Prezados amigos, onde consigo um exemplo do web2py para um cadastro entre
uma tabela A que se relaciona com a tabela B, C, D, E de um para muitos
...tipo um cadastro de clientes e cada cliente tem muitos contatos muitas
duplicatas...não consegi achar um modelo para ver, ache no site do web2py
Hi,
I am using a python script to organize some data and try to send it into
web2py via the @request.restful() api. In the python script the text is
mainly input from a free form text field. ( I believe some Unicode
characters are in there as well, however I remove everything that is ord
128
I am pretty sure Niphlod did not mean it in a sarcastic sense. We are from
the same country and I did not read the negative connotation in his comment.
Niphlod is a main contributor to web2py and he spends lots of time helping
people here.
Massimo
On Thursday, 18 April 2013 15:08:38 UTC-5,
Thanks Niphlod. May I know where I can pick up the examples?
Appreciate your help on this.
On 19 Apr, 2013, at 3:13, Niphlod niph...@gmail.com wrote:
packed an app with a few examples: might explain better how to deal with
timezones.
On Thursday, April 18, 2013 6:20:18 PM UTC+2, fun
I might take another look at the plugin_clientapi, but that looks to me
like it is aimed at using web2py just as as a database backend.
Allow me completely disagree with that. plugin_clientapi handles creation
and validation of forms (via the web2py api obviously), access control and
Joao, this is an English list.
You can find what you're looking for in links below:
- http://web2py.com/books/default/chapter/29/06#One-to-many-relation
- http://web2py.com/books/default/chapter/29/06#Many-to-many
On Thu, Apr 18, 2013 at 6:39 PM, Joao Guermandi joaois...@gmail.com wrote:
Onde
This worked:
{{=form.custom.begin}}
ul class=nav nav-tabs
lia data-toggle=tab href=#tab-1View/a/li
lia data-toggle=tab href=#tab-2Modules/a/li
lia data-toggle=tab href=#tab-3Bank account/a/li
lia data-toggle=tab href=#tab-4Agree/a/li
lia data-toggle=tab href=#tab-5Confirm/a/li
/ul
Btw, I want to say that Niphlod has been very helpful. I am definitely missing
the HTML+JS knowledge, but that didn't stop me to try out in web2py and have a
good attempt on this issue.
I am one little step away from solving this time zone problem haunting me for a
few months. I wouldn't
I started checking out pythonanywhere but ran into some trouble getting my
site up. I was going through tutorials and decided to try using tortoise
hg mercurial and bitbucket to get my site from my computer to
pythonanywhere. I was able to get mercurial on my computer and working,
and upload
Sorry Niphlod. I was on my phone, and didn't see this attachment. Thanks
again for helping me out without asking for anything. I will try to learn
from your example.
On Fri, Apr 19, 2013 at 8:33 AM, Funmanhk funma...@gmail.com wrote:
Btw, I want to say that Niphlod has been very helpful. I am
hi Niphlod,
I've tried your example in the attachment. The good news is that the user
selected timezone it the profile/register page is working consistently!
Great work! Thank you!
The bad news is that the dynamic detection, and return from the client
session is still not working...
def index():
Muito obrigado !!!
Em quinta-feira, 18 de abril de 2013 18h39min36s UTC-3, Joao Guermandi
escreveu:
Onde consigo encontrar exemplos sobre relacionamento muitos para muitos e
um para muitos !!!
--
---
You received this message because you are subscribed to the Google Groups
web2py-users
On Thursday, April 18, 2013 7:00:48 PM UTC-4, Arnon Marcus wrote:
Well, as for the database, there are obvious security issues and
performance issues - I mean, having an open connection from all clients to
a single back-end database is a pretty nutty prospect for most serious
I am using two different SQLFORM.grid on the same page.
Each is based on a different query and tables.
When I enter text and select search on one SQLFORM.grid, the same text is
populated and search is executed on the other SQLFORM.grid.
Is there any way to prevent it?
--
---
You received
I finally completed a successful conversion of my Microsoft Access
database to SQLite 3; after trying numerous scripts on a couple of
platforms.
I used the `.dump` command to create a *.sql file with the `CREATE
TABLE` and associated statements.
Then using the extract_sqlite_models.py from the
Hello,
How may I log a delete event?
form.process(ondelete=myeventlogcall)
?
It is not clear in the book if this work for SQLFORM. It seems to work for
SQLFORM.grig and Crud, but there is no particular explanation in context of
SQLFORM.
Thanks
Richard
--
---
You received this message
85 matches
Mail list logo