code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
using Samba.Domain.Models.Menus; using Samba.Domain.Models.Tickets; using Samba.Localization.Properties; using Samba.Persistance.Data; using Samba.Presentation.Common.ModelBase; namespace Samba.Modules.MenuModule { public class ScreenMenuListViewModel : EntityCollectionViewModelBase<ScreenMenuViewModel, S...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/ScreenMenuListViewModel.cs
C#
gpl3
927
using Samba.Domain.Models.Inventory; using Samba.Domain.Models.Menus; using Samba.Domain.Models.Settings; using Samba.Localization.Properties; using Samba.Persistance.Data; using Samba.Presentation.Common; using Samba.Presentation.Common.ModelBase; using Samba.Presentation.Common.Services; using Samba.Services...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/MenuItemListViewModel.cs
C#
gpl3
2,640
using System.Windows.Controls; namespace Samba.Modules.MenuModule { /// <summary> /// Interaction logic for MenuItemPropertyGroupView.xaml /// </summary> public partial class MenuItemPropertyGroupView : UserControl { public MenuItemPropertyGroupView() { Initi...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/MenuItemPropertyGroupView.xaml.cs
C#
gpl3
662
using Samba.Domain.Models.Menus; using Samba.Presentation.Common; namespace Samba.Modules.MenuModule { public class PortionViewModel : ObservableObject { public PortionViewModel(MenuItemPortion model) { Model = model; } public string Name { get { return...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/PortionViewModel.cs
C#
gpl3
768
using System; using System.Collections.Generic; using System.Linq; using Samba.Domain.Models.Menus; using Samba.Presentation.Common; namespace Samba.Modules.MenuModule { public class PriceViewModel : ObservableObject { public MenuItemPortion Model { get; set; } public string ItemNam...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/PriceViewModel.cs
C#
gpl3
2,345
using System.Windows.Controls; namespace Samba.Modules.MenuModule { /// <summary> /// Interaction logic for TicketTagGroupView.xaml /// </summary> public partial class TicketTagGroupView : UserControl { public TicketTagGroupView() { InitializeComponent(); ...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/TicketTagGroupView.xaml.cs
C#
gpl3
641
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Samba.Domain.Models.Menus; using Samba.Infrastructure; using Samba.Infrastructure.Data; using Samba.Localization.Properties; using Samba.Presentation.Common; using Samba.Presentation.Common.ModelBase...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/MenuItemPropertyGroupViewModel.cs
C#
gpl3
3,777
using System.Windows.Controls; namespace Samba.Modules.MenuModule { /// <summary> /// Interaction logic for TaxServiceView.xaml /// </summary> public partial class TaxServiceTemplateView : UserControl { public TaxServiceTemplateView() { InitializeComponent();...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/TaxServiceTemplateView.xaml.cs
C#
gpl3
345
using System.Windows.Controls; namespace Samba.Modules.MenuModule { /// <summary> /// Interaction logic for VatTemplateView.xaml /// </summary> public partial class VatTemplateView : UserControl { public VatTemplateView() { InitializeComponent(); } ...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/VatTemplateView.xaml.cs
C#
gpl3
332
using System; using System.Collections.Generic; using System.ComponentModel; using Samba.Domain.Models.Menus; using Samba.Localization.Properties; using Samba.Persistance.Data; using Samba.Presentation.Common; namespace Samba.Modules.MenuModule { public class MenuItemPropertyViewModel : ObservableObject...
zzgaminginc-pointofssale
Samba.Modules.MenuModule/MenuItemPropertyViewModel.cs
C#
gpl3
2,089
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # from __future__ import with_statement import hashlib import logging import os import sys from optparse import OptionParser from PIL import Image _MAGINK_VE...
zzheng
zhengzhong/scripts/magink.py
Python
asf20
7,770
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # from __future__ import with_statement import logging import os import sys from xml.dom import minidom _IGNORE = ( "&#", "&bull;", "&copy;", "&nbsp;", "&ra...
zzheng
zhengzhong/scripts/xtemplate.py
Python
asf20
2,729
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-05-27. $Id$ */ /*-------------------------------------------------------------------------------------------------- * HTML elements *--------------------------------------------------------------------------------------------...
zzheng
zhengzhong/website/static/css/layout.css
CSS
asf20
3,773
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-03. $Id$ */ .table { margin: 0; padding: 4px 0 4px 0; width: 100%; } .table th, .table td { margin: 0; padding: 4px; text-align: left; line-height: 1.2em; } .table thead th { color: #666666; ...
zzheng
zhengzhong/website/static/css/table.css
CSS
asf20
705
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-05-27. $Id$ */ .ui-widget { font: normal normal 100% Arial,Helvetica,sans-serif; }
zzheng
zhengzhong/website/static/css/jquery_ui.css
CSS
asf20
181
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-05-27. $Id$ */ /*-------------------------------------------------------------------------------------------------- * Common CSS classes *---------------------------------------------------------------------------------------...
zzheng
zhengzhong/website/static/css/common.css
CSS
asf20
1,229
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-05-27. $Id$ */ /*-------------------------------------------------------------------------------------------------- * common styles applied to all kinds of forms *------------------------------------------------------------...
zzheng
zhengzhong/website/static/css/form.css
CSS
asf20
2,343
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-05. # $Id$ # # # Set DJANGO_SETTINGS_MODULE variable. # import os os.environ["DJANGO_SETTINGS_MODULE"] = "zheng.settings" # # Select Django version. # from google.appeng...
zzheng
zhengzhong/website/main.py
Python
asf20
1,203
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2008-12-19. # $Id$ # from django.conf.urls.defaults import * from zheng.apps.homepage.views import * urlpatterns = patterns("", url( r"^$", home, name...
zzheng
zhengzhong/website/zheng/apps/homepage/urls.py
Python
asf20
541
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-05. # $Id$ #
zzheng
zhengzhong/website/zheng/apps/homepage/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2008-12-19. # $Id$ # from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response ...
zzheng
zhengzhong/website/zheng/apps/homepage/views.py
Python
asf20
784
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-21. # $Id$ #
zzheng
zhengzhong/website/zheng/apps/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-05. # $Id$ # import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ("ZHENG Zhong", "@".join(["heavyzheng", "gmail.com"])), ) MANAGERS = ADMINS # Database conf...
zzheng
zhengzhong/website/zheng/settings.py
Python
asf20
3,746
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2008-04-28. # $Id$ # from django.conf.urls.defaults import * urlpatterns = patterns("", (r"^", include("zheng.apps.homepage.urls")), ) # EOF
zzheng
zhengzhong/website/zheng/urls.py
Python
asf20
292
{% extends "base.html" %} {% comment %} <!-- Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-05-19. $Id$ --> {% endcomment %} {#________________________________________________________________________________________________#} {% block html_title %} Error {% endblock %} ...
zzheng
zhengzhong/website/zheng/templates/error.html
HTML
asf20
711
{% extends "base.html" %} {% comment %} <!-- Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-19. $Id$ --> {% endcomment %} {#________________________________________________________________________________________________#} {% block html_title %} About Me {% endblock %}...
zzheng
zhengzhong/website/zheng/templates/homepage/home.html
HTML
asf20
1,417
{% extends "base.html" %} {% comment %} <!-- Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-19. $Id$ --> {% endcomment %} {#________________________________________________________________________________________________#} {% block html_title %} Java {% endblock %} ...
zzheng
zhengzhong/website/zheng/templates/homepage/about_java.html
HTML
asf20
1,538
{% extends "base.html" %} {% comment %} <!-- Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-19. $Id$ --> {% endcomment %} {#________________________________________________________________________________________________#} {% block html_title %} Page not found {% endbl...
zzheng
zhengzhong/website/zheng/templates/homepage/not_found.html
HTML
asf20
764
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> {% comment %} <!-- Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-02-08. $Id$ --> {% endcomment %} <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="e...
zzheng
zhengzhong/website/zheng/templates/base.html
HTML
asf20
4,685
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # __version__ = "0.1" def get_version(): """ Returns the website version number. """ return __version__ # EOF
zzheng
zhengzhong/website/zheng/__init__.py
Python
asf20
293
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, Http404 from django.template import RequestContext from django.shortcuts import render_to_respons...
zzheng
zhengzhong/website/zheng/common/middlewares.py
Python
asf20
3,617
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-14. # $Id$ # import re __all__ = ("Browser",) _BROWSERS = ( # Opera likes to pretend to be some other browser, so detect it first. (re.compile(r"(?P<id>Opera)[...
zzheng
zhengzhong/website/zheng/common/browsers.py
Python
asf20
1,698
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-09. # $Id$ # import datetime from platform import python_version from django import get_version as django_version from django.conf import settings from django.http import Http...
zzheng
zhengzhong/website/zheng/common/context_processors.py
Python
asf20
1,839
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import urllib from django.http import HttpRequest class Prompt(object): INFO = "info" ERROR = "error" def __init__(self, **kwargs): se...
zzheng
zhengzhong/website/zheng/common/prompt.py
Python
asf20
1,340
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response fr...
zzheng
zhengzhong/website/zheng/common/actions.py
Python
asf20
3,779
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2009-10-29. # $Id$ #
zzheng
zhengzhong/website/zheng/common/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-07. # $Id$ # from __future__ import absolute_import # PEP 328 import logging from django.conf import settings from google.appengine.api import users __all__ = ( "User", "get_cur...
zzheng
zhengzhong/website/zheng/common/users.py
Python
asf20
1,853
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2009-10-29. # $Id$ # __all__ = ("Error", "ProgrammingError", "BadRequestError", "InvalidFormError",) class Error(Exception): pass class ProgrammingError(Error): pass class ...
zzheng
zhengzhong/website/zheng/common/errors.py
Python
asf20
1,135
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import datetime import logging import random __all__ = ("filter_key", "ord_to_key", "generate_key") def _is_valid_key(s): if s.isdigit(): re...
zzheng
zhengzhong/website/zheng/common/dbutils.py
Python
asf20
1,328
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll ha...
zzheng
zhengzhong/website/zheng/manage.py
Python
asf20
557
/** * Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> * * AJAX utility functions. This file requires the jQuery library. * * Created on 2010-02-11. * $Id$ */ var friday = { // Toggles the AJAX mode in an AJAX box identified by ajax_box_id. // @param ajax_box_id toggle: ...
zzheng
friday/website/static/js/friday.js
JavaScript
asf20
3,181
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-03. $Id$ */ /*-------------------------------------------------------------------------------------------------- * HTML elements *--------------------------------------------------------------------------------------------...
zzheng
friday/website/static/css/layout.css
CSS
asf20
7,656
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-03. $Id$ */ .table { margin: 0; padding: 4px 0 4px 0; width: 100%; } .table th, .table td { margin: 0; padding: 4px; text-align: left; line-height: 1.2em; } .table thead th { color: #666666; ...
zzheng
friday/website/static/css/table.css
CSS
asf20
768
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-03. $Id$ */ /*-------------------------------------------------------------------------------------------------- * HTML elements *--------------------------------------------------------------------------------------------...
zzheng
friday/website/static/css/welcome.css
CSS
asf20
3,746
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2008-12-03. $Id$ */ /*-------------------------------------------------------------------------------------------------- * common CSS classes *-------------------------------------------------------------------------------------...
zzheng
friday/website/static/css/common.css
CSS
asf20
5,696
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-02-10. $Id$ */ /*-------------------------------------------------------------------------------------------------- * common styles applied to all kinds of forms *------------------------------------------------------------...
zzheng
friday/website/static/css/form.css
CSS
asf20
4,110
/** Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> Created on 2010-02-19. $Id$ */ /*-------------------------------------------------------------------------------------------------- * user-avatar *----------------------------------------------------------------------------------------------...
zzheng
friday/website/static/css/user.css
CSS
asf20
1,608
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-05. # $Id$ # import os os.environ["DJANGO_SETTINGS_MODULE"] = "friday.settings" from djangomockup import bootstrap from django.core.handlers.wsgi import WSGIHandler from goo...
zzheng
friday/website/main.py
Python
asf20
507
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-30. # $Id$ # """ Script for handling incoming email. """ import os os.environ["DJANGO_SETTINGS_MODULE"] = "friday.settings" from djangomockup import bootstrap import ema...
zzheng
friday/website/handle_incoming_email.py
Python
asf20
1,731
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import datetime import logging from google.appengine.ext import db from djangomockup import models from djangomockup.models.signals import pre_delete from frid...
zzheng
friday/website/friday/apps/activities/models.py
Python
asf20
4,721
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from friday.auth import users from friday.apps.groups.access import GroupAccess from friday.apps.activities.models import Activity, Attender class ActivityAccess...
zzheng
friday/website/friday/apps/activities/access.py
Python
asf20
1,789
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import logging from django import forms from google.appengine.ext import db from friday.common.errors import ProgrammingError, InvalidFormError from friday.comm...
zzheng
friday/website/friday/apps/activities/forms.py
Python
asf20
2,709
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.activities.views import * urlpatterns = patterns("", url( r"^$", view_all_activit...
zzheng
friday/website/friday/apps/activities/urls.py
Python
asf20
1,117
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ #
zzheng
friday/website/friday/apps/activities/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import rend...
zzheng
friday/website/friday/apps/activities/views.py
Python
asf20
10,536
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-29. # $Id$ # import logging from django.conf import settings from django.template.loader import render_to_string from friday.auth import users from friday.apps.notifications...
zzheng
friday/website/friday/apps/activities/notifiers.py
Python
asf20
1,601
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import datetime from google.appengine.ext import db from djangomockup import models from friday.auth import users from friday.common.dbutils import filter_key ...
zzheng
friday/website/friday/apps/groups/models.py
Python
asf20
4,455
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from friday.auth import users from friday.apps.groups.models import Group, Member class GroupAccess(object): def __init__(self, group, user): self...
zzheng
friday/website/friday/apps/groups/access.py
Python
asf20
1,449
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django import forms from friday.common.errors import ProgrammingError, InvalidFormError from friday.apps.groups.models import Group, Member class GroupFor...
zzheng
friday/website/friday/apps/groups/forms.py
Python
asf20
6,840
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.groups.views import * urlpatterns = patterns("", url( r"^$", groups_home, ...
zzheng
friday/website/friday/apps/groups/urls.py
Python
asf20
1,443
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ #
zzheng
friday/website/friday/apps/groups/__init__.py
Python
asf20
154
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import rend...
zzheng
friday/website/friday/apps/groups/views.py
Python
asf20
15,174
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ # import logging from google.appengine.ext import db from djangomockup import models from friday.auth import users from friday.common.dbutils import filter_key ...
zzheng
friday/website/friday/apps/halloffame/models.py
Python
asf20
1,929
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ # from django import forms from friday.auth import users from friday.common.errors import ProgrammingError, InvalidFormError from friday.apps.halloffame.models impor...
zzheng
friday/website/friday/apps/halloffame/forms.py
Python
asf20
3,351
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ # from django.conf.urls.defaults import * from friday.apps.halloffame.views import * urlpatterns = patterns("", url( r"^$", view_hall_of_fame...
zzheng
friday/website/friday/apps/halloffame/urls.py
Python
asf20
1,003
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ #
zzheng
friday/website/friday/apps/halloffame/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import rend...
zzheng
friday/website/friday/apps/halloffame/views.py
Python
asf20
8,176
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ # from friday.apps.migration.models_v1 import * def get_all_models(): return ( Activity, Attender, Comment, Group, ...
zzheng
friday/website/friday/apps/migration/models.py
Python
asf20
589
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ # from django.conf.urls.defaults import * from friday.apps.migration.views import * urlpatterns = patterns("", url( r"^$", migrate_model, ...
zzheng
friday/website/friday/apps/migration/urls.py
Python
asf20
380
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ # import datetime import logging from django.conf import settings from google.appengine.ext import db class MigrationModel(db.Expando): to_schema_version...
zzheng
friday/website/friday/apps/migration/model_base.py
Python
asf20
1,979
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ #
zzheng
friday/website/friday/apps/migration/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import rend...
zzheng
friday/website/friday/apps/migration/views.py
Python
asf20
2,314
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-03. # $Id$ # import datetime import logging from google.appengine.ext import db from friday.apps.migration.model_base import MigrationModel class _Model_v1(MigrationMode...
zzheng
friday/website/friday/apps/migration/models_v1.py
Python
asf20
891
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ # import logging from google.appengine.ext import db from djangomockup import models from djangomockup.models.signals import pre_delete from friday.auth import us...
zzheng
friday/website/friday/apps/ilike/models.py
Python
asf20
5,789
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-13. # $Id$ # import logging from django import template from friday.common.errors import ProgrammingError from friday.apps.ilike.models import Fan, Fave register = templ...
zzheng
friday/website/friday/apps/ilike/templatetags/ilike_tags.py
Python
asf20
2,225
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-13. # $Id$ #
zzheng
friday/website/friday/apps/ilike/templatetags/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-11. # $Id$ #
zzheng
friday/website/friday/apps/ilike/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import csv import datetime import logging from django import forms from django.conf import settings from friday.auth import users from friday.common.errors im...
zzheng
friday/website/friday/apps/admin/forms.py
Python
asf20
4,132
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.admin.views import * urlpatterns = patterns("", url( r"^$", admin_home, ...
zzheng
friday/website/friday/apps/admin/urls.py
Python
asf20
815
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-23. # $Id$ #
zzheng
friday/website/friday/apps/admin/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import datetime import logging import os import sys import urllib from django.conf import settings from django.http import HttpRequest, HttpResponse, HttpRespo...
zzheng
friday/website/friday/apps/admin/views.py
Python
asf20
5,883
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-18. # $Id$ # import logging from google.appengine.ext import db from djangomockup import models from djangomockup.models.signals import pre_delete from friday.auth import us...
zzheng
friday/website/friday/apps/restos/models.py
Python
asf20
7,998
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-18. # $Id$ # from friday.auth import users from friday.apps.restos.models import Resto class RestoAccess(object): def __init__(self, user, resto): self._user =...
zzheng
friday/website/friday/apps/restos/access.py
Python
asf20
874
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-18. # $Id$ # import logging from django import forms from friday.common.errors import ProgrammingError, InvalidFormError from friday.common.fields import GeoPtField from fri...
zzheng
friday/website/friday/apps/restos/forms.py
Python
asf20
5,754
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.restos.views import * urlpatterns = patterns("", url( r"^$", restos_home, ...
zzheng
friday/website/friday/apps/restos/urls.py
Python
asf20
2,294
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-18. # $Id$ #
zzheng
friday/website/friday/apps/restos/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-18. # $Id$ # import hashlib import logging import random import urllib from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import Req...
zzheng
friday/website/friday/apps/restos/views.py
Python
asf20
19,425
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.misc.views import * urlpatterns = patterns("", url( r"^$", welcome, name...
zzheng
friday/website/friday/apps/misc/urls.py
Python
asf20
718
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ #
zzheng
friday/website/friday/apps/misc/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # import datetime import urllib from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.short...
zzheng
friday/website/friday/apps/misc/views.py
Python
asf20
4,328
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-19. # $Id$ # import datetime import logging from google.appengine.ext import db from djangomockup import models from friday.auth import users from friday.common.dbutils imp...
zzheng
friday/website/friday/apps/poststats/models.py
Python
asf20
4,403
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-08. # $Id$ # from django.conf.urls.defaults import * from friday.apps.poststats.views import * urlpatterns = patterns("", url( r"^stat/$", view_group_s...
zzheng
friday/website/friday/apps/poststats/urls.py
Python
asf20
641
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-19. # $Id$ #
zzheng
friday/website/friday/apps/poststats/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-05-19. # $Id$ # import datetime from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import ren...
zzheng
friday/website/friday/apps/poststats/views.py
Python
asf20
2,256
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # import logging from google.appengine.ext import db from djangomockup import models from djangomockup.models.signals import pre_delete from friday.auth import us...
zzheng
friday/website/friday/apps/comments/models.py
Python
asf20
2,586
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # from django import forms from friday.common.errors import ProgrammingError, InvalidFormError from friday.apps.comments.models import Comment class CommentForm(...
zzheng
friday/website/friday/apps/comments/forms.py
Python
asf20
1,461
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # from django.conf.urls.defaults import * from friday.apps.comments.views import * urlpatterns = patterns("", url( r"^(?P<ref_type>[\w\.\-]+)/(?P<re...
zzheng
friday/website/friday/apps/comments/urls.py
Python
asf20
424
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ #
zzheng
friday/website/friday/apps/comments/__init__.py
Python
asf20
150
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-02-15. # $Id$ # import logging from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.shortcuts import rend...
zzheng
friday/website/friday/apps/comments/views.py
Python
asf20
2,548
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/> # # Created on 2010-04-28. # $Id$ # import datetime import logging from google.appengine.ext import db from djangomockup import models from djangomockup import mail from friday.auth import users ...
zzheng
friday/website/friday/apps/notifications/models.py
Python
asf20
3,259