Yes Johann,
I also believe that there is something happening webfaction side and I think
that they are fiddling something. It has happened before in my short
experience and I am slightly weary.
Your issue is probably different as in this case it was working and then
stopped without any interf
hiya pbreit,
Here ( http://i.imgur.com/7LZGP.png) is a screenshot in all its glory and
yes, it is a brand new install.
Is this normal?
On 5 October 2011 06:48, MidGe wrote:
> Ah, ok, I thought this was a different branch and that I had to use a
> different repo name or branch to pull it.
>
> But now, uwsgi, doesn't seem to work again. So I am not sure about
> introducing another issue prior to fixing the main one.. to have uwsg
On 3 October 2011 20:02, Massimo Di Pierro wrote:
> maxtextlengths={'tablename.fieldname':20}, # per field
> maxtextlength=20, # default
>
>
It would be nice to have a possibility to wrap text in a column.
Regards
Johann
--
May grace and peace be yours in abundance thr
I believe your FORM needs a totalitems field or INPUT. At least
that's what I experienced with SQLFORM.factory.
Needed a Field('totalitems', readable=False, writable=False) to match
if I was passing hidden=dict(totalitems='1').
I often choose SQLFORM or .factory for the ability to customize the
Something is wrong. Are you running a new install? Are you able to show a
screen shot?
I suspected this after some trial and error. Makes sense just like
the rest of the framework. Thank you Anthony.
May I hijack my own thread and ask you about the Redis pubsub issue I
am having?
I can subscribe to channels, post messages to them and receive them
fine from the shell but don't kno
Ah, ok, I thought this was a different branch and that I had to use a
different repo name or branch to pull it.
But now, uwsgi, doesn't seem to work again. So I am not sure about
introducing another issue prior to fixing the main one.. to have uwsgi
working.
I find it very confusing.
I log in to the admin interface and when it opens up it show a log in screen
on the right side of the page with a warning about the need for https. But
I am already in the admin interface at that time!?
I also notice a doubling of the web2py logo on the left top which
> But where do I download the code for that version?
In the directory where you cloned the sources yesterday, run
hg pull
hg update
make
--
Roberto De Ioris
http://unbit.it
> Bad news...
>
> I left my site well alone after the success yesterday.
>
> This morning, unfortunately, it was as if nothing had be done.
>
> I killed uwsgi and re-started after overwriting the copy... All to no
> avail...
>
> I get the double log in (wth two web2py logos in top left corner), a
I'm considering building some demo apps in Web2py but I really prefer to
work form hard copy docs that I can annotate and tag. I see that the current
Lulu docs are almost 1 year old and may not be up to date.
The app I have in mind is for a specialty online store with some online
ordering - so
request.now = request.utcnow
on top of db.py will make sure internally you have request.utcnow
everwhere.
Then you can set
shift=datetime.timedelta()
db.table.field.represent = lambda d,r,s=shift: prettydate(d+s)
for all tables and fields where shift is the localtion-uct time shift.
To comp
Bad news...
I left my site well alone after the success yesterday.
This morning, unfortunately, it was as if nothing had be done.
I killed uwsgi and re-started after overwriting the copy... All to no
avail...
I get the double log in (wth two web2py logos in top left corner), and
request to r
But where do I download the code for that version?
On Oct 4, 2:29 pm, petrasadi wrote:
> I am currently working on a project meant to improve the current
> Web2Py Issue Tracking System.
> Are there any features that could use touch-ups or new features that
> should be implemented?
> Looking forward to your suggestions.
I assume your are referri
Ok Roberto,
I am willing to try that. Does this version of uwsgi include the fix for my
problem?
Or can I run two different version of uwsgi at the same time. If so, is it
just a matter of renaming uswgi file to something different?
On Tuesday, October 4, 2011 6:59:04 PM UTC-4, horridohobbyist wrote:
>
> The Windows version of web2py does NOT require Python to be installed
> under Windows. Apparently, web2py relies on its internal Python. So
> installing for my Python install is totally irrelevant.
>
If you've got Python in
request.now is set each time a new request comes in and is specific to that
request. When you start the shell, there are no requests coming in to the
shell -- so request.now is set when the shell is first started, and there's
nothing to change it after that. The shell basically gives you a web2p
You can set default values for db Fields, do it before the form creation
db.table.field.default = "Bla Bla Bla"
form = SQLFORM(db.table)
On 10/4/11, Luca wrote:
> I need to have a form generated via SQLFORM where the initial values of the
> fields are pre-filled with dynamically generated conten
Hi,
I've already spent quite some time with the following problem which I
think should be fairly easy. I hope someone can help me.
# model
db.define_table('admin_setting',
Field('name', 'string', notnull=True),
Field('value', 'string', notnull=True))
in the controller I'm creating a form
I need to have a form generated via SQLFORM where the initial values of the
fields are pre-filled with dynamically generated content.
What I am trying is (suppose I have a table mytable with title and content
as fields):
form = SQLFORM(db.mytable)
form.vars.title = "my title"
form.vars.conte
I want to insert all posts in UTC and convert to local time with
prettydates.
Either the gluon.tools prettydate() or a JS script I got a hold of
convert the time properly.
How could I insert a record that is UTC timestamped in the db but
converted to local timezone when retrieving and viewing the
Cool.
On Tue, Oct 4, 2011 at 3:07 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Wait
>
>
> On Oct 4, 1:15 pm, joseph simpson wrote:
> > Just a not to check of the current status of:
> >
> > The basket book listed below and
> >
> > The Official Version 4 Web2py book.
> >
> > Wo
Truly bizarre.
When I put timetest() in default.py and test it it works a treat.
output:
2011-10-04 18:40:07.876602 ## 2011-10-04 18:40:07.894192
If I run from the commandline (importing models and such as I normally
do to test things):
print request.now, datetime.datetime.now()
produces:
201
The Windows version of web2py does NOT require Python to be installed
under Windows. Apparently, web2py relies on its internal Python. So
installing for my Python install is totally irrelevant.
My Windows PC is not set up to compile C code. This is an extra step I
do not care to engage in. In the
i've used a few different techniques. M2Crypto with a paypal integration,
and the libraries on google app engine.
i'm pretty sure i had to build m2crypto, but no matter what it's not about
installing the package into web2py, it's about installing it for your python
install - web2py just import
Wait
On Oct 4, 1:15 pm, joseph simpson wrote:
> Just a not to check of the current status of:
>
> The basket book listed below and
>
> The Official Version 4 Web2py book.
>
> Would it be best to buy the Web2py 3.1 edition in paper ...
>
> Or wait for version 4...
>
> Take care,
>
> Joe
>
> On Th
NOOO. Do not abuse eval. there is no need.
Instead you can do:
query = db.aa.forcefield == request.vars.forcefield
if request.vars.color != 'ALL:
query &= db.aa.color=request.vars.color
if request.vars.weight !='ALL':
query &= db.aa.weight == request.vars.weigth
query_results = db(que
I think that's a violation of the same origin policy (same origin requires
same protocol) and will likely be blocked by the browser
(http://en.wikipedia.org/wiki/Same_origin_policy).
Anthony
On Tuesday, October 4, 2011 5:19:31 PM UTC-4, Adam wrote:
>
>
> Hi.
> Why LOAD helper does not work wh
I'm trying to encrypt financial data to send as an email attachment.
I'm on Windows 7. I'm using the latest stable version of web2py.
The issue is mainly that of installing an encryption package into
web2py. Some of the packages I've found require building from C source
-- I don't particularly wan
It can be a problem mixing http and https on one page. Browsers may block or
warn about such a thing. Is that what you mean?
One technique to support both http and https is to specify a URL like this:
url='//mysite.com/index.html'
I'm not sure this works with LOAD() but might be worth a try.
Is it isolated something like this?
def timetest():
import datetime
return '%s ## %s' % (request.now, datetime.datetime.now())
2011-10-04 14:23:41.505797 ## 2011-10-04 14:23:41.536510
Hi.
Why LOAD helper does not work when my browser url is set at
http://someapp.appspot.com/app, while my ajax request url is
https://someapp.appspot.com/app/user.load/login?
{{=LOAD(ajax=True, target='target1', url='https://someapp.appspot.com/
app/user.load/login')}}
but when everything goes o
Hi Richard,
Can you be a bit more specific, do you want to encrypt "data" in
web2py sounds a little vague, do you want to encrypt the contents of
the information stored in a database? - or is it flat files, or other
kind of information?
What OS are you on? - Are you in Windows, Linux, OS X, Solar
On a VM running latest stable, ntpd running on both guest as well as
host so I don't know what I'm missing here.
I know this must be a really simple one but I could use a push in the
right direction please.
Thank you in advance for your help.
-David
Ok this problem... The format= not always work for me either, but represent
never failed... Also consider that when you app get more complexe you will
probably need to different representation for different query or select
table for example, so you will find your self to have to use the represent=
Yes I know details, but according the docs, 'format' should represent
template in relations
see here
http://www.web2py.com/book/default/chapter/06?search=represent+
And this doesnt work for me for some reason ...
On Oct 4, 10:37 am, horridohobbyist wrote:
> I guess no one has ever used encryption (M2Crypto) in web2py. Maybe
> the web2py community isn't as large as I had thought...
I've not had cause to use encryption (other than SSL/TLS) with web2py
yet.
I have another project where I needed (file storag
I am currently working on a project meant to improve the current
Web2Py Issue Tracking System.
Are there any features that could use touch-ups or new features that
should be implemented?
Looking forward to your suggestions.
> Ok Roberto,
>
> I managed to build and test. At first view It seems to work. I can
> modify
> files and save them.
>
> So, there is great progress, thanks a lot.
>
> Is there anything else I could do to help you or the community in anyway?
> Don't hesitate to ask or suggest.
>
> Michel
>
Tha
I think he redefine the auth model and now can't see all column in the
appadmin?!
You can get the default auth models in the gluon/tools.py
Just search with one the field name of one of auth table you will get the
model intial definition (or default) models
Richard
On Tue, Oct 4, 2011 at 2:11 P
Just a not to check of the current status of:
The basket book listed below and
The Official Version 4 Web2py book.
Would it be best to buy the Web2py 3.1 edition in paper ...
Or wait for version 4...
Take care,
Joe
On Thu, Aug 18, 2011 at 4:41 PM, Massimo Di Pierro <
massimo.dipie...@gmail.
The auth tables should be visible from the db administration interface --
not from your models in "design" view but from the 'db' interface where you
can view table contents and insert records directly into tables (in "design"
view, you follow the "database administration" button just under the
In my app, i build a query for the 'all' value in a drop down form.
For example:
query = '(db.aa.forcefield == request.vars.forcefield)'
if request.vars.color != 'ALL:
query += ' & (db.aa.color=request.vars.color) '
if request.vars.weight !='ALL':
query += ' & (db.aa.weight == reques
You need to define represent (ex.: db.table.field.represent = lambda value
or id : ...)
Se the book.
requires = good for drop box
represent = good for select
Richard
On Tue, Oct 4, 2011 at 2:02 PM, David Marko wrote:
> I have two tables as you can see below describing common one-to-many
>
I have two tables as you can see below describing common one-to-many
relationship. Company table has format property defined but in web2py
database admin, when listing persons(see attached screenshot) I just see
company id number instead of company name. I just thought that I should see
company
That confirms my conclusion that the issue it must be at the server level.
Thanks.
I'm using git but none of the changes I made had anything to do with auth. I
ended up pushing the app (identical code) to another fluxflex project
(http://ianwscott.fluxflex.com/Paideia) and the login works fine. So it
looks like the issue wasn't with my code update but with something on the
se
I guess no one has ever used encryption (M2Crypto) in web2py. Maybe
the web2py community isn't as large as I had thought...
Richard
On Oct 3, 11:00 am, horridohobbyist wrote:
> I'm looking for a way to encrypt/decrypt data in web2py. Someone
> suggested that pyme is already included in web2py, b
Thanks juandurke.
One last point is remaining in this regard.
Now I can render the edit form in jquery-ui modal dialog.
#Note: In the same View file, the is there, which is
rendered in dialog form.
I am passing department['deptid'] & department['deptnm'] to the
javascript function "editURL".
"e
Hi Vineet:
web2py_component is a javascript function, includede in web2py.
So, there's no necesary to put {{ }} to call him.
You can see examples of web2py_component on the book (search for LOAD
function)
HTH, regards.
I am building my code on this idea.
Here, it is not accepting "web2py_component" in javascript.
[CODE]
function editURL( depId, depNm){
var urlTarget = "{{=URL('frmDeptEdt')}}";
{{web2py_component(urlTarget+"/"+depId+"/"+depNum, 'deptEdt')}};
jQuery( "#deptEdt" ).dialog('open');
}
[/C
Is anybody running web2py with this configuration ? If so, can you
share the instruction and/or apache configuration ?
web2py dirctory: C:\web2py
App: http://localhost:8000/welcome
Currently, my web2py site is running on
- Ubuntu + Apache + wsgi
- Windows + Apache + wsgi
but because of the iss
Normally you pass OPTION helpers to the SELECT helper, and the OPTION helper
can take a separate label and value: OPTION('label', _value='value'). As a
shortcut, you can simply pass positional arguments to SELECT, and they will
be treated as OPTIONs, but in that case it will use the argument as
I've ported an old version of my application from T2 to the new crud/
auth/smartgrid...stuff.
I'm using the default auth provisions as defined in the scaffolding
application: auth.define_tables()
Is it possible to inspect the auth tables from the administrative
interface ?
I only see my custom tab
Is it possible to pass in a dictionary to the SELECT helper, so that I
can maintain a difference between representation and value of entries
in a select element? I've tried to invoke this a few ways, but it
seems its not "built-in." Unfortunately, I'm not familiar enough with
gluon to supply a patc
Thank you Massimo.
On Tue, Oct 4, 2011 at 3:36 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> try this instead
>
> details = doc.details.select()
> db.doc.insert(db.doc._filter_fields(**dict(doc)) for
> detail in details: detail.id = 0
On Tue, 4 Oct 2011 13:36:41 +0100
"Sebastian E. Ovide"
wrote:
Hiya Sebastian,
> It is not just my personal opinion (or it is?) but doesn't matter how
> long you will look for, you won't find the perfect/ultimate
> language/framework. In ALL the tools that I've used in the past (and
> present) I'v
I have the two tables defined in my model as below. Its simple one-to-many
model (company and related people). Company has defined format in table
definition but when listing person items in database admin, there are just
ids insetad of company name.(see screenshot attached) I have the same thi
Dear *,
I found that in a SQLFORM inside a controller it's not possible to use
both parameters 'uploadfolder' and 'custom_store' of an 'upload' field
because of a simple bug in sqlhtml.py where the line 1158 that is:
newfilename = field.store(source_file, original_filename)
is expectyed to
Not sure that's your asking for:
INPUT(_type='hidden', _name='_hiddenName', _value='hiddenValue')
hi, i use AutocompleteWidget for some of my field in db like this:
dbMysql.qbp_video.game.widget = SQLFORM.widgets.autocomplete(request,
dbMysql.qbp_gameindex.title, limitby=(0,30), min_length=4)
everything is ok,till I search a none englis word like "تست" (this is
a persian text) in this case au
try this instead
details = doc.details.select()
db.doc.insert(db.doc._filter_fields(**dict(doc)) for
detail in details: detail.id = 0 detail.iddoc
= doc.id
db.detail.insert(db.doc._filter_fields(**dict(detail))
On Oct 4, 8:04 am, Massi
I cannot say without details.
On Oct 4, 1:12 am, mart wrote:
> hum so i added the cas_domains to the provider... maybe getting
> further (but not sure)...
>
> When I hit the login page for the consumer (this is on 127.0.0.1), it
> brings me to the provider alright, but the redirect throws an
The suggestion above was not for admin but for auth. It can be adapted
to be used for admin.
On Oct 3, 10:10 pm, Massimo Di Pierro
wrote:
> make a file "models/plugin_conditionalrecaptcha.py" which contains:
>
> MAX_LOGIN_FAILURES = 3
> RECAPTCHA_PUBLIC_KEY = ''
> RECAPTCHA_PRIVATE_KEY = ''
>
> d
i think i found the answer:
*Since jquery mobile framework loads links through Ajax you either need to
disable the jQuery mobile's Ajax behavior or load the Google maps javascript
in the 'real' first page. This example use ajax in navigation.*
*To disable pages loading through Ajax bind 'mobileini
I've a doc with detail rows related.
I want to duplicate the doc and all details related.
I'm trying something like that but it doesn't work:
doc.id = 0
details = doc.details.select()
doc.update_record()
for detail in details:
detail.id = 0
Can you show some code? What do you mean the URL "does not work"?
On Tuesday, October 4, 2011 8:49:26 AM UTC-4, Ramos wrote:
>
> hello, i have a view that extends jqmobile
> in that view i have a url that takes the user to another view that does not
> extend jqmobile
>
> This url does not work un
hello, i have a view that extends jqmobile
in that view i have a url that takes the user to another view that does not
extend jqmobile
This url does not work unless the two views extends the same layout
jqmobile or just web2py layout
is this normal?
thank you
Hello Gour,
I've been in the software industry for several years and have used several
languages/frameworks... (including VBA, ASP, PHP, Django, Web2py, J2EE and
Java EE 6 with JPA/EJB/JFF).
It is not just my personal opinion (or it is?) but doesn't matter how long
you will look for, you won't fi
Previously, this type of problem was related to connection pooling. Try
turning it off and see if that has any effect.
2011/10/4 synergetic :
> Hello members,
>
> I have a following problem. In service.py controller I have
> --
> def call():
> return service()
>
> @service.xmlrpc
> def get_modules():
> modules = db().select(
Hello members,
I have a following problem. In service.py controller I have
--
def call():
return service()
@service.xmlrpc
def get_modules():
modules = db().select(db.Module.ALL).as_list()
return dic
Nice.
The list does not give you the name of it's creator
You should enable editing
Allow other users to suggest more options
Instead of 3 lines, and a plus, create one, and onfocus, automaticly
create another line. This will create a better flow.
Are you planning to open source this app?
On Oc
Ok Roberto,
I managed to build and test. At first view It seems to work. I can modify
files and save them.
So, there is great progress, thanks a lot.
Is there anything else I could do to help you or the community in anyway?
Don't hesitate to ask or suggest.
Michel
For large deployments with various settings something like this could
come in rather handy.
What is your take on it?
http://code.disqus.com/code/projects/gargoyle.html
77 matches
Mail list logo