I read this post and wondered whether there are other solutions to solve
this problem.
https://groups.google.com/forum/?fromgroups#!topic/web2py/K4SteYdwVX4
My applications real address is:
mydomain.com/init/default/index
domain/application/controller/function/
What I would like is to
I had to remove {{=form.custom.end[1]}} and change {{=form.custom.end[0]}}
to {{=form.custom.end}} to solve the problem.
Annet.
On 25 May 2012 20:08, Bruce Wade bruce.w...@gmail.com wrote:
HINT: See server log for query details. CONTEXT: SQL statement SELECT 1
FROM ONLY public.ads x WHERE id OPERATOR(pg_catalog.=) $1 FOR SHARE
OF x Any suggestions?
Did you check the server log?
Regards
Johann
--
Because
On 25 May 2012 22:07, pbreit pbreitenb...@gmail.com wrote:
I do all my forms custom:
http://web2py.com/books/default/chapter/29/7#Custom-forms
On Friday, May 25, 2012 6:45:21 AM UTC-7, orsomannaro wrote:
I'm starting with Web2Py.
To arrange/group them logically I need to display them in
On 27 May 2012 09:38, Annet anneve...@googlemail.com wrote:
I solved the problem by moving the JavaScript code from right below
{{extend calendar/index.html}} to right above
script type=text/javascript
$(a[data-toggle=modal]).click(function (e) {
target = $(this).attr('data-target')
Sure:
In default.py in controllers, my db is defined like this:
def yeast_manage():
db.t_yeast.id.readable=False
db.t_yeast.f_q.readable=False
if request.args and request.args[-3] == 'view':
response.view = 'default/single_entry.html'
form = SQLFORM.grid(db.t_yeast,
The error refers to the transaction being not usable anymore. So the error
happened erlier somewhere, but web2py traps it and lets the application go
on with an unsusable transaction. Probably a bug.
You can try to increase logging to log errors in posrgesql.conf and restart
the server, then
On 28/05/2012 09:23, Johann Spies wrote:
You can also look at the solidform plugin:
http://dev.s-cubism.com/plugin_solidform
Great! Thank you!
I just had the same problem on a test version of my apps. I'm using MYSQL.
The field is missing and it isn't being autocreated because
Migrations=False in my db.py model, I have
auth.define_tables(migrate=False)
Using fake_migrate True and then trying to migrate to reset doesn't work
either.
Hello,
I replaced favicon.ico and favicon.png file in static folder of my app,
but on my webpage I still get an old icon. Any suggestions? I thought it
might be some cache problems, but I used different browser, and still -
web2py app icon is there...
best regards,
Marian
It works now, in html I had to change:
{{=BEAUTIFY(response._vars)}}
to
{{=BEAUTIFY(response._vars['form'])}}
br,
Marian
On Mon, May 28, 2012 at 10:07 AM, Marian Siwiak siw...@gmail.com wrote:
Sure:
In default.py in controllers, my db is defined like this:
def yeast_manage():
hi! I have python codes for building an id3 decision tree and they`re
already running. However, the output decision tree is just text-based. So,
I decided to use web2py to give it a more pleasant look. Now, my problem is
how do i integrate these codes in web2py. I mean, where will I insert
I have a page with some edit links that redirect to a simple edit page
using SQLFORM.
I would like to open this form in a modal window and if possible when the
form is submited the link is replaced in parent window. (justo to change
the icon image of the link).
Someone can advice a easy to
If I use the DAL select on a sqlite database to select a record then it
locks the table even if no records are found. If I change it to
db.executesql() then it does not lock the table. For example:
while not process:
time.sleep(30)
Is it possible to cancel a task in the scheduler once it has started
running?
Also I would like to update a message field to say x% complete. How does
one add a bespoke field to the scheduler tables?
Carlos,
Maybe better to post a new thread if it is important and link to this one
if requires.
Richard
On Sat, May 26, 2012 at 8:30 PM, Carlos carlosgali...@gmail.com wrote:
HI,
I just saw this error in my server log, just once, with the following
entry:
ERROR:web2py:Traceback (most
view code is default, I never found function called view.
What do you mean you never found a function called view? What are you
trying to do?
It works now, in html I had to change:
{{=BEAUTIFY(response._vars)}}
to
{{=BEAUTIFY(response._vars['form'])}}
Are you saying you modified
Hi,
Is your specific question how to visually display a decision tree in a
web2py application ?
I have been playing around with D3 (Data Driven Documents) see d3js.org,
which I think is the best thing since sliced bread !
Have a look at this example for some ideas / possibilities.
Andrew,
a solution for sidebar issue is to add span12 class to the section#main
of layout.html in views folder
About the auth nav bar a first solution is to set a specific color because
IE7 ignore inherit. Please add the below two lines at the bottom of
bootswatch.css file in static/css
What I would like is to redirect mydomain.com/#!/shortname to a router
function which:
That's a hashbang URL. Note, in a URL including a #, nothing after the
# is actually sent to the server. So, you have to capture the click on
the client side via Javascript, and then send an Ajax
Put dtree.py and id3.py in /web2py/application/yourapp/modules/. See
http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules
.
Anthony
On Sunday, May 27, 2012 11:00:34 PM UTC-4, Anj wrote:
hi! I have python codes for building an id3 decision tree and they`re
You can also put the modules anywhere in your PYTHONPATH and import them as
well.
On Monday, May 28, 2012 11:02:47 AM UTC-4, Anthony wrote:
Put dtree.py and id3.py in /web2py/application/yourapp/modules/. See
http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules
I have already done that. i just need to revise those that are in the
test.py to conform to web2py structure
Noong Lunes, Mayo 28 2012 03:02:47 UTC-12, si Anthony ay sumulat:
Put dtree.py and id3.py in /web2py/application/yourapp/modules/. See
hi! the problem is not really on the display itself but on how shall i
build the decision tree using those functions in test.py so that i can
display the output. you see, i need to go through the contents of the
dataset file before i can have the dtree output.
Noong Lunes, Mayo 28 2012
hi! i`ve seen your work and it`s great! will you let me use your code if
ever i decide to make my display look like that?
Noong Lunes, Mayo 28 2012 02:52:42 UTC-12, si Andrew ay sumulat:
Hi,
Is your specific question how to visually display a decision tree in a
web2py application ?
I have
The error is this:
ProgrammingError: column auth_user.registration_id does not exist
To create a missing field you want migrate=True but not fake_migrate=True.
On Monday, 28 May 2012 04:54:16 UTC-5, Paul Gerrard wrote:
I just had the same problem on a test version of my apps. I'm using
Are running this within a controller or a background process? In the
executesql case, are you just replacing the select() line or doing
something else? Is only this one table locked or is the entire appadmin
locked?
There should be no difference between
using
I think you want:
{{=form}}
On Monday, 28 May 2012 05:07:16 UTC-5, Marian Siwiak wrote:
It works now, in html I had to change:
{{=BEAUTIFY(response._vars)}}
to
{{=BEAUTIFY(response._vars['form'])}}
br,
Marian
On Mon, May 28, 2012 at 10:07 AM, Marian Siwiak siw...@gmail.com wrote:
On 18/05/2012 18:01, orsomannaro wrote:
I made some modify to setup-web2py-nginx-uwsgi-ubuntu.sh script to fit
it to Ubuntu Precise 12.04.
how must I modify nginx and uwsgi configuration file if I what web2py
respond in
https://my ip/w2p/
?
Thank
Did you find the solution to the problem ?
I am facing the same issue.
Thanks,
Sushant
On Tuesday, February 21, 2012 2:02:08 AM UTC+5:30, howesc wrote:
it does not seem to make a difference, so it is something else...
I am not sure, as I am not well versed with how python handles memory but
does the following link help :
https://developers.google.com/appengine/docs/python/runtime#App_Caching
Please let me know if you have found any solution.
Thanks,
Sushant
On Monday, May 28, 2012 9:44:20 PM UTC+5:30,
@Anthony
I used a copy of generic.html as a template for my single entry view.
Thanks for links!
@Massimo
Bingo!
Thank you very much!
Marian
W dniu poniedziałek, 28 maja 2012 17:49:50 UTC+2 użytkownik Massimo Di
Pierro napisał:
I think you want:
{{=form}}
On Monday, 28 May 2012
Hello web2py community,
I have noted that the DAL does not suppor the follow kind of underlying
connection in python:
import psycopg2
conn_string = host='/tmp' dbname='foobar_db' user='foo' password='bar'
conn = psycopg2.connect(conn_string)
cursor = conn.cursor()
cursor.execute(SELECT * FROM
Web2Py community,
I am rewriting this note, please disregard/delete the prior post (I'm not
getting updated on it)
Working with the DAL I noted that the Regular Expression does not allow for
host names that are directories such as /tmp
The following line is from DAL.py
[1]
i have not revisited this in some time. my clients have been happy to let
this go in favor of other fixes/features. when i get everyone moved to
python2.7 on GAE i'll probably revisit this.
On Monday, May 28, 2012 9:21:37 AM UTC-7, Sushant Taneja wrote:
I am not sure, as I am not well
To clarify further, /tmp in
conn_string = host='/tmp' dbname='foobar' user='foo' password='bar'
implies the use of Unix Sockets. This is a legitamte connection and
supported by psycopg2 however it is disregarded by the DAL due to the
Regular Expression enforced syntax of the connection
You could disable the page navigation links until the server comes back
with the new page data. It will still be faster than a complete page
reload because you won't be fetching the css, etc. again.
On Sunday, May 27, 2012 12:29:40 PM UTC-4, Anthony wrote:
But isn't there a risk of a race
I was migrating some of the ReST APIs that I'd hand-rolled over to the
new(?) ReST facilities in web2py and noticed while going through the
examples (http://web2py.com/books/default/chapter/29/10#Restful-Web-Services)
that JSON serialization kept failing. I'm using 1.99.7.
It looks like the
Hello,
I would like to have more detail about this note (in bold red in quote
below) :
SQLTABLE converts the rows into an HTML table with a header containing the
column names and one row per record. The rows are marked as alternating
class even and class odd. Under the hood, Rows is first
Can anyone tell me how to create the API or the RESTful API for the
Application which are developed in web2py. I want to develop our own API
for my application is it possible? If possible than help me how to develop.
Babak submitted a patch to address this issue and it is in trunk. We
believe it to be backward compatible but please check it.
On Monday, 28 May 2012 11:51:43 UTC-5, Babak wrote:
To clarify further, /tmp in
conn_string = host='/tmp' dbname='foobar' user='foo' password='bar'
implies the
I do not know. I do not remember writing the comment, even if it is in the
book. It may be a cut and paste error. It may be a comment by a reviewer of
the book that crept in there unintentionally.
On Monday, 28 May 2012 13:25:46 UTC-5, Richard wrote:
Hello,
I would like to have more detail
Andrew,
I, just now, proposed a patch through issue tracker (
http://code.google.com/p/web2py/issues/detail?id=824) that should resolve
the problems with IE7 noted by you. Moreover the auth_navbar is more
compliant with bootstrap (check the image). I tested the new welcome layout
replacing the
yes. I've set:
response.view = 'generic.json'
applications/welcome/views/generic.json (for me) contains only:
{{from gluon.serializers import json}}{{=XML(json(response._vars))}}
Thanks for reminding me of as_dict(), it never even occurred to me to use
it here.
On Monday, May 28, 2012
*Cliff*
Thanks for the suggestion, but unfortuantely I need it to work on Windows
as well, so I'll probably look for a code-organization based solution.
*Bruce*
I would certainly be interested to see what you've done. I've been
distilling Bruno's model-less
Thanks for the answer!
Richard
On Mon, May 28, 2012 at 3:21 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
I do not know. I do not remember writing the comment, even if it is in the
book. It may be a cut and paste error. It may be a comment by a reviewer of
the book that crept in
Thank you Cody, I was stalled on this for half an hour.
On Wednesday, April 18, 2012 5:03:14 PM UTC-4, Cody Goodman wrote:
Going through the web2py book, and noticed an error on this page:
http://web2py.com/books/default/chapter/29/3
def find_by(keyword):
finds pages that contain
I was happy to find that I could do 'from gluon import current' in my
modules, and get access to the various treasures that lie within ;)
Recently I went to try and run epydoc on my modules directory, so that I
could have some doc while writing code, and discovered that epydoc gets an
error
Hi Fabiano
There are a couple of plugins, but when I last looked at this, the
easiest solution for my situation seemed to be jQueryUI Dialog. I haven't
really seen anyone mentioning it much on this group, so I am not sure
whether others would recommend it, but it seemed much easier to set
Bruce,
This looks like a similar error to what you received:
StackOverflowhttp://stackoverflow.com/questions/3040432/postgresql-implicit-lock-acquisition-from-foreign-key-constraint-evaluation
More generally, deadlock happens because two sessions are trying to update
the same table but holding
Having exactly the same problem here.
On Monday, May 28, 2012 10:56:07 AM UTC+1, Marian Siwiak wrote:
Hello,
I replaced favicon.ico and favicon.png file in static folder of my app,
but on my webpage I still get an old icon. Any suggestions? I thought it
might be some cache problems, but I
It can easily turned in to a built-in plugin/widget for textareas.
On Mon, May 28, 2012 at 5:50 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
http://redactorjs.com/
--
Bruno Rocha
[http://rochacbruno.com.br]
WordPress content is suitable for attracting Google searches. Is the same
true for Instant-Press installed on web2py site?
Hmm, I don't think you're supposed to have to call as_dict if you're
already using generic.json -- it should be called automatically by the JSON
serializer. Maybe report an issue on Google code.
Anthony
On Monday, May 28, 2012 4:03:26 PM UTC-4, G. Clifford Williams wrote:
yes. I've set:
You could try to use .represent. I mean something a bit like this...
db.yourtable.yourfield.represent = lambda yourfield,row: XML(yourfield)
query = db
grid = SQLFORM.grid(query.)
return dict(grid=grid)
Hope it works!
you can stop the scheduler with ctrl-c... the task will be set as STOPPED
and scheduler will exit (it won't restart).
scheduler (and, in general, any program) can't know how much work in a
single task it has to perform yet if not coded accordingly. you should
write your function adding
great indeed,
- great interface
- great file upload functionality
- have almost all functionality I need
but still I miss undo/redo functionality (even ctrl+z ctrl+y doesn't work)
and remove formatting (not just unlink function)
Maximo,
Thanks for the example, but could you please post an example of how to get
json from web2py to be used with fullcalendar? I´ve tried a lot, but still
getting an error from fullcalendar. Tried even returning a string like:
{{id: 2, start: 2012-05-28 10:24:17, end: 2012-05-31 10:24:00,
and no font name, font size
I will wait a few releases until they will conquer the world
http://redactorjs.com/roadmap/
Ok, I may try subclassing the validator and removing the translate calls
since I'm not doing and language translation.
Thanks,
Jim
ok understood. what do you think about having auth outside of the app?
On Sunday, May 27, 2012 9:16:17 PM UTC-4, Anthony wrote:
By default, instantiating Auth() automatically makes the application a CAS
provider, whether or not you actually use the app as a CAS provider. So, if
the app is
I have seen that web2py supports integration with Facebook + Twitter.
What if I want to create my own OAuth2 Server like what is offered by
Facebook and Twitter?
Is this possible with Web2Py?
Not sure what you mean.
On Monday, May 28, 2012 9:16:27 PM UTC-4, Horus wrote:
ok understood. what do you think about having auth outside of the app?
On Sunday, May 27, 2012 9:16:17 PM UTC-4, Anthony wrote:
By default, instantiating Auth() automatically makes the application a
CAS
web2py 1.95 and the jython version mentioned here:
http://web2py.com/books/default/chapter/29/13?search=jython
worked.
For some time we have put effort in supporting Jython and web2py kind of
worked with it. But kind of was not good enough and I gave up supporting
it.
The problem is not
Why does conquer world come before module for drupal? Must be really
difficult to make a module for Drupal.
LOL
Thanks William i will go through the documentation
On Tue, May 29, 2012 at 1:18 AM, G. Clifford Williams
gcliffwilli...@gmail.com wrote:
Have you taken a look at the Services and REST documentation in the 4th
edition of the web2py manual? Here's a link to the online version:
*Can anyone give me the version numbers of a web2py and Jython combination
that work?*
I've read that web2py works out of the box with Jython for about the past
three years, so obviously somebody has made this work (maybe it's just a
matter of luck depending on the current state of Jython and
On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote:
and no font name, font size
That's a plus. It should he handled by css.
I will wait a few releases until they will conquer the world
http://redactorjs.com/roadmap/
Why does conquer world come before module for drupal?
Theoretically yes. In fact I may even have somewhere a Oauth 1.0 server.
The problem is that the Oauth 2.0 specs are very poor. They specify how a
the client asks the server if a user is authenticated but do not say
anything about what information the server should provide to the client
(user
69 matches
Mail list logo