PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/gdata/notebook/data.py

http://radioappz.googlecode.com/
Python | 55 lines | 27 code | 11 blank | 17 comment | 0 complexity | 86a71c5a6afd5514c08a367b30aa5cc3 MD5 | raw file
 1#!/usr/bin/python
 2#
 3# Copyright (C) 2009 Google Inc.
 4#
 5# Licensed under the Apache License, Version 2.0 (the "License");
 6# you may not use this file except in compliance with the License.
 7# You may obtain a copy of the License at
 8#
 9#      http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17"""Contains the data classes of the Google Notebook Data API"""
18
19
20__author__ = 'j.s@google.com (Jeff Scudder)'
21
22
23import atom.core
24import atom.data
25import gdata.data
26import gdata.opensearch.data
27
28
29NB_TEMPLATE = '{http://schemas.google.com/notes/2008/}%s'
30
31
32class ComesAfter(atom.core.XmlElement):
33  """Preceding element."""
34  _qname = NB_TEMPLATE % 'comesAfter'
35  id = 'id'
36
37
38class NoteEntry(gdata.data.GDEntry):
39  """Describes a note entry in the feed of a user's notebook."""
40
41
42class NotebookFeed(gdata.data.GDFeed):
43  """Describes a notebook feed."""
44  entry = [NoteEntry]
45
46
47class NotebookListEntry(gdata.data.GDEntry):
48  """Describes a note list entry in the feed of a user's list of public notebooks."""
49
50
51class NotebookListFeed(gdata.data.GDFeed):
52  """Describes a notebook list feed."""
53  entry = [NotebookListEntry]
54
55