This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dlg = UI.DialogBox( | |
control1, control2, control3, | |
title="Dialog Title", id="myDlg" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2010-06-22T10:37:49.8637289</Date> | |
<Author>PUNKOFF-DESKTOP\Евгений</Author> | |
</RegistrationInfo> | |
<Triggers> | |
<LogonTrigger> | |
<Enabled>true</Enabled> | |
<UserId>PUNKOFF-DESKTOP\Евгений</UserId> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UI.HContainer( | |
UI.BreadCrumbLeft(), | |
UI.BreadCrumb(text='1', id='/1'), | |
UI.BreadCrumb(text='23', id='/1/23), | |
UI.BreadCrumb(text='456', id='/1/23/456'), | |
UI.BreadCrumbRight() | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<py:match path="fmpanel"> | |
<label text="${select('@free')}"/> | |
<spacer height="10"/> | |
<scrollcontainer height="500" width="450"> | |
<table cellpadding="0" cellspacing="0" class="ui-el-table" style="border:none" width="450px"> | |
<datatablerow header="True"> | |
<datatablecell /> | |
<datatablecell width="100px"><label text="Name"/></datatablecell> | |
<datatablecell width="60px"><label text="Size"/></datatablecell> | |
<datatablecell width="100px"><label text="Access"/></datatablecell> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = UI.HContainer() | |
for y in range(0,2): | |
bm = UI.HContainer(UI.MiniButton(text='/'),UI.MiniButton(text='Home'),UI.MiniButton(text='FTP')) | |
fm = UI.FMPanel(free='123 of 456 Pb free') | |
bc = UI.HContainer(UI.BreadCrumbLeft(), UI.BreadCrumb(text='home'), UI.BreadCrumb(text='user'), UI.BreadCrumbRight()) | |
for i in range(0,20): | |
fm.appendChild(UI.FMPanelRow(name='longfilename%i.data'%i, size='123 Tb', access='drwxrwxrwx', owner='root:root')) | |
mainTable = UI.VContainer(bm,UI.Spacer(height=10),bc,UI.Spacer(height=10),fm) | |
x.hnode(mainTable) | |
x.hnode(UI.Spacer(width=20)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%def name="pluginpanel()"> | |
<div class="ui-el-pluginpanel"> | |
<div class="ui-el-pluginpanel-head"> | |
<% | |
hcontainer([ | |
image(file=icon), | |
vcontainer([ | |
label(text=title, size=5), | |
select(status, '') | |
]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ui-el-pluginpanel-head"> | |
<img class="ui-el-image" src="/dl/dashboard/server.png" /> | |
<span class="ui-el-label-5" style="False"> | |
srv.local | |
</span> | |
<span class="ui-el-label-1" style="False"> | |
Ubuntu 10.04 LTS | |
</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%def name="hello()"> | |
hello world | |
</%def> | |
<%def name="upper(x)"> | |
${str(x).upper()} | |
</%def> | |
${upper(hello())} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python: | |
def attr(_, v, d): | |
return d if v == '' else v | |
def render(templ): | |
global xslt | |
ex = {('local-ns', 'attr') : attr} | |
ns = {'ext' : 'local-ns'} | |
return etree.tostring(xslt(templ, namespaces=ns, extensions=ex)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program received signal SIGSEGV, Segmentation fault. | |
__pyx_pf_4lxml_5etree_8_Element_3tag___get__ (o=<TabControl at remote 0x871addc>, x=0x0) at src/lxml/lxml.etree.c:32922 | |
32922 src/lxml/lxml.etree.c: Нет такого файла или каталога. | |
in src/lxml/lxml.etree.c | |
(gdb) bt | |
#0 __pyx_pf_4lxml_5etree_8_Element_3tag___get__ (o=<TabControl at remote 0x871addc>, x=0x0) at src/lxml/lxml.etree.c:32922 | |
#1 __pyx_getprop_4lxml_5etree_8_Element_tag (o=<TabControl at remote 0x871addc>, x=0x0) at src/lxml/lxml.etree.c:55640 | |
#2 0x080918c7 in PyObject_GenericGetAttr (obj=<TabControl at remote 0x871addc>, name='tag') at ../Objects/object.c:1385 | |
#3 0xb776a179 in __pyx_pf_4lxml_5etree_8_Element___repr__ (__pyx_v_self=<TabControl at remote 0x871addc>) | |
at src/lxml/lxml.etree.c:34040 |