Re: [web2py] Re: new matplotlib tcl problem

2014-02-19 Thread Marian Siwiak
Ekhm. In a version 2.8 we go back to the very same problem from 1.99.
Did I miss something in matplotlib handling? search of the group didn't 
come with anything useful... there is a discussion on setting MPLCONFIGDIR 
setting 
to some tmp dir, but hey, in 2.5.1 everything works smoothly without it. 

Very best regards,

On Wednesday, 17 July 2013 10:54:21 UTC+1, Marian Siwiak wrote:
>
> Solved. 
> Explanation below is for future reference, if someone will experience 
> similar problem (as Massimo pointed it in a very gentle way, maybe not that 
> obvious to an external reader, and this solution is applicable I guess to a 
> very wide range of problems). 
> *Solution: It is always worth updating web2py to a newest version. *
> I was a bit afraid it may screw something with my app, but I was S 
> wrong!
> Problem existed in version 1.99 and magically (yeach, sure!) disappeared 
> in 2.5.1.
> Thanks,
> Marian
> TAG: library problem, compatibility issues, environment variables, 
> external library, matplotlib  
>
>
> On Wed, Jul 17, 2013 at 11:06 AM, Massimo Di Pierro wrote:
>
>> Based on this: github.com/web2py/web2py
>> you are right
>>
>>
>> On Tuesday, 16 July 2013 14:21:51 UTC-5, Marian Siwiak wrote:
>>>
>>> Hi,
>>>
>>> I try to run a module starting with:
>>>
>>> def mymodule(*variables*):
>>> import matplotlib
>>> matplotlib.use('Agg')
>>> from pymol import *
>>>
>>> When I call it, I get error - piece of traceback is included below.
>>>
>>> File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 343, in 
>>> figure
>>>
>>>
>>> **kwargs)
>>>   File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", 
>>> line 80, in new_figure_manager
>>>
>>>
>>> window = Tk.Tk()
>>>   File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
>>>
>>>
>>> self.tk = _tkinter.create(screenName, baseName, className, interactive, 
>>> wantobjects, useTk, sync, use)
>>>
>>> TclError: no display name and no $DISPLAY environment variable
>>>
>>>
>>> Google says this tclerror usually means that tk tries to get 
>>> interactive, but I thought matplotlib.use('Agg') should prevent that.
>>> Any advice? 
>>> Thanks in advance.
>>>
>>  -- 
>>  
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/bNsGtWbV7AU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: new matplotlib tcl problem

2013-07-17 Thread Marian Siwiak
Solved.
Explanation below is for future reference, if someone will experience
similar problem (as Massimo pointed it in a very gentle way, maybe not that
obvious to an external reader, and this solution is applicable I guess to a
very wide range of problems).
*Solution: It is always worth updating web2py to a newest version. *
I was a bit afraid it may screw something with my app, but I was S
wrong!
Problem existed in version 1.99 and magically (yeach, sure!) disappeared in
2.5.1.
Thanks,
Marian
TAG: library problem, compatibility issues, environment variables, external
library, matplotlib


On Wed, Jul 17, 2013 at 11:06 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Based on this: github.com/web2py/web2py
> you are right
>
>
> On Tuesday, 16 July 2013 14:21:51 UTC-5, Marian Siwiak wrote:
>>
>> Hi,
>>
>> I try to run a module starting with:
>>
>> def mymodule(*variables*):
>> import matplotlib
>> matplotlib.use('Agg')
>> from pymol import *
>>
>> When I call it, I get error - piece of traceback is included below.
>>
>> File "/usr/lib/pymodules/python2.7/**matplotlib/pyplot.py", line 343, in 
>> figure
>>
>> **kwargs)
>>   File 
>> "/usr/lib/pymodules/python2.7/**matplotlib/backends/backend_**tkagg.py", 
>> line 80, in new_figure_manager
>>
>> window = Tk.Tk()
>>   File "/usr/lib/python2.7/lib-tk/**Tkinter.py", line 1712, in __init__
>>
>> self.tk = _tkinter.create(screenName, baseName, className, interactive, 
>> wantobjects, useTk, sync, use)
>> TclError: no display name and no $DISPLAY environment variable
>>
>>
>> Google says this tclerror usually means that tk tries to get interactive,
>> but I thought matplotlib.use('Agg') should prevent that.
>> Any advice?
>> Thanks in advance.
>>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/bNsGtWbV7AU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py resources

2013-07-16 Thread Marian Siwiak
Does anyone know who runs web2pyslices? Something has gone wrong and it 
issues tickets... Maybe it's worth to mention it to the admin. 

On Sunday, 5 May 2013 01:03:06 UTC+2, Anthony wrote:
>
> You can post recipes and articles here: http://www.web2pyslices.com. 
> There was at least one wiki in the past, but it became neglected and 
> ultimately abandoned.
>
> Anthony
>
> On Saturday, May 4, 2013 6:38:01 PM UTC-4, Fabiano wrote:
>>
>> This thread has a very useful collection references and resources.
>>
>> I've seen a lot of great stuff on this list but over time it gets harder 
>> to dig the mailing due the high amount of messages. I understand somethings 
>> don't fit on the main website and putting things in there requires some 
>> effort and overhead (review, maintenance, access, etc.).
>>
>> Have you guys considered using a wiki for this kind of stuff? I think 
>> this kind of information could easily be placed in there and maintained by 
>> the community.
>>
>> The Google Code project hosting where the Issues tracker is already has a 
>> wiki which could be used, so there is no need to setup one.
>>
>> What you think of this suggestion?
>>
>> Fabiano.
>>
>> On Monday, April 30, 2012 4:49:41 PM UTC-3, Anthony wrote:
>>>
>>> Most web2py resources can be found on web2py.com, but here are some 
>>> Google Groups topics identifying additional resources:
>>>
>>> web2py help & 
>>> resources
>>> Plugins
>>> Signature 
>>> apps
>>> Featured web2py 
>>> apps
>>> web2py 
>>> hosting
>>>
>>

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




[web2py] new matplotlib tcl problem

2013-07-16 Thread Marian Siwiak
Hi,

I try to run a module starting with:

def mymodule(*variables*):
import matplotlib
matplotlib.use('Agg')
from pymol import *

When I call it, I get error - piece of traceback is included below.

File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 343, in figure
**kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", 
line 80, in new_figure_manager
window = Tk.Tk()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, 
wantobjects, useTk, sync, use)
TclError: no display name and no $DISPLAY environment variable


Google says this tclerror usually means that tk tries to get interactive, 
but I thought matplotlib.use('Agg') should prevent that.
Any advice? 
Thanks in advance.

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: 100% CPU usage when 20GB of pictures in static

2013-07-15 Thread Marian Siwiak
@Richard - I found it. Thank you. I don't know how could I miss it.
@ Massimo - you're right, it was local development server, but top pointed
to web2py as guilty.
When I was installing web2py (1.99 back then), however, I was unable to set
all those VirtualHost issues to have two separately working servers, but
maybe I'll have to.
Best regards,
Marian


On Mon, Jul 15, 2013 at 5:38 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Are you accessing it from localhost? I suspect it is the browser which is
> using 100% of the CPU, not the server. Anyway, it is more efficient to use
> nginx or apache to serve static files, rather then web2py.
>
>
> On Monday, 15 July 2013 10:25:25 UTC-5, Marian Siwiak wrote:
>>
>> Hello everybody,
>>
>> I have a problem, I have a huge database of png files, which need to be
>> accessed by users of my system, however, when I place them in 'static'
>> folder, web2py used 100 of my CPU (and it's not 286 architecture...).
>> Any advice? I never found a way to create links leading outside
>> application folder, but it would be a solution.
>>
>> Best regards,
>> Marian
>>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/s7UtPveDC2I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




[web2py] 100% CPU usage when 20GB of pictures in static

2013-07-15 Thread Marian Siwiak
Hello everybody,

I have a problem, I have a huge database of png files, which need to be 
accessed by users of my system, however, when I place them in 'static' 
folder, web2py used 100 of my CPU (and it's not 286 architecture...). 
Any advice? I never found a way to create links leading outside application 
folder, but it would be a solution.

Best regards,
Marian

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Formatting error message "invalid query"

2013-03-11 Thread Marian Siwiak
thank you very much!
that is what I needed.


On Mon, Mar 11, 2013 at 2:54 PM, Niphlod  wrote:

> you want to display some other text than "invalid query" or you want to
> customize the appearence of it ?
> if you're interested in the appearence, use the css
>
> div.web2py_counter {
>  color: #8fb3f3;
>
> }
>
> On Monday, March 11, 2013 2:45:10 PM UTC+1, Marian Siwiak wrote:
>>
>> Dear All!
>>
>> I'm sorry if I repeat question earlier asked, but the specifics of it
>> make it quite hard to find using search engine...
>>
>> My problem is, when I am using SQLFORM to interact with database, and
>> when I type in an "invalid query", the appearing error message is almost
>> impossible to notice:
>> Please see for yourself:
>> http://nexus.ibb.waw.pl/**Transimulation/default/ecoli_**manage<http://nexus.ibb.waw.pl/Transimulation/default/ecoli_manage>
>>  -
>> type in any two words separated by space.
>>
>> Where can I modify the format of appearing "invalid error" message?
>>
>> Thank you in advance.
>> Marian
>>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/9iGqlQ9yLKc/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




[web2py] Formatting error message "invalid query"

2013-03-11 Thread Marian Siwiak
Dear All!

I'm sorry if I repeat question earlier asked, but the specifics of it make 
it quite hard to find using search engine... 

My problem is, when I am using SQLFORM to interact with database, and when 
I type in an "invalid query", the appearing error message is almost 
impossible to notice:
Please see for yourself:
http://nexus.ibb.waw.pl/Transimulation/default/ecoli_manage - type in any 
two words separated by space. 

Where can I modify the format of appearing "invalid error" message?

Thank you in advance.
Marian   

-- 

--- 
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, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: sqlform.grid datable entry vew format

2012-05-28 Thread Marian Siwiak
@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 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
>>
>>
>> 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, fields=[db.t_yeast.f_gene_id, 
>>> db.t_yeast.f_gene_desc], onupdate=auth.archive, deletable=False, 
>>> editable=False, create=False, maxtextlength=128, user_signature=False)
>>> return locals()
>>>
>>> view code is default, I never found function called "view". 
>>>
>>> best regards,
>>> Marian
>>>
>>>
>>>
>>> Can you show your controller and view code?
>>>>
>>>>
>>>> On Sunday, May 27, 2012 6:27:36 PM UTC-4, Marian Siwiak wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I've got simple question, to which I cna't find simple answer. 
>>>>> I formatted "View" of my entries, showing fields I want to show, hidin 
>>>>> those I don't want to show. 
>>>>> When I get page with "view" of the row of my datable, it starts with 
>>>>> "form:" - how do I remove this? 
>>>>>
>>>>> thanks in advance,
>>>>> Marian
>>>>>
>>>>
>>>
>>

Re: [web2py] Re: sqlform.grid datable entry vew format

2012-05-28 Thread Marian Siwiak
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  wrote:

> 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, fields=[db.t_yeast.f_gene_id,
> db.t_yeast.f_gene_desc], onupdate=auth.archive, deletable=False,
> editable=False, create=False, maxtextlength=128, user_signature=False)
> return locals()
>
> view code is default, I never found function called "view".
>
> best regards,
> Marian
>
>
> On Mon, May 28, 2012 at 3:09 AM, Anthony  wrote:
>
>> Can you show your controller and view code?
>>
>>
>> On Sunday, May 27, 2012 6:27:36 PM UTC-4, Marian Siwiak wrote:
>>>
>>> Hello,
>>>
>>> I've got simple question, to which I cna't find simple answer.
>>> I formatted "View" of my entries, showing fields I want to show, hidin
>>> those I don't want to show.
>>> When I get page with "view" of the row of my datable, it starts with
>>> "form:" - how do I remove this?
>>>
>>> thanks in advance,
>>> Marian
>>>
>>
>


[web2py] favicon problem

2012-05-28 Thread Marian Siwiak
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


Re: [web2py] Re: sqlform.grid datable entry vew format

2012-05-28 Thread Marian Siwiak
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, fields=[db.t_yeast.f_gene_id,
db.t_yeast.f_gene_desc], onupdate=auth.archive, deletable=False,
editable=False, create=False, maxtextlength=128, user_signature=False)
return locals()

view code is default, I never found function called "view".

best regards,
Marian


On Mon, May 28, 2012 at 3:09 AM, Anthony  wrote:

> Can you show your controller and view code?
>
>
> On Sunday, May 27, 2012 6:27:36 PM UTC-4, Marian Siwiak wrote:
>>
>> Hello,
>>
>> I've got simple question, to which I cna't find simple answer.
>> I formatted "View" of my entries, showing fields I want to show, hidin
>> those I don't want to show.
>> When I get page with "view" of the row of my datable, it starts with
>> "form:" - how do I remove this?
>>
>> thanks in advance,
>> Marian
>>
>


Re: [web2py] sqlite datetime problem?

2012-05-27 Thread Marian Siwiak
Thank you very much! For the answer and for web2py!
Best regards,
Marian

W dniu poniedziałek, 28 maja 2012 użytkownik Massimo Di Pierro napisał:

> If there are empty rows in the CSV files they will perceived as end of
> data.
>
> On Sunday, 27 May 2012 12:08:21 UTC-5, Marian Siwiak wrote:
>>
>> Hi, I try to populate database defined below:
>>
>> db.define_table('t_yeast',
>> Field('f_gene_id', type='string',
>>   label=T('Gene Id')),
>> Field('f_oid', type='string',
>>   label=T('Other IDs')),
>> Field('f_l', type='integer',
>>   label=T('transcript length [codons] - L')),
>> Field('f_x', type='double',
>>   label=T('transcripts per cell - x')),
>> Field('f_bs', type='double',
>>   label=T('number of proteins produced from a single transcript
>> during its lifespan - b')),
>> Field('f_g', type='double',
>>   label=T('ribosome density in number of ribosomes per 100 codons
>> - g')),
>> Field('f_w', type='double',
>>   label=T('number of ribosomes attached to a single transcript -
>> w')),
>> Field('f_i', type='double',
>>   label=T('translation initiation time [ms] - I')),
>> Field('f_a', type='integer',
>>   label=T('total protein abundance - A')),
>> Field('f_e', type='double',
>>   label=T('translation elongation time [ms] - E')),
>> Field('f_em', type='double',
>>   label=T('mean codon elongation time [ms] - ē')),
>> Field('f_m', type='datetime',
>>   label=T('transcript mean lifetime [ms] - m')),
>> Field('f_gene_desc', type='string',
>>   label=T('Gene Description')),
>> Field('f_q', type='text',
>>   label=T('FASTA sequence')),
>> format='%(f_gene_id)s',
>> migrate=settings.migrate)
>>
>> db.define_table('t_yeast_**archive',db.t_yeast,Field('**current_record','reference
>> t_yeast',readable=False,**writable=False))
>>
>>
>> with following data from csv file:
>> "t_yeast.id","t_yeast.f_gene_**id","t_yeast.f_l","t_yeast.f_**
>> x","t_yeast.f_bs","t_yeast.f_**g","t_yeast.f_w","t_yeast.f_i"**
>> ,"t_yeast.f_a","t_yeast.f_e","**t_yeast.f_em","t_yeast.f_m","**
>> t_yeast.f_gene_desc","t_yeast.**f_q","t_yeast.f_oid"
>>
>> "1000","YAL001C",1161,1.3,89,**0.491,5.7,49.477,,282.084,243,**1:13:21,"Largest
>> of six subunits of the RNA polymerase III transcription initiation factor
>> complex (TFIIIC); part of the TauB domain of TFIIIC that binds DNA at the
>> BoxB promoter sites of tRNA and similar genes; cooperates with Tfc6p in DNA
>> binding","ATG","TFC3 SGDID:S1 Verified ORF"
>>
>> "1001","YAL002W",1275,0.4,149.**6,0.715,9.12,34.276,,312.664,**
>> 245.2,1:25:28,"Membrane-**associated protein that interacts with Vps21p
>> to facilitate soluble vacuolar protein localization; component of the
>> CORVET complex; required for localization and trafficking of the CPY
>> sorting receptor; contains RING finger motif","ATG","VPS8 SGDID:S2
>> Verified ORF"
>>
>> I get information "data uploaded" but nothing happens.
>>
>> Any help, please?
>>
>> best regards,
>> Marian
>>
>>


[web2py] sqlform.grid datable entry vew format

2012-05-27 Thread Marian Siwiak
Hello,

I've got simple question, to which I cna't find simple answer. 
I formatted "View" of my entries, showing fields I want to show, hidin 
those I don't want to show. 
When I get page with "view" of the row of my datable, it starts with 
"form:" - how do I remove this? 

thanks in advance,
Marian


[web2py] Re: java class path

2012-05-27 Thread Marian Siwiak
If someone would be looking for an answer:
path can be presented as {{=URL()}}, however for me it worked only when I 
prepared jar archive. bare .class  file is not sufficient.

W dniu sobota, 26 maja 2012 15:28:42 UTC+2 użytkownik Marian Siwiak napisał:
>
> Hello,
>
> I am trying to add java applet to my application. I have problem with 
> pointing the page to proper path. In and old thread I found Massimo's code 
> like:
>
>  archive="/{{=request.application}}/static/jalviewApplet.jar" mayscript 
> viewastext>  value="/{{=request.application}}/static/alnfile">  name="defaultColour" value="Nucleotide"> 
>
> my question is: where does this path actually start? I have myJavaApp.call 
> file and some config files, but I have no idea where to place them. 
> JavaConsole says Java tries to search for them in:
>
> network: Cache entry not found [url: 
> http://127.0.0.1:8000/MyApp/default/some/furhter/path/myJavaApp.class
>
> but I didn't find a way to place it there.
>
> Help would be much appreciated.
>
> best regards,
> Marian
>
>
>

[web2py] sqlite datetime problem?

2012-05-27 Thread Marian Siwiak
Hi, I try to populate database defined below:

db.define_table('t_yeast',
Field('f_gene_id', type='string',
  label=T('Gene Id')),
Field('f_oid', type='string',
  label=T('Other IDs')),
Field('f_l', type='integer',
  label=T('transcript length [codons] - L')),
Field('f_x', type='double',
  label=T('transcripts per cell - x')),
Field('f_bs', type='double',
  label=T('number of proteins produced from a single transcript 
during its lifespan - b')),
Field('f_g', type='double',
  label=T('ribosome density in number of ribosomes per 100 codons - 
g')),
Field('f_w', type='double',
  label=T('number of ribosomes attached to a single transcript - 
w')),
Field('f_i', type='double',
  label=T('translation initiation time [ms] - I')),
Field('f_a', type='integer',
  label=T('total protein abundance - A')),
Field('f_e', type='double',
  label=T('translation elongation time [ms] - E')),
Field('f_em', type='double',
  label=T('mean codon elongation time [ms] - ē')),
Field('f_m', type='datetime',
  label=T('transcript mean lifetime [ms] - m')),
Field('f_gene_desc', type='string',
  label=T('Gene Description')),
Field('f_q', type='text',
  label=T('FASTA sequence')),
format='%(f_gene_id)s',
migrate=settings.migrate)

db.define_table('t_yeast_archive',db.t_yeast,Field('current_record','reference 
t_yeast',readable=False,writable=False))


with following data from csv file:
"t_yeast.id","t_yeast.f_gene_id","t_yeast.f_l","t_yeast.f_x","t_yeast.f_bs","t_yeast.f_g","t_yeast.f_w","t_yeast.f_i","t_yeast.f_a","t_yeast.f_e","t_yeast.f_em","t_yeast.f_m","t_yeast.f_gene_desc","t_yeast.f_q","t_yeast.f_oid"

"1000","YAL001C",1161,1.3,89,0.491,5.7,49.477,,282.084,243,1:13:21,"Largest 
of six subunits of the RNA polymerase III transcription initiation factor 
complex (TFIIIC); part of the TauB domain of TFIIIC that binds DNA at the 
BoxB promoter sites of tRNA and similar genes; cooperates with Tfc6p in DNA 
binding","ATG","TFC3 SGDID:S1 Verified ORF"

"1001","YAL002W",1275,0.4,149.6,0.715,9.12,34.276,,312.664,245.2,1:25:28,"Membrane-associated
 
protein that interacts with Vps21p to facilitate soluble vacuolar protein 
localization; component of the CORVET complex; required for localization 
and trafficking of the CPY sorting receptor; contains RING finger 
motif","ATG","VPS8 SGDID:S2 Verified ORF"

I get information "data uploaded" but nothing happens. 

Any help, please?

best regards,
Marian



[web2py] java class path

2012-05-26 Thread Marian Siwiak
Hello,

I am trying to add java applet to my application. I have problem with 
pointing the page to proper path. In and old thread I found Massimo's code 
like:

   

my question is: where does this path actually start? I have myJavaApp.call 
file and some config files, but I have no idea where to place them. 
JavaConsole says Java tries to search for them in:

network: Cache entry not found [url: 
http://127.0.0.1:8000/MyApp/default/some/furhter/path/myJavaApp.class

but I didn't find a way to place it there.

Help would be much appreciated.

best regards,
Marian




Re: [web2py] Re: Server setup problem

2012-05-19 Thread Marian Siwiak
I quit trying to modify anything and used default settings. 
I used a script:
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh
 
and it worked. 

Thanks a lot for help! 
Cheers!
Marian

W dniu sobota, 19 maja 2012 22:18:07 UTC+2 użytkownik Jonathan Lundell 
napisał:
>
> On May 19, 2012, at 12:47 PM, Marian Siwiak wrote:
>
> It looks basically OK to me. I suppose you've verified 
>> that /var/www/web2py/wsgihandler.py really is the path to that file?
>>
>> Also, do you see that file, and only that file, from sites-enabled?
>>
>
> Thanks for the interest. Path is ok. It's the only file, however, I had to 
> name link 000-default.
>
>
> That's odd. The documentation seems to claim that any file name works, as 
> long as it doesn't start with . or #.
>
>

Re: [web2py] Re: Server setup problem

2012-05-19 Thread Marian Siwiak

>
>
> It looks basically OK to me. I suppose you've verified 
> that /var/www/web2py/wsgihandler.py really is the path to that file?
>
> Also, do you see that file, and only that file, from sites-enabled?
>

Thanks for the interest. Path is ok. It's the only file, however, I had to 
name link 000-default.
 

>
>
> 
>   ServerName nexus.ibb.waw.pl
>   WSGIDaemonProcess web2py user=www-data group=www-data \
>display-name=%{GROUP}
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>
>   
> AllowOverride None
> Order Allow,Deny
> Deny from all
> 
>   Allow from all
> 
>   
>
>   AliasMatch ^/([^/]+)/static/(.*) \
>/var/www/web2py/applications/$1/static/$2
>   
> Order Allow,Deny
> Allow from all
>   
>
>   
>   Deny from all
>   
>
>   
>   Deny from all
>   
>
>   CustomLog /var/log/apache2/access.log common
>   ErrorLog /var/log/apache2/error.log
> 
>
>
>
>

Re: [web2py] Re: Server setup problem

2012-05-19 Thread Marian Siwiak
ok. now I'm at invalid request level. 
below I attach my config file. I would appreciate pointing what's wrong 
with that:


  ServerName nexus.ibb.waw.pl
  WSGIDaemonProcess web2py user=www-data group=www-data \
   display-name=%{GROUP}
  WSGIProcessGroup web2py
  WSGIScriptAlias / /var/www/web2py/wsgihandler.py

  
AllowOverride None
Order Allow,Deny
Deny from all

  Allow from all

  

  AliasMatch ^/([^/]+)/static/(.*) \
   /var/www/web2py/applications/$1/static/$2
  
Order Allow,Deny
Allow from all
  

  
  Deny from all
  

  
  Deny from all
  

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log



W dniu sobota, 19 maja 2012 19:03:45 UTC+2 użytkownik Jonathan Lundell 
napisał:
>
> On May 19, 2012, at 9:58 AM, Marian Siwiak wrote:
>
> Ok. That was helpful. Probably problem is with configuration in 
> /etc/apache2/sites-available 
>
> one question - online book says to make special web2py file, while 
> cookbook says to modify default file. 
> neither of 2 approaches seem to work... is there anything wrong with those 
> examples they presented? 
>
>
> Either way should work, as long as sites-enabled is linked to the right 
> one. It depends on your overall configuration and how you have virtual 
> servers set up, but in the simplest case you don't want sites-enabled to 
> link to both web2py and default configurations, because they're likely to 
> be in conflict.
>
> I'm guessing that your other problem is related to telling Apache which 
> URLs are to be handled by mod_wsgi and/or pointing mod_wsgi to the right 
> path to the handler.
>
>
> Marian
>
> W dniu sobota, 19 maja 2012 18:41:04 UTC+2 użytkownik Niphlod napisał:
>>
>> it seems that apache doesn'0t understand to pass page rendering to 
>> mod_wsgi and instead offers the default behaviour (list and send file).
>>
>> Without further details it's quite impossible make some other 
>> assumptions...
>>
>> Il giorno sabato 19 maggio 2012 17:28:26 UTC+2, Marian Siwiak ha scritto:
>>>
>>> Hello again,
>>>
>>> I have a problem with deploying my application.
>>> I have set up apache2 server with mod_wsgi on my machine (It runs on 
>>> debian 6.0.4).
>>> The change I made was to use /var/ww instead of /users/www-data folder. 
>>> Everything went smoothly, as described in web2py online book, but when 
>>> typing www.myserver.pl/path/to/my/application in my browser I get a 
>>> list of  files instead of application index page. Any suggestions where to 
>>> search for the problem (except PEBCAK)? 
>>>
>>> best regards and thanks in advance,
>>> Marian
>>>
>>
>
>

[web2py] Re: Server setup problem

2012-05-19 Thread Marian Siwiak
Ok. That was helpful. Probably problem is with configuration in 
/etc/apache2/sites-available 

one question - online book says to make special web2py file, while cookbook 
says to modify default file. 
neither of 2 approaches seem to work... is there anything wrong with those 
examples they presented? 

Marian

W dniu sobota, 19 maja 2012 18:41:04 UTC+2 użytkownik Niphlod napisał:
>
> it seems that apache doesn'0t understand to pass page rendering to 
> mod_wsgi and instead offers the default behaviour (list and send file).
>
> Without further details it's quite impossible make some other 
> assumptions...
>
> Il giorno sabato 19 maggio 2012 17:28:26 UTC+2, Marian Siwiak ha scritto:
>>
>> Hello again,
>>
>> I have a problem with deploying my application.
>> I have set up apache2 server with mod_wsgi on my machine (It runs on 
>> debian 6.0.4).
>> The change I made was to use /var/ww instead of /users/www-data folder. 
>> Everything went smoothly, as described in web2py online book, but when 
>> typing www.myserver.pl/path/to/my/application in my browser I get a list 
>> of  files instead of application index page. Any suggestions where to 
>> search for the problem (except PEBCAK)? 
>>
>> best regards and thanks in advance,
>> Marian
>>
>

[web2py] Server setup problem

2012-05-19 Thread Marian Siwiak
Hello again,

I have a problem with deploying my application.
I have set up apache2 server with mod_wsgi on my machine (It runs on debian 
6.0.4).
The change I made was to use /var/ww instead of /users/www-data folder. 
Everything went smoothly, as described in web2py online book, but when 
typing www.myserver.pl/path/to/my/application in my browser I get a list of 
 files instead of application index page. Any suggestions where to search 
for the problem (except PEBCAK)? 

best regards and thanks in advance,
Marian


[web2py] Re: single datable record formatting

2012-05-15 Thread Marian Siwiak
It worked as expected.
Thank you very much!
Marian

W dniu wtorek, 15 maja 2012 15:55:54 UTC+2 użytkownik Anthony napisał:
>
> In the controller that generates the grid, you can do:
>
> if request.args and request.args[-3] == 'view':
> response.view = 'path/to/other_view.html'
>
> or you can use conditional code in the main view for the page:
>
> {{if request.args and request.args[-3] == 'view':}}
> [custom code to display record]
> {{else:}}
> {{=grid}}
> {{pass}}
>
> Anthony
>
> On Tuesday, May 15, 2012 9:37:55 AM UTC-4, Marian Siwiak wrote:
>>
>> Dear all,
>>
>> I'm new to web2py, but I tried to search for an answer befor posting, I 
>> assure you.
>>
>> I've got datable, use SQLFORM.grid to display it, I have a "view" button 
>> which I can click and ge3t redirected to single record view.
>> Question is: where can I define the template for the single record 
>> display page. For now it looks like it uses same template "db_manage.html", 
>> as the table display - I would like to have different template for single 
>> record view than I have for whole table. 
>>
>> Thanks in advance,
>> Marian 
>>
>

[web2py] single datable record formatting

2012-05-15 Thread Marian Siwiak
Dear all,

I'm new to web2py, but I tried to search for an answer befor posting, I 
assure you.

I've got datable, use SQLFORM.grid to display it, I have a "view" button 
which I can click and ge3t redirected to single record view.
Question is: where can I define the template for the single record display 
page. For now it looks like it uses same template "db_manage.html", as the 
table display - I would like to have different template for single record 
view than I have for whole table. 

Thanks in advance,
Marian