Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(9)  |  Derive(0)  |  Import(4)

src/l/i/lifepress-HEAD/lajfstrim/views.py   lifepress(Download)
from django.contrib.auth import authenticate, login
 
from lajfstrim.models import Feed, Site, Item, UserProfile, UserUserRelation
from django.contrib.auth.models import User
 
            uur.friend = owner
            uur.save()
            item = Item()
            item.user = request.user
            item.type = 'friend'

src/l/i/lifepress-HEAD/fetcher/fetcher.py   lifepress(Download)
import feedparser
import time
import urllib2
from lajfstrim.models import Feed, Item, Site
import settings
                    #except:
                    #    pubdate = fetched_feed['entries'][feed_i]['pubDate']
                    i = Item()
                    i.user_id = feed.user.id
                    i.type = 'feed'
                except:
                    picture_html = ''
                i = Item()
                i.user_id = site.user.id
                i.type = 'blip'
                    Item.objects.get(user=site.user, link = 'http://twitter.com/%s/status/%s/' % (site.username, status['id']))
                except:
                    i = Item()
                    i.user_id = site.user.id
                    i.type = 'twitter'
                Item.objects.get(user=site.user, link = 'http://identi.ca/notice/%s' % status['id'])
            except:
                i = Item()
                i.user_id = site.user.id
                i.type = 'identica'

src/l/i/lifepress-HEAD/fetcher.py   lifepress(Download)
import feedparser
import time
import urllib2
from lajfstrim.models import Feed, Item, Site
import settings
                    #except:
                    #    pubdate = fetched_feed['entries'][feed_i]['pubDate']
                    i = Item()
                    i.user_id = feed.user.id
                    i.type = 'feed'
                except:
                    picture_html = ''
                i = Item()
                i.user_id = site.user.id
                i.type = 'blip'
                    Item.objects.get(user=site.user, link = 'http://twitter.com/%s/status/%s/' % (site.username, status['id']))
                except:
                    i = Item()
                    i.user_id = site.user.id
                    i.type = 'twitter'
                Item.objects.get(user=site.user, link = 'http://identi.ca/notice/%s' % status['id'])
            except:
                i = Item()
                i.user_id = site.user.id
                i.type = 'identica'

src/l/i/lifepress-HEAD/lajfstrim/admin.py   lifepress(Download)
from lajfstrim.models import Feed, Item, Site
from django.contrib import admin
 
admin.site.register(Feed)
admin.site.register(Item)