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