oembed and thumbnail don't need sequences

This commit is contained in:
Evan Prodromou 2009-06-23 09:52:31 -07:00
parent 4d4d951531
commit e744eba7eb
2 changed files with 24 additions and 16 deletions

View File

@ -51,6 +51,10 @@ class File_oembed extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
function sequenceKey()
{
return array(false, false, false);
}
function _getOembed($url, $maxwidth = 500, $maxheight = 400, $format = 'json') {
$cmd = common_config('oohembed', 'endpoint') . '?url=' . urlencode($url);
@ -84,4 +88,3 @@ class File_oembed extends Memcached_DataObject
}
}

View File

@ -43,6 +43,11 @@ class File_thumbnail extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
function sequenceKey()
{
return array(false, false, false);
}
function saveNew($data, $file_id) {
$tn = new File_thumbnail;
$tn->file_id = $file_id;