* start coding component stuff
This commit is contained in:
@@ -91,7 +91,7 @@ Legend:
|
|||||||
/ revise writing, error checking, printing and tests
|
/ revise writing, error checking, printing and tests
|
||||||
/ components and distribution (eray)
|
/ components and distribution (eray)
|
||||||
+ requirements
|
+ requirements
|
||||||
/ xml format
|
+ xml format
|
||||||
- query components: list of components/packages in a component
|
- query components: list of components/packages in a component
|
||||||
- install/remove components
|
- install/remove components
|
||||||
- safety switch: preserve system:base, install system:devel for build, etc.
|
- safety switch: preserve system:base, install system:devel for build, etc.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
||||||
<!-- Project file for project pisi -->
|
<!-- Project file for project pisi -->
|
||||||
<!-- Saved: 2005-11-03, 22:44:51 -->
|
<!-- Saved: 2005-11-04, 03:15:17 -->
|
||||||
<!-- Copyright (C) 2005 PiSi Development Team, pisi@uludag.org.tr -->
|
<!-- Copyright (C) 2005 PiSi Development Team, pisi@uludag.org.tr -->
|
||||||
<Project version="3.8">
|
<Project version="3.8">
|
||||||
<ProgLanguage mixed="0">Python</ProgLanguage>
|
<ProgLanguage mixed="0">Python</ProgLanguage>
|
||||||
@@ -317,10 +317,6 @@
|
|||||||
<Dir>cli</Dir>
|
<Dir>cli</Dir>
|
||||||
<Name>colors.py</Name>
|
<Name>colors.py</Name>
|
||||||
</Source>
|
</Source>
|
||||||
<Source>
|
|
||||||
<Dir>pisi</Dir>
|
|
||||||
<Name>data.py</Name>
|
|
||||||
</Source>
|
|
||||||
<Source>
|
<Source>
|
||||||
<Name>pisi-cli</Name>
|
<Name>pisi-cli</Name>
|
||||||
</Source>
|
</Source>
|
||||||
@@ -375,11 +371,14 @@
|
|||||||
</Source>
|
</Source>
|
||||||
<Source>
|
<Source>
|
||||||
<Dir>tests</Dir>
|
<Dir>tests</Dir>
|
||||||
<Name>specfileoldtests.py</Name>
|
<Name>filestests.py</Name>
|
||||||
</Source>
|
</Source>
|
||||||
<Source>
|
<Source>
|
||||||
<Dir>tests</Dir>
|
<Name>component.py</Name>
|
||||||
<Name>filestests.py</Name>
|
</Source>
|
||||||
|
<Source>
|
||||||
|
<Dir>pisi</Dir>
|
||||||
|
<Name>component.py</Name>
|
||||||
</Source>
|
</Source>
|
||||||
</Sources>
|
</Sources>
|
||||||
<Forms>
|
<Forms>
|
||||||
@@ -422,10 +421,10 @@
|
|||||||
<VcsOtherData>{'standardLayout': 1}</VcsOtherData>
|
<VcsOtherData>{'standardLayout': 1}</VcsOtherData>
|
||||||
</Vcs>
|
</Vcs>
|
||||||
<FiletypeAssociations>
|
<FiletypeAssociations>
|
||||||
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
|
||||||
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
||||||
|
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
||||||
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
||||||
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
||||||
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
||||||
</FiletypeAssociations>
|
</FiletypeAssociations>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -17,10 +17,15 @@ import gettext
|
|||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
_ = __trans.ugettext
|
_ = __trans.ugettext
|
||||||
|
|
||||||
|
import pisi
|
||||||
import pisi.xmlfile
|
import pisi.xmlfile
|
||||||
|
|
||||||
|
class Error(pisi.Error):
|
||||||
|
pass
|
||||||
|
|
||||||
__metaclass__ = xmlfile.autoxml
|
__metaclass__ = xmlfile.autoxml
|
||||||
|
|
||||||
|
|
||||||
class Distribution:
|
class Distribution:
|
||||||
t_Name = [xmlfile.Text, xmlfile.mandatory]
|
t_Name = [xmlfile.Text, xmlfile.mandatory]
|
||||||
t_Description = [xmlfile.LocalText, xmlfile.mandatory]
|
t_Description = [xmlfile.LocalText, xmlfile.mandatory]
|
||||||
@@ -28,18 +33,27 @@ class Distribution:
|
|||||||
t_Type = [xmlfile.Text, xmlfile.mandatory]
|
t_Type = [xmlfile.Text, xmlfile.mandatory]
|
||||||
t_Dependencies = [ [xmlfile.Text], xmlfile.optional, "Distribution"]
|
t_Dependencies = [ [xmlfile.Text], xmlfile.optional, "Distribution"]
|
||||||
|
|
||||||
class Component:
|
|
||||||
|
class Component(xmlfile.XmlFile):
|
||||||
"part-of representation for component declarations"
|
"part-of representation for component declarations"
|
||||||
|
|
||||||
|
__metaclass__ = xmlfile.autoxml
|
||||||
|
|
||||||
|
tag = "PISI"
|
||||||
|
|
||||||
t_Name = [xmlfile.Text, xmlfile.mandatory] # fully qualified name
|
t_Name = [xmlfile.Text, xmlfile.mandatory] # fully qualified name
|
||||||
t_PartOf = [xmlfile.Text, xmlfile.mandatory]
|
t_PartOf = [xmlfile.Text, xmlfile.mandatory]
|
||||||
t_LocalName = [xmlfile.LocalText, xmlfile.mandatory]
|
t_LocalName = [xmlfile.LocalText, xmlfile.mandatory]
|
||||||
t_Description = [xmlfile.LocalText, xmlfile.mandatory]
|
t_Description = [xmlfile.LocalText, xmlfile.mandatory]
|
||||||
#t_Icon = [xmlfile.Binary, xmlfile.mandatory]
|
#t_Icon = [xmlfile.Binary, xmlfile.mandatory]
|
||||||
t_Dependencies = [ [xmlfile.String], xmlfile.optional, "Component"]
|
t_Dependencies = [ [xmlfile.String], xmlfile.optional, "Dependencies/Component"]
|
||||||
|
|
||||||
class ComponentTree:
|
|
||||||
|
class ComponentTree(xmlfile.XmlFile):
|
||||||
"index representation for the component structure"
|
"index representation for the component structure"
|
||||||
|
|
||||||
|
__metaclass__ = xmlfile.autoxml
|
||||||
|
|
||||||
tag = "Component"
|
tag = "Component"
|
||||||
|
|
||||||
t_Name = [xmlfile.Text, xmlfile.mandatory] # fully qualified name
|
t_Name = [xmlfile.Text, xmlfile.mandatory] # fully qualified name
|
||||||
Reference in New Issue
Block a user