Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
939eb1a7
Commit
939eb1a7
authored
Sep 08, 2010
by
Betoule Marc
Browse files
Implement the directive mecanism
parent
2921fc01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pipelet/repository.py
pipelet/repository.py
+10
-0
No files found.
pipelet/repository.py
View file @
939eb1a7
...
...
@@ -62,6 +62,16 @@ class Repository:
True
"""
return
bool
(
self
.
_ext_re
.
match
(
path
.
splitext
(
f
)[
1
]))
def
get_directive
(
Direct
,
seg
):
c
=
self
.
get_code_string
(
seg
)
d
=
Direct
()
for
l
in
c
.
splitlines
():
try
:
d
.
parse
(
l
)
except
StopIteration
():
pass
return
d
def
get_all_string
(
self
,
seg
):
""" Return the code string that should enter in the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment