as Johann already mentioned overwriting all your .py files will not change
you database so you should be fine doing that
if you do not wan to do this manually you can e.g.
use a version control system and exclude the content of the databases
directory
then on the client side all you have to do
As I am currently writing my phD thesis i wonder if there is a proper
reference to the migrations technique used in web2py.
I cannot even find a proper Wikipedia article for that (not that this would
be a reference I would like to use).
the closest I found so far is http://guides.rubyonrails.or
In my project I use conditional models since I have a lot of tables.
However I have a problem since one of the database tables (defined in a
conditional model) has to be defined in another conditional model
here an example
/models/plugin_restapidoc/plugin_restapidoc.py
/models/wizard/wizard.py
/m
yes I know this problem for a long time, would be nice if this would be
fixed. I guess right now the problem is that the whole ticket display fails
if one ticket is corrupted. I think this could be quickfixed by a simple
try catch block around the deserialization of each ticket pickle file.
On
is it possible to do something similar to
def test():
response.generic_patterns = ['json']
return [1,2,3,4]
I enable basic auth with
auth.settings.allow_basic_login = True
I tried
wget --user=u...@bla.de --password=xxx http:
//127.0.0.1:8000/pyMantis/tlc/records.json/Strain
curl --head -u u...@bla.de:xxx http:
//127.0.0.1:8000/pyMantis/tlc/records.json/Strain
and the python code
import urllib2
import
I am not able to find out how to email you in private o_O
On Tuesday, March 27, 2012 12:06:43 AM UTC+2, bussiere adrien wrote:
>
> It work
>
> Thanks
> Just mail me in private where to give
> Bussiere
>
> Le lundi 26 mars 2012 20:23:06 UTC+2, selecta a écrit :
>>
thanks, this is better, even though the quality of the rectangular logo is
still a bit crappy, a svg version would be much better (for all the logos)
On Thursday, March 29, 2012 5:51:44 PM UTC+2, Anthony wrote:
>
> On Thursday, March 29, 2012 10:56:47 AM UTC-4, selecta wrote:
>>
wnload. You might also consider
> using the web2py.com favicon, which you can find in the /static folder of
> the "examples" app that comes with web2py (see
> https://github.com/web2py/web2py/blob/master/applications/examples/static/favicon.ico
> ).
>
> Anthony
>
> On
I want to put an icon of web2py on a poster that I am going to present. Is
this icon the right choice?
http://s3.amazonaws.com/uploads.uservoice.com/logo/design_setting/60411/original/web2py_icon_4162_0.png?1322778787
I dont want to use the strechted logo
(http://web2py.com/examples/static/image
if it works please donate to the web2py project
'inscriptioninvit'))
On Monday, March 26, 2012 11:53:28 AM UTC+2, selecta wrote:
>
> did you see this slice
>
> http://www.web2pyslices.com/slice/show/1443/auto-login-when-you-come-from-localhost<http://www.web2pyslices.com/slice/show/1443/auto-login-when-you-come-fr
did you see this slice
http://www.web2pyslices.com/slice/show/1443/auto-login-when-you-come-from-localhost
it logs you in when you come from localhost, just exchange the if an there
you go :D
On Monday, March 26, 2012 2:11:29 AM UTC+2, bussiere adrien wrote:
>
> it's more a logical problem than y
I know pyMantis would need some clean up but it has some really nice an
unique features
http://pymantis.org/
source: https://sourceforge.net/scm/?type=hg&group_id=304012
On Thursday, September 22, 2011 8:52:05 PM UTC+2, Massimo Di Pierro wrote:
>
> I think we should make a list of featured web2p
If I load multiple forms as web2py components the date(time) picker only
works in the first form. Can somebody verify that or is it just a bug in my
code?
i'm on it so far the only implementation i have seen is
https://bitbucket.org/bottiger/web2py-openid/overview but we cannot get it
get it working :(
tell me if you were more successful with something
you can if you put your js and css files in the view folder e.g.
controllers/default.py
def myscript():
return dict()
def index():
response.files.append(URL('myscript.js'))
views/default/myscript.js
jQuery(document).ready(function() {
alert('this is an alert with a web2py url {{=URL('index
db.define_table('person',Field('name'),Field('description','text'),Field('sex'))
records = db(...).select(..., limitby=(0, 5))
for r in records:
r.description = '%s%s'%(r.description[:10],'...' if
len(r.description)>10 else '')
oh an here the css code to make it work inline (remove scrollbars, infobox,
linenumbers and excessive spacing)
.syntaxhighlighter {
padding-bottom: 1px;
margin: 0px !important;
}
PRE('[(str, int)]', _class='brush: py; gutter: false; toolbar: false;')
yes i had the same problem, but since i had some other issues i abandoned
this
see here
https://groups.google.com/forum/#!searchin/web2py/pygments|sort:date/web2py/9EyKOZ-bHHM/1myqDA9qMv0J
since this is still not working I changed to
http://alexgorbatchev.com/SyntaxHighlighter/
here is an exampl
oh yes
Field("foobar", "list:upload")
would be very nice
check google, some people already talked about it
On Jul 29, 1:21 pm, António Ramos wrote:
> How to Model an 'upload' field to permit more than one attachment?
> thank you
>
> António
Have a look at
http://tlc2.hg.sourceforge.net/hgweb/tlc2/tlc2/file/d68f1405e1c5/views/generic.xls
http://tlc2.hg.sourceforge.net/hgweb/tlc2/tlc2/file/d68f1405e1c5/views/generic.xlsx
they use tablib (which includes xlwt, ...)
http://docs.tablib.org/en/latest/index.html
> If I find any bug, would you like me to send it to you
yes :D please post them here
http://pymantis.org/pymantis_server/plugin_issue/index
check out the plugin_release from pyMantis
it will automatically build win linux mac and w2p package releases of
your app
it also has an update mechanism that allows the download and
installation of updated versions
the plugin is not perfect yet and it would be cool to have more
testers/developers
maybe it is better so switch to some javascript syntax highlighter?
any recommendations ...
> try to replace:
>
> oldmod = sys.modules['pygments.lexers']
>
> with:
>
> import pygments.lexers as oldmod
hagrr why must pygements be so ...
i tried that but i got
File "applications/pygments_test/modules/pygments/lexers/__init__.py",
line 223, in
import pygments.lexers as oldmod
Attribu
On Jun 20, 8:32 am, José L. wrote:
> selecta, the downloads
> fromhttp://pymantis.org/pymantis_server/plugin_release/downloaddon't work in
> any of its versions.
i know but the strange thing is that i works from some locations (all
that i have access to :( ) and others not (down
> > but the pygments error still exists
> > oldmod = sys.modules['pygments.lexers']
> > KeyError: 'pygments.lexers'
> > any clue about this one?
> > --
>
> Hello,
>
> The importer will import the module as something like
> applications.appname.modules.pygments (this the name used for sys.modul
:39 am, Pierre Thibault
wrote:
> 2011/6/17 selecta
>
> > I also have problems importing pygments from the modules directory
> >http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.app.pygments_test...
>
> > i downloaded pygments fromhttp://pypi.python.org/pypi/Pygments
>
thanks sounds great, i will try first thing tomorrow morning at work,
things are kind of messed up at home right now ...
On Jun 18, 1:39 am, Pierre Thibault
wrote:
> 2011/6/17 selecta
>
> > I also have problems importing pygments from the modules directory
> >http://jaguar.bio
btw if you have different image type you can get the extension with
os.path.splitext(path)
On Jun 17, 11:41 am, selecta wrote:
> The problem is that download creates a http response with attachment
> you should be able to write a function that just returns the content
> of the image
&
The problem is that download creates a http response with attachment
you should be able to write a function that just returns the content
of the image
def show()
import gluon.contenttype
response.headers['Content-Type'] =
gluon.contenttype.contenttype('.jpg')
filename, file =
db.myimages.img_
vel)
File "/home/fkrause/Downloads/tmp/web2py/gluon/custom_import.py",
line 75, in __call__
level)
File "applications/pygments_test/modules/pygments/lexers/
__init__.py", line 222, in
oldmod = sys.modules['pygments.lexers']
KeyError: 'pygments.lexers
I send you a test app that reproduces the error
in case somebody else wants to test/debug you can download it from
http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.app.w2popenid_test.w2p
On Jun 17, 4:32 am, Pierre Thibault
wrote:
> 2011/6/15 Massimo Di Pierro
>
> > looking into this...
>
> St
hi there i work with mamadou on this so i try to get some code working
for you to test this
On Jun 17, 4:32 am, Pierre Thibault
wrote:
> 2011/6/15 Massimo Di Pierro
>
> > looking into this...
>
> Still no news. Should we forget this issue? I really would like to debug but
> I don't have enough i
> you can customize select / option tags layout with CSS
that is what i usually do
go with you mouse and rightclik on the element and select inspect
element (ff+firebug, chrom or opera)
now you can see the id of the element
in you css you can now write something like
#mytable_body{
width: 790px
I created a bug report, would be good if someone could confirm this
bug
http://code.google.com/p/web2py/issues/detail?id=301
On Jun 10, 2:21 pm, Ross Peoples wrote:
> I'm sure you've already considered this, but maybe use a checkbox instead,
yes but this is a question of style an readability, radioboxes with
text are just far more descriptive an a single small checkbox
> as it's specifically designed to handle true/fa
i have the model
db.define_table( 'foobar',
Field('open', 'boolean', requires = IS_IN_SET([(True, 'open'),
(False, 'closed')], zero = None), default = True,
widget=SQLFORM.widgets.radio.widget),
)
and the controller
def edit():
return crud.update(db.foobar, request.args(0), deletable = Fal
replacing TAG[''] with DIV solved the problem, but still it would be
nice to find out why this causes web2py to act this way
On Jun 9, 12:37 pm, Daniel Gonzalez wrote:
> Im not working with the latest version, but sometimesn it happens to me,
> and is because there's not write permissions on the /errors folder, or
> because the /errors folder does not exists.
no this is not the case for me, you can help by following my
I check out the latest web2py version from the hg
I created a "New simple application"
I modified the first menu item in models/menu.py
response.menu = [
(TAG['']('Index'), False,
URL(request.application,'default','index'), [])
]
this does not make sense, and is just for testing, actualy
if this is fixed properly it could also fix
http://code.google.com/p/web2py/issues/detail?id=271
:D
On Jun 4, 2:19 am, "Sebastian E. Ovide"
wrote:
> tracked inhttp://code.google.com/p/web2py/issues/detail?id=285
>
> On Sat, Jun 4, 2011 at 12:53 AM, Massimo Di Pierro <
>
>
>
>
>
> massimo.dipie..
if you want to make sure that web2py starts again shortly after a
crash you can use this script
http://www.web2pyslices.com/main/slices/take_slice/97
On Jun 6, 6:47 pm, Pradeesh wrote:
> I have installed web2py on a remote opensuse server 10.3 and I am
> using a Putty to start the web2py server.
31, 3:46 pm, selecta wrote:
>
>
>
> > ERROR:web2py:Traceback (most recent call last):
> > File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in
> > restricted
> > exec ccode in environment
> > File "/home/select/Dev/web2py/applica
in case you do no know this yet
http://syntensity.com/static/python.html
def edit():
record_id = request.args(0)
def on_accept(form):
print 'in on accept'
response.headers['web2py-component-command'] =
XML("web2py_component('%s','list')"%URL('list'))
if not record_id:
db.plugin_whishlist.open.readable,
db.plugin_whishlist.open.writabl
ERROR:web2py:Traceback (most recent call last):
File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in
restricted
exec ccode in environment
File "/home/select/Dev/web2py/applications/pyMantis/controllers/
plugin_whishlist.py", line 118, in
File "/home/select/Dev/web2py/gluon/gl
very nice, just what i need, does it import xls too? xlsx even?
On May 13, 9:24 am, Bruno Rocha wrote:
> docshttp://docs.tablib.org/en/latest/index.html
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
>
>
>
> On Fri, May 13, 2011 at 4:13 AM, Bruno Rocha wrote:
> >https://github.com/
so what about fixing this issue?
should i create a issue on gcode?
On May 11, 7:07 pm, pbreit wrote:
> Hmmm...I haven't seen that pattern. I always put the LOAD() in a view. And
> decorate the calling controller. I don't see why or when you'd ever want to
> protect an individual component.
because you cannot grantee that the component cannot be guessed
image so
, selecta wrote:
> i have never botherd with this bug very much, but i think this could
> be solved by giving the login form a proper action and the class
> no_trap
i have never botherd with this bug very much, but i think this could
be solved by giving the login form a proper action and the class
no_trap
> the DIV is rendered fine in my tests, no need to add any prefix such
> as '.html' or '.load' for it to work.
hmm ok, i have to try some more, maybe i can find out how to reproduce
this strange behavior
>
> But having a LOAD in the controller generates an unnecessary ajax
> call,
this was just fo
YEEEHA
> species_form.element(_id="no_table_species").components[0] = 'foobar'
thank you this is what I wanted to, know :D
I always wondered how I could separate my JavaScript from the rest of
my HTML
It came to me and it worked almost well
controllers/default.py
def index():
response.files.append(URL(request.application,'default','script.js'))
return dict(content = LOAD('default', 'strange', ajax=True))
def scrip
I tried it but it did not work,
also it would be nice if i could do something with the uploaded
information first (apply some filter, reformating ...)
> Field('species_file', 'upload', label="Upload Names",
> uploadfield='species')
>
> uploadfield = True # means store file on disk
> uploadfield =
*bump*
On Apr 29, 1:30 pm, selecta wrote:
> > Also I wonder if there is a method to upload the file without ever
> > storing it? If I remove the uploadfolder argument it does not work. I
> > really dont want to store the file at all.
>
> ok i should have serached a bit
> Also I wonder if there is a method to upload the file without ever
> storing it? If I remove the uploadfolder argument it does not work. I
> really dont want to store the file at all.
ok i should have serached a bit more
uploadfield=False
does the trick
a bit more information on the other probl
I have the following form
species_form = form_factory(
Field('species', 'text', label=TAG['']
("Yeast",BR(),"Systematic Names")),
Field('species_file', 'upload', label="Upload Names",
uploadfolder=os.path.join(request.folder, 'tmp')),
)
I want he text field to be filled
custom error page, but you shouldn't get a loop
> either.
>
> Anthony
>
>
>
> On Thursday, April 28, 2011 1:48:55 PM UTC-4, selecta wrote:
> > hmm well ic, i guess this still not so bad
> > i will create two modes,
> > 1) development mode that show the tic
> What do you mean by corrupted error tickets? Do you have a traceback?
all I get is an unknow error, a printout in the shell and a ticket
file
if i try to access this ticket file in the appadmin i get the
traceback that i posted before
Traceback (most recent call last):
File "/home/fkrause/Dow
alternative would be to have the errors handled by
> a separate application.
>
> Anthony
>
>
>
> On Thursday, April 28, 2011 5:42:54 AM UTC-4, selecta wrote:
> > i am currently writing an issue tracker, that works already quite
> > nicely
> > however I have a bi
auth.settings.mailer = None
and the error messages are unknown again and only appear in the shell
i am stumbeling in the dark, what is going on here?
On Apr 28, 11:32 am, selecta wrote:
> ok this cant be correct
> so i started importing things that were missing
>
> from gluon.tools import Aut
auth.settings.mailer = None
and the error messages are unknown again and only appear in the shell
On Apr 28, 11:32 am, selecta wrote:
> ok this cant be correct
> so i started importing things that were missing
>
> from gluon.tools import Auth #ok
> from gluon.tools import Crud #ok
>
i am currently writing an issue tracker, that works already quite
nicely
however I have a big problem
I want the issue tracker to create custom error messages
i learned that you can do this by modifying routes.py
routes_onerror = [ ('pyMantis/500', '/pyMantis/plugin_issue/
error_ticket') ]
this w
ok this cant be correct
so i started importing things that were missing
from gluon.tools import Auth #ok
from gluon.tools import Crud #ok
from gluon.tools import Service #ok
from gluon.tools import Mail<-here it starts creating corrupt error
tickets again
On Apr 28, 11:11 am, selecta wr
after deleting my app step by step i found it
i had
from gluon.tools import *
in one of my model files
this breaks the ticket generation!
On Apr 28, 11:06 am, selecta wrote:
> I get an unkown error for every ticket that is created by my
> application
> I can see the print out of
I get an unkown error for every ticket that is created by my
application
I can see the print out of the error trackeback in the shell i started
web2py in
also the ticked pickle files are broken, when i open the admin to view
the tickets i get
Traceback (most recent call last):
File "/home/fkrause
File "/home/select/Dev/web2py/gluon/sqlhtml.py", line 944, in
createform
raise RuntimeError, 'formsyle not supported'
RuntimeError: formsyle not supported
> So the solution to multiple forms using LOAD is to define a formname... I
> guess...
right this is the solution for multiple forms (for all pages, not just
LOADed pages)
this patch fixes something different:
ONE form, multiple submit buttons
it searches for that property
(was_clicked_to_submit) and adds this element to the variable list, if
you can it would be nice if you could debug it
look in firebug/dragonfly/... if was_clicked_to_submit is an attribute
of your submit button
maybe your submit button has a different type??
On Apr 23, 6:37 pm, Tit
playing around with it i realised that inluding the admin css file is
not a good idea
a new css file would have to be added that works better with error
messages in web2py components, will get to that after easter, latest
On Apr 21, 8:04 pm, pbreit wrote:
> This potentially saves one click
right not more not less
>and prevents opening the error in a new tab?
why? the link is still there, you can do it if you want to
>
> -1
>
>
> On Thursday, April 21, 2011 9:37:33 AM UTC-4, selecta wrote:
> > that is not so nice, it would be a lot better if i could define the
> > error message in my application
> > the reason is that i created an issue tracker plugin that should
> > directly be displaye
this patch fixes the files needed to show error tickets directly if
you are logged in into the admin app
if not you will only see the old error message, nothing else
http://code.google.com/p/web2py/issues/detail?id=241
massimo, it would be really nice if you could look at this and include
it into
1 5:44:26 AM UTC-4, selecta wrote:
> > I found that in rewrite.py
> > def _params_default(app=None):
> > there is
> > p.error_message_ticket = ...
>
> > Is there a way to customise/overwrite this error messag in my
> > application?
> > or do i have to edit rewrite.py to customize it
I found that in rewrite.py
def _params_default(app=None):
there is
p.error_message_ticket = ...
Is there a way to customise/overwrite this error messag in my
application?
or do i have to edit rewrite.py to customize it
done http://code.google.com/p/web2py/issues/detail?id=232
On Apr 11, 3:44 pm, Massimo Di Pierro
wrote:
> No objection in principle but need to check implementation. Can you
> please open an issue on google code and upload your propose patch.
> Thanks.
>
> Massimo
>
> On Ap
*bump*
massimo will you include this?
On Apr 7, 11:46 am, selecta wrote:
> itsnt it annoying that when you have forms with multiple submit
> buttons in a web2py component the button that is clicked to submit the
> form is not submitted
> here is a fix for web2py_ajax.html
>
>
+1 yeay
On Apr 10, 11:30 pm, Massimo Di Pierro
wrote:
> +1
>
> On Apr 10, 9:35 am, José Luis Redrejo Rodríguez
> wrote:
>
>
>
> > It's just been accepted into Debian. I'll upload latest stable version
> > available (1.94.6) inwww.web2py.comtomorrow.
> > So, from now on, Debian users can install
print A(filename, _href = URL(request.application, 'default',
'download', args = record.myfile))
it returns
issue file
so you have the original file name and the name under which it is
stored? what other original file name would you need?
On Apr 7, 1:53 pm, carlo wrote:
> mm
record = db.mytable[1]
filename, file = db.mytable.myfile.retrieve(record.myfile)
A('%s'%filename, _href = URL(request.application, 'default',
'download', args = record.myfile))
i read the answer on this mailing list and i provided it to others
like 50 times, this should go into the FAQ of web2py
itsnt it annoying that when you have forms with multiple submit
buttons in a web2py component the button that is clicked to submit the
form is not submitted
here is a fix for web2py_ajax.html
now you can have forms with 2 or more submit buttons/images in web2py
components
diff -r 25822b3791e4 ap
ah i was just about to complain that the main page still links to a
strange irc channel, but that finally changed
i guess this is one of the reasons why there are so few people in the
irc channel, it was just not linked properly
On Apr 4, 9:38 am, Mengu wrote:
> it's because they beat us on the n
> can you summarize for us, what is done, what needs to be done.
so far we have experiences visualizing biochemical networks with tools
like Cytoscape, Graphviz, ... we even wrote our own web2py plugin to
create force directed graphs
http://groups.google.com/group/web2py/browse_thread/thread/d9c5
Mar 22, 3:59 pm, selecta wrote:
> Hi web2py coders,
> I am very happy to tell you that my group - Theoretical Biophysics at
> the HU-Berlin - got selected for a mentoring program for the GSOC2011
> (http://code.google.com/soc/). We want to create an new layout
> algorithm for bioch
> Anybody is using Apache2 with Debian 6?
>
> I just upgraded from Debian 5 to 6, and notice an obscene amount of
> memory taken by Apache2, which almost 600MB. Unbelievable. In
> Debian 5, it took about 300MB.
I tried this setup on my virtual machine server (256MB ram) and i
could not get web
> Because we do not use them enough and feel we have room for
> improvement.
ha what do you mean? components are my fav in web2py :D
http://www.web2pyslices.com/main/slices/take_slice/74
http://pymantis.org/ -> plugin_restapidoc
created it within a few hours with the heavy use of components
ht
Hi web2py coders,
I am very happy to tell you that my group - Theoretical Biophysics at
the HU-Berlin - got selected for a mentoring program for the GSOC2011
(http://code.google.com/soc/). We want to create an new layout
algorithm for biochemical reaction networks, a visualization of the
reaction n
For the the pyMantis project I created the following plugins. Since
they are integrated into the access management of pyMantis some of
them will need some small modifications to make them work with other
applications.
download the web2py app package from, the os releases are currently
broken but w
> just trying to get to a point where i can do the db structure scrape to
> create the web2py db code as i interpret that is what your code does
yes the script uses the mysql and mysqldump excecutables to dump the
table structures and parses that with regular expressions
Nice work Kevin, I have
there was already a suggestion for that,
the answer was to take the methods for displaying the tickets and
displaying the ticket content instead of the link if the user has the
right permissions, should be straight forward for somebody a bit into
the web2py code
unfortunately nobody had time/intere
On Feb 7, 5:29 am, selecta wrote:
>
>
>
> > Traceback (most recent call last):
> > File "/home/fkrause/Dev/web2py/gluon/restricted.py", line 188, in
> > restricted
> > exec ccode in environment
> > File "/home/fkrause/Dev/web2py/application
Traceback (most recent call last):
File "/home/fkrause/Dev/web2py/gluon/restricted.py", line 188, in
restricted
exec ccode in environment
File "/home/fkrause/Dev/web2py/applications/pyMantis/controllers/
default.py", line 101, in
File "/home/fkrause/Dev/web2py/gluon/globals.py", line 95,
very nice, thank you
On Jan 26, 6:19 pm, Massimo Di Pierro
wrote:
> You can put this in a model:
>
> if application.function='option': response.view='default.html'
>
> On Jan 26, 9:41 am, selecta wrote:
>
>
>
> > this will not work since the inf
this will not work since the inforamtion that a different view should
be userd is not chached
@cache(request.env.path_info, time_expire=360, cache_model=cache.ram)
def option():
items = []
items.append( ITEM_SLINK('&Books', URL(r=request, f='index'),
'back') )
...
response.view='def
http://www.web2pyslices.com/main/slices/take_slice/118
if you have an application that has access control it can be annoying
to log in every time even though you are on localhost. This small
snippet will automatically log you in as the first user when you come
from localhost
put the following in
no need to store the original filename
record = db(db.mytable.id==1).select().first()
filename, file = db.mytable.uploadfield.retrieve(record.uploadfield)
A('%s'%filename, _href = URL(request.application, 'default',
'download', args = [record.uploadfield]))
On Jan 14, 9:29 am, cjrh wrote:
> bump
and just for completion my slice doing something similar
http://web2pyslices.com/main/slices/take_slice/113
On Jan 10, 11:35 pm, Michele Comitini
wrote:
> I made a slice:
>
> http://web2pyslices.com/main/slices/take_slice/114
>
> mic
>
> 2011/1/10 K.R.Arun :
>
>
>
> > Can you show me an example w
1 - 100 of 386 matches
Mail list logo