pynta-source-updates Mailing List for Pynta - Flexible Web Framework in Python
Status: Planning
Brought to you by:
sergematveenko
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(2) |
|---|
|
From: <ser...@us...> - 2007-12-16 01:10:56
|
Revision: 7
http://pynta.svn.sourceforge.net/pynta/?rev=7&view=rev
Author: sergematveenko
Date: 2007-12-15 17:10:55 -0800 (Sat, 15 Dec 2007)
Log Message:
-----------
starting to create data interfaces
Modified Paths:
--------------
trunk/www/models.py
trunk/www/urls.py
trunk/www/views.py
Modified: trunk/www/models.py
===================================================================
--- trunk/www/models.py 2007-12-16 00:32:11 UTC (rev 6)
+++ trunk/www/models.py 2007-12-16 01:10:55 UTC (rev 7)
@@ -1,3 +1,73 @@
+# -*- coding: utf8 -*-
+"""
+This file is part of Pynta - Web Content Management System.
+Copyright (C) 2007 Serge "lig" Matveenko.
+
+Pynta is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Pynta is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Pynta. If not, see <http://www.gnu.org/licenses/>.
+
+$LastChangedDate$
+$LastChangedRevision$
+$LastChangedBy$
+"""
+
from django.db import models
-# Create your models here.
+class SiteNode(models.Model):
+
+ title
+ slug
+ stanza
+ view
+ dataNode
+ dataShowSubnodes
+ dataTagsFilter
+ parentNode
+ createdAt
+ createdBy
+ changedAt
+ changedBy
+
+ @staticmethod
+ def resolveSiteNode(sitenode):
+ pass
+
+ def resolveDataNode(self, subdatanode):
+ pass
+
+ def getView(self):
+ pass
+
+class DataNode(models.Model):
+ pass
+
+class View(models.Model):
+
+ def getType(self):
+ pass
+
+ def getWidgets(self):
+ pass
+
+class Widget(models.Model):
+
+ def getData(self):
+ pass
+
+class ViewType(models.Model):
+
+ def getTemplate(self):
+ pass
+
+class Tag(models.Model):
+ pass
Modified: trunk/www/urls.py
===================================================================
--- trunk/www/urls.py 2007-12-16 00:32:11 UTC (rev 6)
+++ trunk/www/urls.py 2007-12-16 01:10:55 UTC (rev 7)
@@ -24,5 +24,5 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('pynta.www.views',
- (r'^((?P<treenode>\w+)/)?((?P<subdatanode>\w+)/)?((?P<args>.+)/)?$', 'flow'),
+ (r'^((?P<sitenode>\w+)/)?((?P<subdatanode>\w+)/)?((?P<args>.+)/)?$', 'flow'),
)
Modified: trunk/www/views.py
===================================================================
--- trunk/www/views.py 2007-12-16 00:32:11 UTC (rev 6)
+++ trunk/www/views.py 2007-12-16 01:10:55 UTC (rev 7)
@@ -21,21 +21,22 @@
$LastChangedBy$
"""
-def flow(request, treenode, subdatanode=None, args=None):
+def flow(request, sitenode, subdatanode=None, args=None):
from django.shortcuts import render_to_response
- treenode = resolveTreeNode(treenode)
+ sitenode = SiteNode.resolveSiteNode(sitenode)
- view = treenode.getView()
-
- datanode = resolveDataNode(treenode, subdatanode)
+ datanode = sitenode.resolveDataNode(subdatanode)
+ view = sitenode.getView()
+
viewtype = view.getType()
+
widgets = view.getWidgets()
- template = datanode.getTemplate(viewtype)
-
for widget in widgets:
- widgetsdata[widget.name] = widget.getData()
+ wdata[widget.name] = widget.getData()
- return render_to_response(template.path, locals())
+ template = viewtype.getTemplate(datanode.type)
+
+ return render_to_response(template, locals())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ser...@us...> - 2007-12-16 00:32:07
|
Revision: 6
http://pynta.svn.sourceforge.net/pynta/?rev=6&view=rev
Author: sergematveenko
Date: 2007-12-15 16:32:11 -0800 (Sat, 15 Dec 2007)
Log Message:
-----------
incode representation of the Flow (http://pynta.wiki.sourceforge.net/Flow)
Modified Paths:
--------------
trunk/urls.py
Added Paths:
-----------
trunk/www/
trunk/www/__init__.py
trunk/www/models.py
trunk/www/urls.py
trunk/www/views.py
Modified: trunk/urls.py
===================================================================
--- trunk/urls.py 2007-11-21 02:20:12 UTC (rev 5)
+++ trunk/urls.py 2007-12-16 00:32:11 UTC (rev 6)
@@ -24,9 +24,6 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('',
- # Example:
- # (r'^pynta/', include('pynta.foo.urls')),
-
- # Uncomment this for admin:
-# (r'^admin/', include('django.contrib.admin.urls')),
-)
+ (r'^(.*)$', include('pynta.www.urls')),
+ (r'^admin/', include('django.contrib.admin.urls')),
+ )
Added: trunk/www/__init__.py
===================================================================
Property changes on: trunk/www/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Date Revision Author
Added: trunk/www/models.py
===================================================================
--- trunk/www/models.py (rev 0)
+++ trunk/www/models.py 2007-12-16 00:32:11 UTC (rev 6)
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
Property changes on: trunk/www/models.py
___________________________________________________________________
Name: svn:keywords
+ Date Revision Author
Added: trunk/www/urls.py
===================================================================
--- trunk/www/urls.py (rev 0)
+++ trunk/www/urls.py 2007-12-16 00:32:11 UTC (rev 6)
@@ -0,0 +1,28 @@
+# -*- coding: utf8 -*-
+"""
+This file is part of Pynta - Web Content Management System.
+Copyright (C) 2007 Serge "lig" Matveenko.
+
+Pynta is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Pynta is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Pynta. If not, see <http://www.gnu.org/licenses/>.
+
+$LastChangedDate$
+$LastChangedRevision$
+$LastChangedBy$
+"""
+
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('pynta.www.views',
+ (r'^((?P<treenode>\w+)/)?((?P<subdatanode>\w+)/)?((?P<args>.+)/)?$', 'flow'),
+ )
Property changes on: trunk/www/urls.py
___________________________________________________________________
Name: svn:keywords
+ Date Revision Author
Added: trunk/www/views.py
===================================================================
--- trunk/www/views.py (rev 0)
+++ trunk/www/views.py 2007-12-16 00:32:11 UTC (rev 6)
@@ -0,0 +1,41 @@
+# -*- coding: utf8 -*-
+"""
+This file is part of Pynta - Web Content Management System.
+Copyright (C) 2007 Serge "lig" Matveenko.
+
+Pynta is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Pynta is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Pynta. If not, see <http://www.gnu.org/licenses/>.
+
+$LastChangedDate$
+$LastChangedRevision$
+$LastChangedBy$
+"""
+
+def flow(request, treenode, subdatanode=None, args=None):
+ from django.shortcuts import render_to_response
+
+ treenode = resolveTreeNode(treenode)
+
+ view = treenode.getView()
+
+ datanode = resolveDataNode(treenode, subdatanode)
+
+ viewtype = view.getType()
+ widgets = view.getWidgets()
+
+ template = datanode.getTemplate(viewtype)
+
+ for widget in widgets:
+ widgetsdata[widget.name] = widget.getData()
+
+ return render_to_response(template.path, locals())
Property changes on: trunk/www/views.py
___________________________________________________________________
Name: svn:keywords
+ Date Revision Author
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ser...@us...> - 2007-11-21 02:20:08
|
Revision: 5
http://pynta.svn.sourceforge.net/pynta/?rev=5&view=rev
Author: sergematveenko
Date: 2007-11-20 18:20:12 -0800 (Tue, 20 Nov 2007)
Log Message:
-----------
settings.py added to svn:ignore, settings.py.sample added with empty SECRET_KEY
Modified Paths:
--------------
trunk/settings.py.sample
Property Changed:
----------------
trunk/
Property changes on: trunk
___________________________________________________________________
Name: svn:ignore
- .project
.pydevproject
+ .project
.pydevproject
settings.py
Modified: trunk/settings.py.sample
===================================================================
--- trunk/settings.py.sample 2007-11-21 02:16:56 UTC (rev 4)
+++ trunk/settings.py.sample 2007-11-21 02:20:12 UTC (rev 5)
@@ -71,7 +71,7 @@
ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'k#6wek^sb5+-irfghrm7ast_u)5u%6@a3$#u%a(vogtb3*0^5e'
+SECRET_KEY = ''
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ser...@us...> - 2007-11-21 02:16:53
|
Revision: 4
http://pynta.svn.sourceforge.net/pynta/?rev=4&view=rev
Author: sergematveenko
Date: 2007-11-20 18:16:56 -0800 (Tue, 20 Nov 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/settings.py.sample
Removed Paths:
-------------
trunk/settings.py
Deleted: trunk/settings.py
===================================================================
--- trunk/settings.py 2007-11-21 01:59:21 UTC (rev 3)
+++ trunk/settings.py 2007-11-21 02:16:56 UTC (rev 4)
@@ -1,103 +0,0 @@
-# -*- coding: utf8 -*-
-"""
-This file is part of Pynta - Web Content Management System.
-Copyright (C) 2007 Serge "lig" Matveenko.
-
-Pynta is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Pynta is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Pynta. If not, see <http://www.gnu.org/licenses/>.
-
-$LastChangedDate$
-$LastChangedRevision$
-$LastChangedBy$
-"""
-
-# Django settings for pynta project.
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- # ('Your Name', 'you...@do...'),
-)
-
-MANAGERS = ADMINS
-
-DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
-DATABASE_NAME = '' # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
-
-# Local time zone for this installation. Choices can be found here:
-# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
-# although not all variations may be possible on all operating systems.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
-TIME_ZONE = 'America/Chicago'
-
-# Language code for this installation. All choices can be found here:
-# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
-# http://blogs.law.harvard.edu/tech/stories/storyReader$15
-LANGUAGE_CODE = 'en-us'
-
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = True
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ''
-
-# URL that handles the media served from MEDIA_ROOT.
-# Example: "http://media.lawrence.com"
-MEDIA_URL = ''
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'k#6wek^sb5+-irfghrm7ast_u)5u%6@a3$#u%a(vogtb3*0^5e'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.load_template_source',
- 'django.template.loaders.app_directories.load_template_source',
-# 'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.middleware.doc.XViewMiddleware',
-)
-
-ROOT_URLCONF = 'pynta.urls'
-
-TEMPLATE_DIRS = (
- # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
-)
-
-INSTALLED_APPS = (
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
-)
Copied: trunk/settings.py.sample (from rev 3, trunk/settings.py)
===================================================================
--- trunk/settings.py.sample (rev 0)
+++ trunk/settings.py.sample 2007-11-21 02:16:56 UTC (rev 4)
@@ -0,0 +1,103 @@
+# -*- coding: utf8 -*-
+"""
+This file is part of Pynta - Web Content Management System.
+Copyright (C) 2007 Serge "lig" Matveenko.
+
+Pynta is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Pynta is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Pynta. If not, see <http://www.gnu.org/licenses/>.
+
+$LastChangedDate$
+$LastChangedRevision$
+$LastChangedBy$
+"""
+
+# Django settings for pynta project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+ # ('Your Name', 'you...@do...'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
+DATABASE_NAME = '' # Or path to database file if using sqlite3.
+DATABASE_USER = '' # Not used with sqlite3.
+DATABASE_PASSWORD = '' # Not used with sqlite3.
+DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
+# although not all variations may be possible on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
+# http://blogs.law.harvard.edu/tech/stories/storyReader$15
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT.
+# Example: "http://media.lawrence.com"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = 'k#6wek^sb5+-irfghrm7ast_u)5u%6@a3$#u%a(vogtb3*0^5e'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+ 'django.template.loaders.filesystem.load_template_source',
+ 'django.template.loaders.app_directories.load_template_source',
+# 'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.middleware.doc.XViewMiddleware',
+)
+
+ROOT_URLCONF = 'pynta.urls'
+
+TEMPLATE_DIRS = (
+ # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+ # Always use forward slashes, even on Windows.
+ # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.sites',
+)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|