Exemple #1
0
class IMAPFolderRecord(eim.Record):
    URI = "http://osafoundation.org/eim/sharing/imapfolder/0"

    uuid = eim.key(ItemRecord.uuid)
    name = eim.field(text256)
    type = eim.field(eim.TextType(size=50))
    lastUID = eim.field(eim.IntType)
    delete = eim.field(eim.IntType)
    downloaded = eim.field(eim.IntType)
    downloadMax = eim.field(eim.IntType)
Exemple #2
0
class POPAccountRecord(eim.Record):
    URI = "http://osafoundation.org/eim/sharing/popaccount/0"

    uuid = eim.key(ItemRecord.uuid)
    password = eim.field(UUID)
    replyToAddress = eim.field(text256)
    type = eim.field(eim.TextType(size=50))
    delete = eim.field(eim.IntType)
    downloaded = eim.field(eim.IntType)
    downloadMax = eim.field(eim.IntType)
    seenUIDS = eim.field(eim.ClobType)
    port = eim.field(eim.IntType)

    # 1 = isDefault
    isDefault = eim.field(eim.IntType)
Exemple #3
0
class NoteRecord(eim.Record):
    URI = "http://osafoundation.org/eim/note/0"

    uuid = eim.key(ItemRecord.uuid)

    # ContentItem.body
    body = eim.field(eim.ClobType, "Body")

    # Note.icalUid
    icalUid = eim.field(text256, "Icalendar UID", filters=[icalUidFilter])

    # Note.icalendarProperties - legacy, never used
    icalProperties = eim.field(text1024, filters=[nonStandardICalendarFilter])

    # Note.icalendarParameters - legacy, never used
    icalParameters = eim.field(text1024, filters=[nonStandardICalendarFilter])

    # Note.icalendarExtra
    icalExtra = eim.field(eim.TextType(size=4096), default=u"",
                          filters=[nonStandardICalendarFilter])
Exemple #4
0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

# Legacy EIM model for Chandler 1.0 data

import chandler.sharing.eim as eim
import logging
from uuid import UUID
logger = logging.getLogger(__name__)


text20 = eim.TextType(size=20)
text256 = eim.TextType(size=256)
text512 = eim.TextType(size=512)
text1024 = eim.TextType(size=1024)
text32K = eim.TextType(size=32768)
bytes32 = eim.BytesType(size=32)
bytes1024 = eim.BytesType(size=1024)

aliasableUUID = eim.subtype(eim.UUIDType, size=256)




# pim items -------------------------------------------------------------------

triageFilter = eim.Filter('cid:[email protected]', u"Triage Status")
Exemple #5
0
import chandler.sharing.eim as eim

keywordID = eim.TextType("cid:[email protected]", size=512)


class KeywordRecord(eim.Record):
    URI = "http://osafoundation.org/eim/keyword/0"

    # a keywordID should look like @keyword:key_value
    keywordID = eim.key(keywordID)

    # mimicking legacy_model.CollectionRecord for convenience
    colorRed = eim.key(eim.IntType)
    colorGreen = eim.key(eim.IntType)
    colorBlue = eim.key(eim.IntType)
    colorAlpha = eim.key(eim.IntType)
    checked = eim.field(eim.IntType, default=0)