summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/file
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-15 22:36:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-15 22:36:16 (GMT)
commit2d0909b9cb9c4c2ab7cdc331b41044711bcd8a65 (patch)
tree4c6df1dbfc605e58b51219e470ad9204c251170a /Mac/Modules/file
parenta5caa6fcd9dea7091aa4749f18ee891b373797a0 (diff)
downloadcpython-2d0909b9cb9c4c2ab7cdc331b41044711bcd8a65.zip
cpython-2d0909b9cb9c4c2ab7cdc331b41044711bcd8a65.tar.gz
cpython-2d0909b9cb9c4c2ab7cdc331b41044711bcd8a65.tar.bz2
Implemented FSCatalogInfo structure support, and used this to implement
FSSpec.SetDates() and GetDates(). Closes #662836.
Diffstat (limited to 'Mac/Modules/file')
-rw-r--r--Mac/Modules/file/_Filemodule.c7
-rw-r--r--Mac/Modules/file/filesupport.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c
index baa379e..0e28889 100644
--- a/Mac/Modules/file/_Filemodule.c
+++ b/Mac/Modules/file/_Filemodule.c
@@ -370,7 +370,6 @@ static int FSCatalogInfo_tp_init(PyObject *self, PyObject *args, PyObject *kwds)
"atributeModDate",
"accessDate",
"backupDate",
- "permissions",
"valence",
"dataLogicalSize",
"dataPhysicalSize",
@@ -380,7 +379,7 @@ static int FSCatalogInfo_tp_init(PyObject *self, PyObject *args, PyObject *kwds)
"userPrivileges"
, 0};
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "|HhllO&O&O&O&O&(llll)llllllb", kw, &((FSCatalogInfoObject *)self)->ob_itself.nodeFlags,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "|HhllO&O&O&O&O&llllllb", kw, &((FSCatalogInfoObject *)self)->ob_itself.nodeFlags,
&((FSCatalogInfoObject *)self)->ob_itself.volume,
&((FSCatalogInfoObject *)self)->ob_itself.parentDirID,
&((FSCatalogInfoObject *)self)->ob_itself.nodeID,
@@ -389,10 +388,6 @@ static int FSCatalogInfo_tp_init(PyObject *self, PyObject *args, PyObject *kwds)
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.attributeModDate,
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.accessDate,
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.backupDate,
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[0],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[1],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[2],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[3],
&((FSCatalogInfoObject *)self)->ob_itself.valence,
&((FSCatalogInfoObject *)self)->ob_itself.dataLogicalSize,
&((FSCatalogInfoObject *)self)->ob_itself.dataPhysicalSize,
diff --git a/Mac/Modules/file/filesupport.py b/Mac/Modules/file/filesupport.py
index b3269e1..4f27963 100644
--- a/Mac/Modules/file/filesupport.py
+++ b/Mac/Modules/file/filesupport.py
@@ -413,7 +413,7 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
),
]
# The same info, but in a different form
- INITFORMAT = "HhllO&O&O&O&O&(llll)llllllb"
+ INITFORMAT = "HhllO&O&O&O&O&llllllb"
INITARGS = """&((FSCatalogInfoObject *)self)->ob_itself.nodeFlags,
&((FSCatalogInfoObject *)self)->ob_itself.volume,
&((FSCatalogInfoObject *)self)->ob_itself.parentDirID,
@@ -423,10 +423,6 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.attributeModDate,
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.accessDate,
UTCDateTime_Convert, &((FSCatalogInfoObject *)self)->ob_itself.backupDate,
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[0],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[1],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[2],
- &((FSCatalogInfoObject *)self)->ob_itself.permissions[3],
&((FSCatalogInfoObject *)self)->ob_itself.valence,
&((FSCatalogInfoObject *)self)->ob_itself.dataLogicalSize,
&((FSCatalogInfoObject *)self)->ob_itself.dataPhysicalSize,
@@ -444,7 +440,6 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
"atributeModDate",
"accessDate",
"backupDate",
- "permissions",
"valence",
"dataLogicalSize",
"dataPhysicalSize",