Notes on the latest updates can be read here:
http://dasacc22.wordpress.com/2010/12/22/daml-0-1-4-release/
The source is on github: https://github.com/dasacc22/daml
An sdist is available on pypi: http://pypi.python.org/pypi/DAML/0.1.4
daml is for outlining html with dynamic content. Features
On May 10, 2:25 am, Stefan Behnel wrote:
> Stefan Behnel, 10.05.2010 08:54:
>
>
>
>
>
> > dasacc22, 08.05.2010 19:19:
> >> This is a simple question. I'm looking for the fastest way to
> >> calculate the leading whitespace (as a string, ie '
On May 9, 8:28 am, John Machin wrote:
> dasacc22 gmail.com> writes:
>
>
>
> > U presume entirely to much. I have a preprocessor that normalizes
> > documents while performing other more complex operations. Theres
> > nothing buggy about what im doing
>
On May 8, 2:46 pm, Steven D'Aprano wrote:
> On Sat, 08 May 2010 12:15:22 -0700, Wolfram Hinderer wrote:
> > On 8 Mai, 20:46, Steven D'Aprano
> > wrote:
>
> >> def get_leading_whitespace(s):
> >> t = s.lstrip()
> >> return s[:len(s)-len(t)]
>
> >> >>> c = get_leading_whitespace(a)
> >> >>>
On May 8, 5:18 pm, Patrick Maupin wrote:
> On May 8, 1:16 pm, dasacc22 wrote:
>
>
>
>
>
> > On May 8, 12:59 pm, Patrick Maupin wrote:
>
> > > On May 8, 12:19 pm, dasacc22 wrote:
>
> > > > Hi
>
> > > > This is a simple question
U presume entirely to much. I have a preprocessor that normalizes
documents while performing other more complex operations. Theres
nothing buggy about what im doing
On May 8, 1:46 pm, Steven D'Aprano wrote:
> On Sat, 08 May 2010 10:19:16 -0700, dasacc22 wrote:
> > Hi
>
>
On May 8, 12:59 pm, Patrick Maupin wrote:
> On May 8, 12:19 pm, dasacc22 wrote:
>
>
>
>
>
> > Hi
>
> > This is a simple question. I'm looking for the fastest way to
> > calculate the leading whitespace (as a string, ie ' ').
>
Hi
This is a simple question. I'm looking for the fastest way to
calculate the leading whitespace (as a string, ie '').
Here are some different methods I have tried so far
--- solution 1
a = 'some content\n'
b = a.strip()
c = ' '*(len(a)-len(b))
--- solution 2
a = 'some content\n'
On Apr 24, 4:04 am, Piet van Oostrum wrote:
> >>>>> dasacc22 (d) wrote:
> >d> Ah thank you for clarifying, I did confuse instance and class
> >d> attributes from creating the list in the class def. I actually just
> >d> spiffed up that class to re
):
self._children = obj
@property
def parent(self):
return self._parent
@parent.setter
def parent(self, obj):
if obj:
print obj
obj.children.append(self)
self._parent = obj
On Apr 20, 1:05 pm, "Diez B. Roggisch" wrote:
Hi,
I seem to be having a problem with a list being share across multiple
instantiations of it and dont quite understand why this is happening.
My class looks like this,
class Widget(object):
_parent = None
_children = []
def __init__(self, parent=None):
self.parent = parent
On Apr 4, 11:31 am, dasacc22 wrote:
> Hi,
>
> Im not sure where else to ask this. But basically Im having trouble
> figuring out how to successfully apply multiple extensions in a single
> transformation. So for example if i have
>
>
>
>
>
>
>
> in
Hi,
Im not sure where else to ask this. But basically Im having trouble
figuring out how to successfully apply multiple extensions in a single
transformation. So for example if i have
in my xsl and my xslt extension looks like
class TagExtension(etree.XSLTExtension):
def execute( ..., ou
13 matches
Mail list logo