Dear All,
Thanks for your answers.But what I was looking for was,putting into simple
words,implementing a use case similar to the following The system
maintains the data related to each transaction.Each transaction includes
the list of items demanded per transaction with each item belonging to a
Thank you...
Adblock plus. That was the issue. It intercepted the images and turned all
the css to null.
http://stackoverflow.com/questions/3558071/img-tag-greyed-out-in-firebug-hence-found-the-reason-for-image-not-showing-up
Thanks for help, Antony
Simon Pickles sipick...@gmail.com wrote:
Thanks for the reply. Oddly there is no missing image icon. The
alt text seems to flash up then disappear.
Don't try to load the whole page, just the image with its image
URL. This way you could see if there is any error reported.
Raul, when working with the web you always (most of the times) create the
files server side and invite user to download it and save it to his file
system, this sais you don't need to access the file system yourself, just
invite the user to download your file and you are done.
for csv versus txt
On 29 April 2012 17:51, Sebastian E. Ovide sebastian.ov...@gmail.comwrote:
Hi All,
I have a field defined as integer but for some reason it is string
In [34]: db.agreement.client_stars.type
Out[34]: 'integer'
In [35]: db(db.agreement.client_stars 10
@Bruce,
Do you have the logs of the mailer at hand?
If you are not using a mail relay (also called smart host) you
should receive some code from hotmail mx server(s). That should point
you in the right direction.
mic
Il 30 aprile 2012 06:55, tsvim ttm...@gmail.com ha scritto:
i just looked up
Thanks Mr.Khalil!
I will surely give it a try!
On 30 April 2012 13:24, Khalil KHAMLICHI khamlichi.kha...@gmail.com wrote:
Raul, when working with the web you always (most of the times) create the
files server side and invite user to download it and save it to his file
system, this sais you
On 29 April 2012 22:34, Bill Barry waba...@gmail.com wrote:
I am running web2py on Debian with nginx and the uwsgi-plugin-python
package. My configuration is similar to yours, but uses mount instead of
app
uwsgi
pluginpython/plugin
socket127.0.0.1:9001/socket
hello one and all,
i am curious about using a cloud, like Amazon EC2. i don't know anything
about it. but i am curious. i have always setup my own server and run,
but my needs have changed for more media and the throughput of my internet
will be challenged if i try to host my server
hello one and all,
i am curious about using a cloud, like Amazon EC2. i don't know anything
about it. but i am curious and interested. i have always setup my own
server and run it. but my needs have changed for more media and the
throughput of my internet will be challenged if i try to
Dear ALL ,
I am trying to use redirect like this :
def members():
if request.vars.fb == 1:
redirect('http://www.web2py.com')
users = db().select(db.users.ALL,orderby=~db.users.Placeorder)
return dict(users=users)
but it keep taking me to my website index page or
I am sure you can run that. However be aware EC2 is kind of slow we started
to use it but were very unhappy for speed to price. Linode with their
nodebalancer is working for us and allowing us to scale.
On Apr 30, 2012 2:55 AM, lucas sjluk...@gmail.com wrote:
hello one and all,
i am curious
Most web2py resources can be found on web2py.com http://www.web2py.com,
but here are some Google Groups topics identifying additional resources:
web2py help
resourceshttps://groups.google.com/d/topic/web2py/e2SL5ViOhL4/discussion
I created a single new web2py resources sticky that links to five of the
old stickies, unstuck two outdated stickies, and left one, so now we're
down to two stickies. :-)
Anthony
On Sunday, April 29, 2012 2:55:35 PM UTC-4, simon wrote:
Is it really necessary to have 8 stickies pinned to the
On Sunday, 29 April 2012 19:56:21 UTC-5, Anthony wrote:
On Sunday, April 29, 2012 7:54:11 PM UTC-4, Massimo Di Pierro wrote:
I often run into this problem:
def index():
record=db.tablename(request.args(0)) or redirect(URL('error'))
which assumes request.args(0) is integer or
It may had been solve, I am under 1.99.4. When I have time I will test with
1.99.7 and trunk and report/open ticket if still there.
Thanks
Richard
On Sat, Apr 28, 2012 at 8:34 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Please open a ticket about this. It should be done
I had a setup for a while with freebsd, web2py (and corresponding
dependencies). There was very little difference on setup between amazone
ec2 and the bare metal machines I previously set everything up on. Just
remember, by default no guaranteed static IP...
On Monday, April 30, 2012 4:59:21
I would also like to comment that I suspect (unconfirmed) that reloading of
modules while references are still around appears to potentially cause
memory leaks.. during dev while modules are reloaded, our app's memory
usage grows significantly. With this disabled, we find a consistent
I cannot reproduce -- for me, redirect('http://www.web2py.com') redirects
to www.web2py.com as expected. When you call redirect('some_url'), web2py
issues a 303 response with the Location HTTP header set to 'some_url' --
the client is then responsible for redirecting to that URL.
Are you by
request.args(0,default=0, cast=int, requires=list_of_validators,
url_onerror=URL(...))
I like it.
note: probably (I don't remember) it was String at some point...
That could be the problem if it's SQLite -- see
http://web2py.com/books/default/chapter/29/6#Fixing-broken-migrations.
Anthony
We use it. We're happy, but the app doesn't have high traffic.
As far as I see in real cases, AWS is a great place to host. I'm
planning to make a new migration to their platform next month.
On 04/30/2012 06:55 AM, lucas wrote:
hello one and all,
i am curious about using a cloud, like
wow, really, so did you actually install freebsd on your EC2 harddisk slice
because i don't see freebsd under the amazon EC2 operating systems. i do
see redhat enterprise 6, which is probably very very similar to centos 6.
and with that freebsd install, did you install and use a relational
Yes. because it depends on what module does. You should not do this in
production. Many other frameworks treat models and controllers and they
potentially suffer from this problem (depending on the module). This is why
in web2py models and controllers are not modules, to avoid this problem.
Looks like there are a couple community AMI's for CentOS 6.2:
https://aws.amazon.com/amis/centos-6-2-base-version-1-0-32-bit-1332109399
https://aws.amazon.com/amis/centos-6-2-lamp-32-bit-apache-http-2-4-1-mysql-5-5-12-php-5-4-0-version-1-0-1332109551
Anthony
On Monday, April 30, 2012 12:11:14
I have only used it long ago. It was clumsy and slow to deploy. I found
there are other web hosts that use EC2 infrastructure but provide better
interfaces and management tools. Although I never tried any of them.
On Monday, 30 April 2012 09:45:17 UTC-5, viniciusban wrote:
We use it. We're
In the database admin application, when editing a record from table with a
list:string field, the field is not pre-populated with the current value.
Test model:
db.define_table('t_colours',
Field('f_colour', type='list:string', label=T('Colour')))
db.t_colours.f_colour.requires =
Thank you everybody.
I defined my tables in db.py but made them able to be populated from
index(). It worked. I'm not sure why tables entries inserted from index()
is persistent but not tables defined from index(). I'm reading through the
DAL again to see what I missed.
Thank you very much all.
should be this:
db.define_table('t_colours',
Field('f_colour', type='string', label=T('Colour')))
db.t_colours.f_colour.requires = IS_IN_SET(('Red','Blue','Black'))
or this:
db.define_table('t_colours',
Field('f_colour', type='list:string', label=T('Colour')))
I'm not sure why tables entries inserted from index() is persistent but
not tables defined from index().
Because those are two different operations. When you enter data into a db
table, you are storing the data in the database itself, so obviously it
will be persistent. When you define a
Hi Bruce,
G-mail failed to warn me about your answer, so I noticed it only today.
Thanks a lot, it worked like a charm.
The same code worked in sqlite, but I guess Postgres is more restrictive.
Thank you and BR
Loreia
On Friday, April 27, 2012 4:13:33 PM UTC+2, Bruce Wade wrote:
Thanks,
after Bruce's post I realized I needed to inspect what DAL does on database
(by checking result of database creation in pgAdmin
IIIhttp://www.pgadmin.org/)
and not just follow examples from the book (which worked without issues in
sqlite). That helped me find a number of issues in my
Hi Massimo,
The onvalidation function is not getting properly executed when editing an
existing record with an upload field with an already uploaded file, as
stated in the following current fix (just after FORM.accepts call in
SQLFORM.accepts @ sqlhtml.py):
if not ret and self.record
After further testing, it looks this proposed fix incorrectly removes the
file from the upload field in the record being edited ... not sure yet.
Can something be done along these lines to make onvalidation work properly?.
On Monday, April 30, 2012 2:21:37 PM UTC-5, Carlos wrote:
Hi Massimo,
Most web2py resources can be found on web2py.com, but here are some Google
Groups topics identifying additional resources:
web2py help
resourceshttps://groups.google.com/d/msg/web2py/sne1n0WKh6k/elCU9OJ7O4cJ
Pluginshttps://groups.google.com/forum/?fromgroups#!topic/web2py/vGfyX_N9cRY
Signature
Thanks very much for doing this. Have you considered putting it in a github
repo so that it's a bit easier to use and fork?
Ian
On Sunday, May 15, 2011 5:44:42 PM UTC-4, pancurster wrote:
Hi,
I was looking today for vim syntax for web2py templates but I didn't
find it. So I make my own.
Please open a ticket with the problem description.
On Monday, 30 April 2012 14:29:01 UTC-5, Carlos wrote:
After further testing, it looks this proposed fix incorrectly removes the
file from the upload field in the record being edited ... not sure yet.
Can something be done along these lines
Yep, it is the web, you can't automatically write a file directly to the
user's computer (Holy security issues Batman!) but you can provide them the
prepared file as a download that they can then save to wherever they want.
Doesn't matter if it is CSV or TXT or HTML or PDF or RTF whatever.
http://code.google.com/p/web2py/issues/detail?id=778
On Monday, April 30, 2012 3:40:29 PM UTC-5, Massimo Di Pierro wrote:
Please open a ticket with the problem description.
On Monday, 30 April 2012 14:29:01 UTC-5, Carlos wrote:
After further testing, it looks this proposed fix incorrectly
@Massimo- The initial issue was about reloading modules for development not
production.
from gluon.custom_import import track_changes; track_changes(True)
was not consistently reloading modules on each request while we were
developing locally on the Rocket server, though I can't
We deploy using git pull.
On 04/30/2012 01:33 PM, Massimo Di Pierro wrote:
I have only used it long ago. It was clumsy and slow to deploy. I found
there are other web hosts that use EC2 infrastructure but provide better
interfaces and management tools. Although I never tried any of them.
On
@auth.requires_membership('Analytics' or 'Analytics Manager')
def index():
return dict(message=hello from analytics.py)
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
@auth.requires_membership('Analytics','Analytics Manager')
Is that the correct way? it seems to be working
On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade bruce.w...@gmail.com wrote:
@auth.requires_membership('Analytics' or 'Analytics Manager')
def index():
return dict(message=hello from
Never mind it doesn't work
On Mon, Apr 30, 2012 at 8:26 PM, Bruce Wade bruce.w...@gmail.com wrote:
@auth.requires_membership('Analytics','Analytics Manager')
Is that the correct way? it seems to be working
On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade bruce.w...@gmail.com wrote:
applications/advertisement/modules/util.py
from gluon import *
def make_page_breadcrumbs(page_breadcrumbs_items):
page_breadcrumbs_items_buffer = [ DIV(SPAN(,
_class=breadcrumbs-arrow),SPAN(crumb)) for crumb in
page_breadcrumbs_items ]
return DIV(page_breadcrumbs_items_buffer)
def
On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade bruce.w...@gmail.com wrote:
@auth.requires_membership('Analytics' or 'Analytics Manager')
def index():
return dict(message=hello from analytics.py)
I am a bit new to this, but my understanding is that this is what you want.
On Mon, Apr 30, 2012 at 9:36 PM, Bill Barry b...@billbarry.org wrote:
On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade bruce.w...@gmail.com wrote:
@auth.requires_membership('Analytics' or 'Analytics Manager')
def index():
return dict(message=hello from analytics.py)
I am a bit new to this,
Hi Bruce,
I had the same problem, this is the best solution, according to Anthony
(https://groups.google.com/forum/#!msg/web2py/A0z8DSZdYTo/H_1N6_4MZfEJ):
@auth.requires(lambda: auth.has_membership('Analytics') or
auth.has_membership('Analytics Manager))
I made the groups constants, in my
What about:
from applications.advertisement.modules.util.py import*
Annet
I have a SQLFORM.grid, and I want to add a button to the form used to edit
records (as called from the grid). Is that possible?
--
You can have everything in life you want if you help enough other people
get what they want - Zig Ziglar.
Who did you help today?
51 matches
Mail list logo