cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci load_site.py
Date: 2 Jan 2008 21:06:32 -0000	[thread overview]
Message-ID: <20080102210632.26244.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2008-01-02 21:06:31

Modified files:
	luci           : load_site.py 

Log message:
	*.vpy and *.cpt files are not properly imported, so skip them

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/load_site.py.diff?cvsroot=cluster&r1=1.17&r2=1.18

--- conga/luci/load_site.py	2007/09/11 16:04:32	1.17
+++ conga/luci/load_site.py	2008/01/02 21:06:31	1.18
@@ -3,7 +3,7 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# Copyright (C) 2006-2007 Red Hat, Inc.
+# Copyright (C) 2006-2008 Red Hat, Inc.
 #
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
@@ -173,16 +173,18 @@
 	dbid = name.split('.')[0]
 
 	try:
-		call(nobject.manage_addControllerPythonScript, id=dbid, file=open(f,'rb'))
-		if verbose: print 'Uploaded', dbid
+		raise Exception, 'Not supported'
+		#call(nobject.manage_addControllerPythonScript, id=dbid, file=open(f,'rb'))
+		#if verbose: print 'Uploaded', dbid
 	except:
 		if verbose: print name, 'exists trying to delete then upload again'
 		try:
 			call(object.manage_delObjects, ids=[dbid])
 			if verbose: print 'Deleted', dbid
 			try:
-				call(nobject.manage_addControllerPythonScript, id=dbid, file=open(f,'rb'))
-				if verbose: print 'Uploaded', dbid
+				raise Exception, 'Not supported'
+				#call(nobject.manage_addControllerPythonScript, id=dbid, file=open(f,'rb'))
+				#if verbose: print 'Uploaded', dbid
 			except: print 'Unable to upload', dbid
 		except: print 'Unable to delete', dbid
 
@@ -196,17 +198,20 @@
 	dbid = name.split('.')[0]
 
 	try:
-		call(nobject.manage_addControllerPageTemplate, id=dbid, file=open(f,'rb'))
-		if verbose: print 'Uploaded', dbid
+		raise Exception, 'Not supported'
+		#call(nobject.manage_addControllerPageTemplate, id=dbid, file=open(f,'rb'))
+		#if verbose: print 'Uploaded', dbid
 	except:
 		if verbose: print name, 'exists trying to delete then upload again'
 		try:
 			call(object.manage_delObjects, ids=[dbid])
 			if verbose: print 'Deleted', dbid
 			try:
-				call(nobject.manage_addControllerPageTemplate, id=dbid, file=open(f,'rb'))
-				if verbose: print 'Uploaded', dbid
-			except: print 'Unable to upload', dbid
+				raise Exception, 'Not supported'
+				#call(nobject.manage_addControllerPageTemplate, id=dbid, file=open(f,'rb'))
+				#if verbose: print 'Uploaded', dbid
+			except:
+				print 'Unable to upload', dbid
 		except: print 'Unable to delete', dbid
 
 def upload_pt(object, f):



             reply	other threads:[~2008-01-02 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 21:06 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-18 21:23 [Cluster-devel] conga/luci load_site.py rmccabe
2006-09-18 21:11 rmccabe
2006-08-11 16:31 rmccabe
2006-06-19 19:31 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080102210632.26244.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).