[Zope-dev] Survey on Open Source

2004-09-25 Thread Mike Chan
Dear all,

I am conducting a survey on open source software. This is for my academic
coursework and dissertation. It will be great to have your support and
participation in this survey. 

This survey has two separate questionnaires, focusing on the following
areas: 

1) OSS development (Developers or those who contribute in coding or
documentation), and
2) IT/IS costs (CIOs or IT Managers). 

You are free to go for the questionnaire that is appropriate for you.

Below are the links:

1) Brief introduction page: 
   http://web.singnet.com.sg/~mikecck/opensource/Introduction1.htm

2) Questionnaire 1(Open Source Development): 
   http://web.singnet.com.sg/~mikecck/opensource/WebFormA1.htm

3) Questionnaire 2(Open Source and IT/IS Cost): 
   http://web.singnet.com.sg/~mikecck/opensource/WebFormB1.htm 


Thank you for your time.



Mike Chan
Student
Curtin University of Technology

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] New-style classes and ClassSecurityInfo, fixed already?

2004-01-06 Thread Mike C. Fletcher
Leonardo Rochael Almeida wrote:

On Mon, 2004-01-05 at 00:06, Mike C. Fletcher wrote:
 

   http://zope.org/Collectors/Zope/1055

Is a bug report I filed a while ago for a fairly trivial breakage of the 
ClassSecurityInfo class due to the use of assignment to the class 
dictionary during the apply method. [...]

The InitializeClass function also needs to have the same transformation 
applied to it.

If desired I can pull the CVS tree and produce a diff if the problem 
isn't already solved.
   

If you do that, and attach the patch to the bug report, people with CVS
access will have even less excuses not to fix it :-)
 

Okay, this appears to have been fixed in CVS by Jim back in November.

Revision : 1.15
Date : 2003/11/28 16:45:22
Author : 'jim'
State : 'Exp'
Lines : +7 -5
Description :
New-style class dictionaries are immutable. Changed some class-update
code to use setattr rather thah class-dictionary modifications.
If someone wants to close the issue out, that'd be cool.

Enjoy yourselves,
Mike
___
 Mike C. Fletcher
 Designer, VR Plumber, Coder
 http://members.rogers.com/mcfletch/


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] New-style classes and ClassSecurityInfo, fixed already?

2004-01-04 Thread Mike C. Fletcher
   http://zope.org/Collectors/Zope/1055

Is a bug report I filed a while ago for a fairly trivial breakage of the 
ClassSecurityInfo class due to the use of assignment to the class 
dictionary during the apply method.  I'm wondering, is this fixed now on 
CVS head?  I've been using a work-around module sub-class for Zope 2.7 
work w/ new-style classes, but I can't imagine that's something that 
would be wanted as a solution.  The ClassSecurityInfo.apply method is 
changed to use setattr instead of dict['x'] = y.

The InitializeClass function also needs to have the same transformation 
applied to it.

If desired I can pull the CVS tree and produce a diff if the problem 
isn't already solved.

Have fun,
Mike
___
 Mike C. Fletcher
 Designer, VR Plumber, Coder
 http://members.rogers.com/mcfletch/


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: [ZODB-Dev] standalone ZODB for large Numeric arrays

2003-03-03 Thread Mike Mueller

AFAICT, AdaptableStorage is designed to allow this kind of thing.
Shane?


Sounds interesting. I am going to search for this.


Yes, it is.  I don't know anything about NetCDF, but it sounds 
intriguing.  I guess NetCDF is not just an encoding format, but also some 
kind of database for large arrays.

Shane


http://my.unidata.ucar.edu/content/software/netcdf/index.html

NetCDF (network Common Data Form) is an interface for array-oriented data 
access and a library that provides an implementation of the interface. The 
netCDF library also defines a machine-independent format for representing 
scientific data. Together, the interface, library, and format support the 
creation, access, and sharing of scientific data.

Python interface is contained in Konrad Hinsens Scientifc package

http://starship.python.net/~hinsen/ScientificPython/

Mike



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] variables in zope (beginner question)

2002-03-11 Thread Mike Guerrero

Hello,

I the code below I want to be declare a variable 'tot_net_amt' and add
'net_amt' to it for each record returned.  How can I: 1) declare the
variable  2) add to it within the loop.

Thanks.  Is it in the Zope book?  I'll read some more tonight.

Thanks for your help.

Mike



dtml-var standard_html_header
h3Current Month/h3

!-- declare tot_net_amt  int := 0;  ---

table border=1 cellspacing=0
tr
thfont size=1Sales Order No./font/th
thfont size=1Net Amt./font/th
/tr
dtml-in sql_curr_month_decom
  tr
  !--- net_tot_amt := net_tot_amt + dtml-var net_amt  ---

  td align=centerfont size=1dtml-var sales_ord_no/font/td
  td align=centerfont size=1dtml-var net_amt/font/td
  /tr
/dtml-in
/table
dtml-var standard_html_footer


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] ZODBC bug

2001-11-29 Thread mike hong




I found ZODBC bug at max_rows.

file name: db.py
line: 230

Current version is getting all rows regardless of 
max_rows.
Fixed version is getting rows until rows are smaller than 
max_rows.

Current version:
while status==SQL_SUCCESS:
.
 r.append(rd)
 status=SQLFetch(stmt)
.

Fixed version:
cnt = 0
while status==SQL_SUCCESS and cnt  max_rows:
...
 r.append(rd)
 cnt = cnt + 1
 status=SQLFetch(stmt)
...


Have a nice day !!




[Zope-dev] html version of zope site

2001-04-19 Thread Mike Blake

Hi! 

First of all:
We have a client that (because of lame internal policy) 
will not be able to install zope on the final server.
However, they _do_ want zope as a publishing solution
for a web that will be practically nothing but dtml docs,
images, and folders. They're only intested in accessing
the web interface to modify text in custom zclass product
interfaces we will make for them.

Provided that there are no complicated methods integrated
into the zope structure, is it possible to generate a
navegable static html version of a zope hierarchy?

Our idea is to let them access our server to manage
and edit content and to give them a publish option
(written in python or perl) that generates the html 
and ftps the site to a remote, non-zope webserver.

The day that the client wants a more dynamic site
with searching and such, we would discuss installing
zope again on the remote server.

Please give me your thoughts on this workaround 
solution.

thanks,
--
[[EMAIL PROTECTED] chikoon]$ whoami
Mike Blake

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike

2001-04-05 Thread Mike Blake

Hello!

There are two copies of the _mysql.pyd file on my disk:
 
the one I built yesterday is here
   C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0

and there's another one here that I didn't know about here:
   C:\Python20
I'm not sure where that one came from...

Anyway, I took the _mysql.pyd from 
   C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0

and tried putting it in zopedirbin/lib

But then when I tried to startup zope, it died. No error messages. 
It just tried to start and then died (on win, this is a console 
window that opens and closes itself)

I then tried putting it in 
   C:\zopes\chikoon\lib\python\Products\ZMySQLDA
but had the same results.

Sorry to continue with the saga, but at least there's no
copy in html this time! I apologize to everyone for that...

bye!
mike blake


phil wrote:
 RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike,
 You need to put the file _mysql.pyd into your PYTHONPATH.
 Try putting it into the same folder as the ZMySQLDA or into
 zopedirbin/lib.  Either should work OK.

mike wrote:
 Ok, I installed Microsoft Visual C++ from Studio 6, and
 after I did a successful build and install of the
 setup.py file for the MySQL-python-0.3.5
 I installed it in a folder in my python directory:
 C:\Python20\win32comext\MySQL-python-0.3.5

 the error reads as follows:
 Traceback (innermost last):
 File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products
(Object: string)
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ?
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ?
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ? 
 ImportError: No module named _mysql

--
[[EMAIL PROTECTED] chikoon]$ whoami
Mike Blake

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] cl.exe with MySQL-python-0.3.5

2001-04-04 Thread Mike Blake
Title: cl.exe with MySQL-python-0.3.5





Hi!


I just tried a build of the MySQL-python-0.3.5 module and
I get a file not found error because I don't have a cl.exe,
which is apparently something I need to finish the build.


Does anyone know what I'm missing?


I have Python 2.0 and MySQL 3.23.33 on win2000


Thanks,
mike


--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED] [icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4ª Planta, 28004 Madrid






RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDA

2001-04-04 Thread Mike Blake
Title: RE: [Zope-dev]  MySQL-python-0.3.5 with ZMySQLDA 





mike wrote:
 I just tried a build of the MySQL-python-0.3.5 module and
 I get a file not found error because I don't have a cl.exe,
 which is apparently something I need to finish the build.
 Does anyone know what I'm missing?
 I have Python 2.0 and MySQL 3.23.33 on win2000


phil wrote:
 You need Microsoft Visual C (6.x?) to compile what you want.


Ok, I installed Microsoft Visual C++ from Studio 6, and 
after I did a successful build and install of the
setup.py file for the MySQL-python-0.3.5


I installed it in a folder in my python directory:
C:\Python20\win32comext\MySQL-python-0.3.5


But the reason I was compiling this module is because it is
required for the installation of the ZMySQLDA database adaptor.


 Installation

 The Z MySQL database adapter uses the MySQLdb package. 
 This must be installed before you can use the Z MySQL DA.
 Instructions on building the extension modules are given in the
 the README.txt file in the source directory.


Ok, I got this far, but I extract the ZMySQLDA to the 
zope-root/lib/pyton/products directory, and the product doesn't
install properly. It appears broken in the products list.


Here is the error it gives on startup:


 Traceback (innermost last):
 File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products
 (Object: string)
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ?
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ?
 File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ?


Any ideas??? Is there something else besides the MySQLdb that 
I must compile for the product to be successfully installed?


Thanks,


mike


--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED] [icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4ª Planta, 28004 Madrid









[Zope-dev] zope and java

2001-02-06 Thread Mike Blake
Title: zope and java





Hi all,


We're considering zope as a front-end publishing and web-app development solution 
for a project which has already developed a complex underlying layer of servlets for 
secure client/server transactions against their host.


Since we haven't been able to find any add-on products for zope providing an interface
to java environments, we thought we'd ask:


Can zope work wtih Java yet? If so, please point us in the right direction.


Thanks,
Mike Blake



--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED] [icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4ª Planta, 28004 Madrid






Re: [Zope-dev] bug in zpatterns-0.4 ?

2000-06-27 Thread mike

Jephte CLAIN wrote:
 
 hello,
 
 Rack.createItem (low level method) first calls Rack.getItem (higher
 level method) to check the existence of the item.
 This causes infinite loop in certain cases. It should (IMHO) call
 Rack.retrieveItem instead
 

Could you provide an example please?

Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] zpatterns-0.4a4

2000-06-26 Thread mike

Jephte CLAIN wrote:
 
 There is a bug (a feature?) in Specialist.getItem in zpatterns-0.4a4:
 
 def getItem(self, key):
 if hasattr(self.aq_base,'retrieveItem'):
 return self.retrieveItem(key=key) # XXX need DTML check?
 
 for rack in self.rackList:
 item = rack.__of__(self).getItem(key)
 return item
 
 This code should (IMHO) read:
 
 def getItem(self, key):
 if hasattr(self.aq_base,'retrieveItem'):
 return self.retrieveItem(key=key) # XXX need DTML check?
 
 for rack in self.rackList:
 item = rack.__of__(self).getItem(key)
 if item is not None:
 return item
 return None
 

I also think so, Jephte. But I thought 'for rack ...' was just a shorter
form of

if len( rackList)  0) :
  return rackList[0].__of__( self).getItem( key)
else :
  return None

Better you, Phillip, replace it with one of more clear forms - Jephte's
or mine.

By the way, I do not like this Rack list at all. Racks and Specialists
are both DataManagers with compatible interfaces (getItem, newItem).
IMHO, Specialists should have list of DataManagers. This make much sense
in context of combining Specialists - ZSession and ClientManager, for
example. It is not sufficient just to tune ZSession using
ClientManager's rack and ZClass, because in this case we are losing the
ClientManager's aspect in sessions. Of course, one always can create
delegating rack (and even rack-to-specialist bridge), but what do this
for if simple replacing rackList with dataManagerList will solve all
such problems?

(Oh Gott, help mine improvink mie English :-)

Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns bug. Very serious.

2000-06-22 Thread mike

Well, it should be:

 ##
 # Add this to see what I mean
 
 try :
 print "%s 'self'=%s" % (
 key,
 slot.values()[0].__dict__
 )
 except :
 print "Nothing to print"
 #
 ###

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Test request: ZSession - ZPatterns basedsession manager

2000-06-20 Thread mike

"Phillip J. Eby" wrote:
 
 At 08:58 PM 6/19/00 +0800, mike wrote:
 
 http://www.zope.org/Members/RainDog/ZSession/ZSession-0.0.2.tar.gz/view
 
 Comments?
 
 
 Now that I've had a chance to really look at this (while tracking down one
 of the bugs you found), I do have a few comments.
 
 First, nice job...  It's a good adaptation use of ZPatterns.  I do have

Thanks.

 some suggestions for fine tuning, though.
 
 * Rather than putting property manipulation functions right into the base
 Session class, I would simply let users derive ZClasses of their own from
 Session.  They could then actually give the Session a UI of its own, for

I put those get/set/has stuff just for make easier life of some lazy
people (like me :-)

 example.  Think of someone creating a Session subclass called "Shopping
 Cart", with methods for viewing, checking out, adding/deleting items, etc.
 Or, if they have many subsystems which want to share the same Session
 objects, they could do this by having each subsystem use a different
 propertysheet of the same Session object.

Well, well, well. As for me, beter I've set up a Client abstraction
which have access to CartManager and store cart_id in the session
object. Mixing Session and Cart is not a good idea just because Client
can have several carts, for example. The composition is better than
inheritance in this case, Phillip :-)

 IMHO, the basicSheet stuff you've done, while convenient, encourages
 developers to take the quick-and-dirty route of just using the Session as a
 place to store variables - and that throws away a lot of the usefulness of
 ZPatterns.  For one thing, you've guaranteed that Sessions have to be
 stored as persistent objects in the ZODB, or at least that the basicSheet
 has to support arbitrary properties.

But without this stuff people will have to code ZClasses each time they
want sessions. Hmm... I guess the best way is splitting current session
class into two - simple Session and LazySession.

 * Make dead session removal something that doesn't happen automatically, or
 at least have an option to do so.  Your default deletion algorithm would be
 very expensive when executed against a non-ZODB database, and would be more
 efficiently done a few times a day in large batches by a cron job.

Moreover, I found a bug which causes infinite loop :-( You're right,
automatic removal should be optional. Will be fixed in 0.0.3 release.
 
 * Delegate determining which sessions are dead to the Rack, rather than
 doing it in the Specialist.  This allows an SQL implementation to make use
 of indexes.  Specifically, make removeDead call:
 
 self._getSource().findIdleSessions(self.session_ttl)
 
 And then provide a default implementation of findIdleSessions() in the
 Specialist.  (Btw, please note that your current implementation absolutely
 requires that at least *some* session data be stored persistently in the
 ZODB, which if you're using a FileStorage, is a bad place for it to be.)
 Now, the whole thing works the same way when first installed, but if
 someone implements the session ID and lastAccessed attributes in an SQL
 database, they can substitute a different implementation for
 findIdleSessions() by putting it in the Rack.

Agree with you completely.

Thanks,
Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Announce: ZSession-0.0.3a

2000-06-20 Thread mike

In short:

1. URL = http://www.zope.org/Members/RainDog/ZSession
2. It works.
3. I need more comments/suggestions

Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Test request: ZSession - ZPatterns based session manager

2000-06-19 Thread mike


http://www.zope.org/Members/RainDog/ZSession/ZSession-0.0.2.tar.gz/view

Comments?

Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Yet another bug. (Re: [Zope-dev] Bug?)

2000-06-19 Thread mike

"Phillip J. Eby" wrote:
 
 At 08:45 PM 6/19/00 +0800, mike wrote:
 It looks like retrieved items have no _v_dm_ set. I fixed it (not sure
 this is right) with:
 
 
 Um, check to make sure you're using _RawItem, not _v_itemConstructor, in
 your retrieveItem method, if you're using a subclass.  If you are using
 _RawItem, then I've got a bug somewhere deeper that needs fixing.  But
 getItem isn't the place it's broken, as _RawItem is responsible for
 ensuring the datamanager invariants (skin points to _v_dm_ and has its
 canonical form registered).

I use (ZSession.py from ZSession 0.0.2) :

def getItem( self, id) :
""" """
if self._timer.idleTime()  self.session_ttl / 2 :
self.removeDead()
item = Specialist.getItem( self, id)
return item

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] DTML DTD (or DTML mode for EMACS)?

2000-06-19 Thread mike

Does anybody have subject?

Thanks,
Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Externalize or Adapt? (ZPatterns)

2000-06-10 Thread Mike

Mike wrote:
 
  I will add a "retrieveItem" method to the Specialist which, instead of
  accessing a rack in the local specialist (the default implementation), it
  will instead call (for example) SkyDivers.getItem().  Thus, when you call
  Customers.getItem(), you will actually get an object from the SkyDivers
  specialist.  In other words, I make the horizontal domain specialist
  delegate to the vertical specialist.

Maybe the best way is to put a 'thumb' data source into Customers
instead of native one. This thumb should translate all messages to
SkyDivers' data source. I'm just considering on specialized racks which
implement non-standard api, such as 'findItem( criteria)',
'itemValues()' or something similar.

By the way, racks should have a kind of 'scanning' api, like Zope's
Folders, at least they should have itemIds() method.

Mike

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )