egory.id>0).select(orderby=db.category.parent_id|
> db.category.name)
> for item in items:
> keys[item.id]=ul=UL()
> keys[item.parent_id].append(LI(A(item.name,_href='#'),ul)
> return keys[root]
>
> {{=build_menu()}}
>
> On Apr 26, 12:31
I tried to make it work on local hosting based on this (before I already
failed with some other guides):
http://www.web2pyslices.com/main/slices/take_slice/68
Earlier I verified, I can run simple python script, I got result to the
browser.
Now I prepared environment as you cam see here:
--
This is virtual server with centos 5.5 in internet.
I have successfully instaled web2py with Apache and mod_wsgi based
mainly on instructions from
http://web2py.com/AlterEgo/default/show/239 and
http://web2py.com/AlterEgo/default/show/240
Probably last step is missing.
I am getting this error wh
I did that as first thing. No luck.
I changed it to IP as I it works from command line.
Julius
V Streda, 26. máj 2010 o 19:41 -0500, Thadeus Burgess napísal(a):
> Try
>
> postgres://w2p:passw...@localhost:5432/w2p
>
> --
> Thadeus
>
>
>
>
>
> On Wed, M
Julius
V Štvrtok, 27. máj 2010 o 10:41 +0200, Julius Minka napísal(a):
> I did that as first thing. No luck.
> I changed it to IP as I it works from command line.
>
> Julius
>
> V Streda, 26. máj 2010 o 19:41 -0500, Thadeus Burgess napísal(a):
> > Try
> >
> &
erent?
Julius
V Štvrtok, 27. máj 2010 o 12:20 +0200, Julius Minka napísal(a):
> I found the reason by removing exception catching when connecting to
> Postgres in gluon/sql.py.
> It told me that this line
> self._execute("SET standard_conforming_strings=on;")
> is a pr
+0200, Julius Minka napísal(a):
> I was too fast.
> It works when accessed on port.
>
> It doesn't when accessed through mod_wsgi:
>
> File "gluon/sql.py", line 3835, in DAL
> migrate=migrate, fake_migrate=fake_migrate)
> File "gluon/sql.py", li
Can this be used to modify a value of an element?
I remember I have tried in the past and I failed. The goal was to
display just first 10 characters of longer field in the WebGrid by
Mr.Freeze.
Julius
V Pondelok, 7. jún 2010 o 23:32 -0700, annet napísal(a):
> Massimo,
>
> Indeed it was easier to
orok, 8. jún 2010 o 06:20 -0700, mdipierro napísal(a):
> yes
>
> form.element('div#id.class')['_value']=45
>
> On Jun 8, 7:46 am, Julius Minka wrote:
> > Can this be used to modify a value of an element?
> > I remember I have tried in the past and
ses the represent function to display your field. You can do:
> db.table.field.represent = lambda v: v[:10] + '...'
>
> On Jun 8, 10:11 am, Julius Minka wrote:
> > The default Webgrid doesn't have a separate div for a field.
> > Is CSS identification only way to a
.field.represent = None
>
> Also you can do:
> def shorten_field(r,fieldtype, row):
> if fieldtype=='datarow':
> find your field and shorten it
> grid.row_created = shorten_field
>
>
> On Jun 8, 10:40 am, Julius Minka wrote:
> > Thanks for
V Utorok, 15. jún 2010 o 15:51 -0700, Yarko Tymciurak napísal(a):
> I think the simpler solution (simpler than routes.py) is - when
> deploying, link your app to applicaitons/init --- it is simple, it
> will behave as you want, and the only "operating system" that I can
> think of that doesn't have
I need a contact form (name, address,...) on every page of a web site.
Thinking about putting the form into layout.html and use some Ajax to
send entered values to be processed by a controller. I would like to
avoid page reload on form submission.
I found 2 possible solutions in the archive:
1.
ht
gt; {{=LOAD('default','contact')}}
>
>
>
>
> On Jun 18, 11:26 am, Julius Minka wrote:
> > I need a contact form (name, address,...) on every page of a web site.
> > Thinking about putting the form into layout.html and use some Ajax to
> > send en
I just saw screenshots and will test application later.
For OCR, these links could be useful:
http://www.cuneiform.ru/eng/index.html
http://code.google.com/p/ocropus/
http://www.webupd8.org/2010/02/how-to-extract-all-text-from-pdfs.html
V Sobota, 19. jún 2010 o 01:58 -0700, szimszon napísal(a):
(form=form)
>
> and in layout.html
>
> {{=LOAD('default','contact')}}
>
>
>
>
> On Jun 18, 11:26 am, Julius Minka wrote:
> > I need a contact form (name, address,...) on every page of a web site.
> > Thinking about putting the form int
There is a new version here:
http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project
I wonder if it doesn't need to be reflected in the current version of
the Book or in web2py itself.
Julius
I am loading the form in the template this way:
{{=LOAD('default','form')}}
Can I somewhow customize it this way?
{{=form.custom.begin}}
Image name: {{=form.custom.widget.name}}
Click here to upload: {{=form.custom.submit}}
{{=form.custom.end}}
What I actually need is to place labels above fields
Was anybody able to resolve this issue?
Julius
V Pondelok, 21. december 2009 o 20:35 -0300, Tito Garrido napísal(a):
> Looks like it just returns 1 result for:
> http://search.twitter.com/search.atom?q=from%3Aweb2py
>
> strange... but thanks for your answers!
>
> On Mon, Dec 21, 2009 at 12:33 AM
Thanks, it was enough in this case.
V Piatok, 9. júl 2010 o 05:47 -0700, mdipierro napísal(a):
> if you just need to place labels above fields you can just do
>
> SQLFORM(...formstyle='table2cols')
>
> On 9 Lug, 06:25, Julius Minka wrote:
> > I am loading th
Is it possible to display just lines with non-empty values in Crud Read
or readonly SQLFORM?
If not, should I do it through custom form?
Julius
Having something like this
{{=LOAD('controller','action.load',vars={},args=[],ajax=True)}}
in the layout.html
and something like this
form=SQLFORM.factory(
Field(...),
Field(...),
Field(...),
formstyle='table2cols',submit_button='Vyhľadať')
if form.accepts(request.v
irection?
Julius
V Štvrtok, 5. august 2010 o 15:23 -0700, mdipierro napísal(a):
> This is the intended behavior.
> for now you can do
> instead of
>
>redirect(url)
>
> use
>
>raise HTTP(303,**{'web2py-component-
> command':'document.location=&quo
url="/"+request.application
+"/default/nehnutelnosti.html?okres="+request.vars.okres
+"&typ="+request.vars.typ+"&druh="+request.vars.druh
raise HTTP(303,**{'web2py-component-command':'document.location="%s"'%
gt; I am using trunk version
> Version 1.82.1 (2010-08-04 18:57:33)
> and the code you sent me works perfectly.
>
> Either I do not understand the problem or this is a browser issue.
> What os and browser do you use?
>
> Massimo
>
> On Aug 7, 2:16 pm, Julius Minka wrote:
&
I am not able to fix this, but I am willing to test it again if needed.
Julius
V Pondelok, 9. august 2010 o 01:28 -0700, mdipierro napísal(a):
> If you ding out what the problem is perhaps we can improve the code
> and make it more cross-browser compatible.
>
> On Aug 9, 3:27 am,
here is JS error?
>
> On Aug 9, 3:48 am, Julius Minka wrote:
> > I am not able to fix this, but I am willing to test it again if needed.
> > Julius
> >
> > V Pondelok, 9. august 2010 o 01:28 -0700, mdipierro napísal(a):
> >
> > > If you ding out what the
V Pondelok, 9. august 2010 o 05:05 -0700, Kenneth napísal(a):
> Hello,
>
> I´m in the process of starting a newer server for my web2py
> applications and would like to hear your comments about what to use.
>
> Anything about hardware that I should remeber?
>
> As linux version I´m planing on usi
0
URI: http://93.184.68.161:/real/static/jquery.js
Did you see the form working in an IE? Which version?
Julius
V Pondelok, 9. august 2010 o 13:20 +0200, Julius Minka napísal(a):
> I didn't get any JS error.
>
> Details:
> Epiphany has Webinspector which allowed me to
V Pondelok, 9. august 2010 o 15:05 -0700, mdipierro napísal(a):
> This worked for me:
>
> http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh
>
I believe it was not clean install and all dependencies were met before
running this script. Or?
Julius
> On Aug 9, 3:06 p
Form not displaying in IE was caused by other Jquery stuff on the page.
Sorry for bothering you.
However, redirection doesn't work in IE6.
Julius
V Utorok, 10. august 2010 o 10:07 +0200, Julius Minka napísal(a):
> Massimo,
>
> I got a message from a friend telling me the form isn&
I have to implement following 4-level menu in my view:
Level1a
Level1b
Level1c*
Level2a*
Level3a*
Level4a
Level4b
Level4c
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je voliteľný výraz ako "field1=\'newvalue\'". Nemôžete upravovať alebo zmazať výsledky JOINu',
'%Y-%m-%d': '%d.%m.%Y',
'%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M
def horizontal_radios(f,v):
table = SQLFORM.widgets.radio.widget(f,v)
rows=table.elements('tr')
table.components = []
table.append([row.elements('td') for row in rows])
return table
def form():
form=SQLFORM.factory(
Field('clientagent', requires=I
Could you please be more specific? I am sorry to say I don' understand
your response.
Julius
V Sobota, 18. september 2010 o 07:34 -0700, mdipierro napísal(a):
> yes, the third columns is form Field(...comment='')
>
> On Sep 18, 5:47 am, Julius Minka wrote:
>
Trying to deploy web2py app in the Virtual Server with Debian installed
using
http://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/setupweb2pyubuntu.sh-20091113071543-nuyvk7g9cfu086wk-1/setup-web2py-ubuntu.sh
results in this error:
Error traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
It works locally, the error occurs only on the server.
V Sobota, 18. september 2010 o 14:46 -0700, mdipierro napísal(a):
> I do not know but ...
> Not all modules can go in the modules folder. Some of them exepect to
> be in sys.path
>
> On Sep 18, 3:18 pm, Julius Minka wrote
yes, it is.
V Nedeľa, 19. september 2010 o 00:57 +0200, Michele Comitini napísal(a):
> is there a __init__.py in modules?
>
> 2010/9/19 Jonathan Lundell :
> > On Sep 18, 2010, at 2:46 PM, mdipierro wrote:
> >>
> >> Not all modules can go in the modules folder. Some of them exepect to
> >> be in
After I ran it once without Apache, it now works with Apache too.
Any possible reason for that?
Julius
V Sobota, 18. september 2010 o 23:55 +0200, Julius Minka napísal(a):
> It works locally, the error occurs only on the server.
>
> V Sobota, 18. september 2010 o 14:46 -0700, mdipierr
There is security issue reported here:
http://secunia.com/advisories/37764
Is any fix available?
Are there any plans to further develop pyforum?
I am asking because I am considering pyforum as a base for bigger
communication app.
Julius
so I can potentially fix.
> >
> > All of this leads me to believe that such vulnerability indeed does
> > not exist and that these individual's intentions were no other than
> > trying to dishonestly obtain monetary gains.
> >
> > pyforum is open source software
Hi all,
I have a javascript function in html file which is usually called from
onclick event in the same file. It works fine.
However I would like to call this javascript function from a controller.
More precise description:
after clicking an element in the page, the flow goes to controller.
T
JohnMc,
decision is made based on data in db related to current screen.
Julius
JohnMc wrote / napísal(a):
> Julius,
>
> Unless you are performing a server side lookup why not decide the
> dialog to present using a clientside if or switch in javascript?
>
> On Jul 10, 8:5
the clients runs
> it. The trick here is ajax(...,':eval') which is defined by web2py.
>
> On Jul 10, 8:56 am, Julius Minka wrote:
>> Hi all,
>>
>> I have a javascript function in html file which is usually called from
>> onclick event in the same file. I
How can I format itemize output to a table (regular structure of
columns)? I am showing more columns on the line.
Something similar to default view for records...
Thanks
Julius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
illf wrote:
> are you using t2? The t2 manual describes doing this by
>
> db.mytable.represent=lambda row: '%s %s' % (row.myfield,row.id)
>
> which I have used and it works fine.
>
> On Dec 6, 10:08 am, Julius Minka <[EMAIL PROTECTED]> wrote:
> > How can
am, billf <[EMAIL PROTECTED]> wrote:
> > If you look at the default represent() in t2.py you can see how to do
> > whatever you want. Maybe the default is what you want(?)
> >
> > On Dec 6, 2:09 pm, Julius Minka <[EMAIL PROTECTED]> wrote:
> >
> > &
firefox to try to
> find hints.
>
> On Sat, Dec 6, 2008 at 10:27 AM, Julius Minka <[EMAIL PROTECTED]> wrote:
>
> Thanks, this is the solution I need,
> except
> the two CSS lines are not applied to those elements of row.
>
e 1
> line 1
>
> line 1
> line 1
>
>
>
>
> -wj
>
> On Sat, Dec 6, 2008 at 12:47 PM, Julius Minka <[EMAIL PROTECTED]> wrote:
> >
> > thanks for advice, I corrected it down to
> >
> > SPAN.col1 { width: 200px; background-color: #aaa; }
>
I would like to do that, but the code below is generated by t2's
itemize...
On So, 2008-12-06 at 13:55 -0700, Wes James wrote:
> put each col in its own td
>
> On Sat, Dec 6, 2008 at 1:51 PM, Julius Minka <[EMAIL PROTECTED]> wrote:
> >
> > You are right, but DIV
So is this completely wrong direction in how to get a simple paginated
grid with a clickable lines (or one cell in a line to redirect to
display single record)?
On So, 2008-12-06 at 14:28 -0800, DenesL wrote:
> Inline elements like SPAN can't have a width, only block elements can.
> >
--~--~--
rtnr,_href=t2.action('display_ware',[row.id])),_class="col1"),
SPAN(row.name,_class="col2"))
I have no clue how to do it to get both functionalities.
Any idea?
Julius
On So, 2008-12-06 at 23:37 +0100, Julius Minka wrote:
> So is this completely wrong direction in how to
erybody for help.
julius
On So, 2008-12-06 at 23:40 +0100, Julius Minka wrote:
> Seems to be close to solution.
>
> This works:
> db.ware.represent=lambda r: [TD(r[name],_class="col1",_width="80px") for
> name in db.ware.fields]
>
> It is able to mak
+1 fr.py
On Ut, 2008-12-16 at 00:11 -0800, mdipierro wrote:
> let's say you default to "en" and a visitor only accepts-language "fr-
> fr". You do not have "fr-fr.py" but you do have "fr.py". Should web2py
> use it or respond in english as it does now?
>
> Massimo
> >
--~--~-~--~~
here, in my bookmarks, you can find some inspiration (design&code):
http://delicious.com/jumi/workflow
On Ut, 2009-01-06 at 22:43 -0800, Fran wrote:
> On Jan 7, 3:04 am, mdipierro wrote:
> > If you could come up with a reasonable list of specs and references I
> > can try add that to T3.
>
using T2
http://127.0.0.1:8000/f7/default/display_ware/3
in controller:
def display_ware():
ware=t2.display(db.ware)
return dict(ware=ware)
in HTML:
{{extend 'layout.html'}}
Tovar
{{=ware}}
{{=A(' Modify',_href=URL(r=request,f='modify_ware/%s'%request.args))}}
How can I ma
that was it, thanks for fast answer
On St, 2009-01-07 at 08:34 -0800, mdipierro wrote:
> It is already parsed for you by t2 and stored in t2.id=int(request.args
> [-1])
>
> {{=A(' Modify',_href=URL(r=request,f='modify_ware/%s'%t2.id))}}
>
>
> Mass
I have got following in controllers/default.py:
response.menu=[
['Tovar',False,t2.action('browse')],
['Odberatelia',False,t2.action('temp')]]
def index():
return dict()
when I go to http://127.0.0.1:8000/my_app/
it displays page views/default/index.html
and in this page, it inserts "defaul
On St, 2009-01-07 at 18:54 -0800, mdipierro wrote:
> You need to use routes_in and routes_out there are examples in
> routes.examples.py
>
> On Jan 7, 2:54 pm, Julius Minka wrote:
> > I have got following in controllers/default.py:
> >
> > response.menu=[
> > ['Tovar
db.define_table('invoice_item',
SQLField('invoice_nr',required=True),
SQLField('ware',db.ware,required=True),
SQLField('discount','double',required=True),
SQLField('count','double',required=True))
db.invoice_item.ware.requires=IS_IN_D
db.invoice.represent=lambda row: DIV(
SPAN(TD(A(row.invoice_nr,_href=t2.action('display',[row.id]))),_class="col1",_width="80px"),
SPAN(TD(row.date.strftime("%d.%m.%Y")),_class="col1",_width="80px"),
SPAN(TD(row.customer_id),_class="col1",_width="80px"))
on last line I would like to display not
How to disable showing id? It doesn't seem to work the way it worked
with SQLFORM.
Julius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@goo
Thanks, I did that already, but I wanted to simplify things.
Julius
On So, 2009-01-10 at 10:21 -0700, Wes James wrote:
> In db.py put something like this:
>
> db.database.displays=['field3','field4']
>
> -wj
>
> On Sat, Jan 10, 2009 at 9:30 AM, Ju
thank you, it works great
On So, 2009-01-10 at 08:54 -0800, mdipierro wrote:
> replace :
>
>row.customer_id
> with:
>
>db(db.customer.id==row.customer_id).select()[0].name
>
> On Jan 10, 10:23 am, Julius Minka wrote:
> > db.invoice.represent=
Thanks, I will do it as you wrote.
julius
On So, 2009-01-10 at 07:11 -0800, mdipierro wrote:
> You should use
>
> URL(r=request,c='invoices',f='browse')
>
> instead of t2.action(...)
>
> On Jan 10, 4:24 am, Julius Minka wrote:
> > I solved it
(value,self.error_message)
>
> db.invoice_item.count.requires=IS_IN_DB
> (db,db.ware.id==request.vars.id,'count')
>
> On Jan 10, 5:28 am, Julius Minka wrote:
> > db.define_table('invoice_item',
> > SQLField('invoice_nr
The web2py running on Linux is accessible only from the same computer at
address 127.0.0.1. I mean, application pages themselves, not admin
interface.
ifconfig (shortened)
eth0 Link encap:Ethernet HWaddr 00:1D:60:C9:C9:1D
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.
it needs 0.0.0.0 as ip address to listen at.
This can be accomplished when starting web2py with the parameter "-i
0.0.0.0"
thanks to all for hints
Julius
On Št, 2009-01-22 at 14:53 +0100, Julius Minka wrote:
> The web2py running on Linux is accessible only from the same computer
Hi Ulrich,
did you succeed to align header with items?
My header is moved too much to the left.
Julius
On Po, 2008-12-29 at 04:51 -0800, Atanasius wrote:
> Hi folks!
>
> I use the mechanism (posted from Julius Minka on December, 7th) to
> display a table via itemize:
>
> d
submit_button is working in SQLFORM, but not int t2.
Is this intentional? How to change the label on submit button using t2?
Julius
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To p
sorry, I found it in the archive:
form.element(_type='submit').update(_value='click me!')
On So, 2009-01-24 at 20:59 +0100, Julius Minka wrote:
> submit_button is working in SQLFORM, but not int t2.
> Is this intentional? How to change the label on submit
can you explain following in more depth?
"The view contains a menu, when the visitor clicks one of the menu items
one of the other functions should be exposed. The problem is passing on
the id."
my guess is you would like to have following:
in controlller function:
int(request.args[-1])
s my issue - how to change things inside it?
or is there any other way to customize it?
julius minka
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group,
9-01-28,2,2009-01-28,2009-01-30,2009-02-02,100.0,0.0
I believe this was not the reason for failure as that column contains
just integer values and none of the tables were imported.
What could be the reason for import failure?
If needed I can provide you with the complete exported file and model.
J
In a form, I have a dropdown and a textfield.
Based on a selection made in the dropdown box (company name) I need to
fill the textfield (latest date for payment) with date counted as
today+days. Days field is in the same table and row as the company name.
How to achieve that? I guess some Javasc
On Pi, 2009-02-20 at 04:28 -0800, Fran wrote:
> On Feb 20, 12:02 pm, Julius Minka wrote:
> > How to achieve that? I guess some Javascript or JQuery is needed.
>
> jQuery is great at this, yes.
> Something like:
> $(function() {
> $("select#c
I tried to run KPAX. When setting permissions after creating a new item
(chat, news,...) I am getting an error described here:
http://groups.google.com/group/web2py/msg/2283b527c10f2804
Anybody else having this issue?
Julius
77 matches
Mail list logo