Re: [Zope] Values lost when restarting

2007-01-10 Thread Michael Bernstein
On Tue, 2007-01-09 at 17:09 +0100, Andreas Jung wrote:
> 
> --On 9. Januar 2007 17:06:24 +0100 Jonas Nielsen <[EMAIL PROTECTED]> 
> wrote:
> 
> > The "Zope Bible" says something about calling self.__changed__(1) after
> > updating the value but this doesn't seem to work even though the objects
> > inherits from "Persistent"
> 
> self._p_changed = 1

Well, I suppose that's the final nail in the coffin for the Zope Bible
(like it actually *needed* another one at this point).

I think the self.__changed__(1) spelling I used was deprecated even
before I wrote the book, and I guess the supporting code must have been
taken out of the ZODB since then.

So, just shoot me and go pre-order Philipp's book now:
http://www.amazon.com/exec/obidos/ASIN/3540338071/fiawol/ref=nosim

Cheers all,

- Michael R. Bernstein
  michaelbernstein.com

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


Re: [Zope] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread Michael Bernstein

3dfestival - WebMaster wrote:
> 
> Just a quick Idea:
> 
> Can somebody make a routine RESIZING an image...?
> 
> It would be great if someone could make something like that...
> 
> Just imagine it: You add an Image_with_thumb... Browse for the image, then
> it adds your image to the site  AND it is being resized to, for instance,
> 16x16pixels, and you can use that thumb as an icon for the image...!
> Wouldn't that be great...?

Check out the Photo Product:
http://www.zope.org/Members/Drew/Photo

HTH,

Michael Bernstein.

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




Re: [Zope] Zope 2.3.0b2 bug #2

2001-01-22 Thread Michael Bernstein

Oleg Broytmann wrote:
> 
> On Mon, 22 Jan 2001, Brian Lloyd wrote:
> > FYI - I've taken out the charset declaration altogether for beta 3,
> 
>Thanks.
> 
> > since this is obviously an issue that needs more thought. Since
> 
>Sure. Language/encoding issues are hard to implement, though. There are
> servers, proxies, browsers - and almost none of them obey standards
> correctly :(

The chosen language/encoding solution will likely have to be
implemented along with some sort of language/encoding policy
interface, so that the exact behaviour can be set by the
server administrator, and possibly overridden by managers at
different points in the tree.

I would suggest that the default setting (in the startup
script) be fully standards compliant, but a systems
administrator should still be able to select another
behaviour for Zope if they wish (including disallowing
managers to override).

Sorry this is a bit vague, need coffee.

Michael Bernstein.

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




Re: [Zope] Mental disconnect help: Zope objects vs. Python objects in ZODB

2001-01-19 Thread Michael Bernstein

Max Møller Rasmussen wrote:
> 
> Whops...
> 
> The missing link
> 
> http://www.zope.org/Members/maxm/HowTo/minimal_01/index_html

Whoa.

I am *seriously* impressed with the clarity you've brought
to this subject. Thank You!

Michael Bernstein.

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




Re: [Zope] Zope Versus Enhydra Comparison article

2001-01-17 Thread Michael Bernstein

Ron Bickers wrote:
> 
> > However, for a programmer who had to come into the Zope
> > environment 'cold', the problem would likely have seemed
> > intractable. They wouldn't have even known where to look,
> 
> How does Enhydra differ?  Wouldn't the same problems be true for someone
> working with Enhydra that knows Zope/Python really well but has zero
> Enhydra/Java experience?

Please scan through their 'getting started' document:
http://www.lutris.com/documentation/lutris-enhydra/35/books/index.html?getting-started

You'll see that Enhydra, like most app-servers, is basically
a thin layer on top of a relational data model. What
infrastructure is there is basically aimed at easing the
pain of bridging the object-relational gap. To that end,
they have a lot of Wizards that automate boring tasks, and
present the the OR mapping in a pretty graphical interface.
Great.

They also provide some of the basic low-level building
blocks for web applications like session managers.
Wonderful.

They even cleanly separate the presentation- and
business-logic layers for you. Woohoo.

User mangement? Build your own. ACL security? Build your
own. Etc.

Faced with a situation like this, a programmer will
typically build *exactly what they need*, and no more. Every
site an island. And all of this is built on top of Enhydra's
core functionality.

Zope's approach, of generalizing and integrating common
design patterns into the core product, tends to poke
developers in a different way.

Consider LoginManager. LM is a product that is designed to
be a drop in replacement for Zope's existing acl_users
objects, but to be more extensible. Faced with a generalized
solution that I could extend to authenticate using SMB and
still store user info in the ZODB, but that doesn't
correctly participate in Zope's local roles machinery, my
initial reaction was to *fix it*. Which I did after a week
of whacking on it. Which was itself the culmination of a
month of, well, whacking on other aspects of the problem.

An Enhydra developer would have developed a custom solution
for managing their user objects. It would not have been as
generalized, almost certainly would have included only
simple permission flags used at the Business Object layer,
and had other deficiencies that I won't ennumerate. But it
would have done exactly what he needed to do right then.

I, on the other hand, after solving the local roles problem,
was able to install Membership, tweak the Tracker product to
use the getUserNames method, change a few permissions on a
Squishdot instance, and pretty soon I had myself a nice
little NT authenticated Intranet on the Solaris box, one
that I *knew* was extensible. Thus, it was worth the pain of
having to delve into Zope's source.

In conclusion, Enhydra, like most application servers, hides
it's internals behind lowest common denominator interfaces,
and encourages you to build on top of them. Zope, on the
other hand, tries to create 'highest common denominator'
interfaces and frameworks, and encourages you to extend or
override them.

This results in Enhydra developers needing to know Java plus
Enhydra's idioms, wheras Zope developers need to know Python
and Zope's *internals*.

HTH,

Michael Bernstein.

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




Re: [Zope] Zope 2.3.0 beta 1 comments

2001-01-17 Thread Michael Bernstein

Martijn Pieters wrote:
> 
> On Wed, Jan 17, 2001 at 04:00:57PM -0500, Brian Lloyd wrote:
> > > - When you view a management screen, the frame is about 5 pixels to
> > > small, which cuts off the bottom of the Zope logo.
> >
> > I'm looking into fixing that.
> 
> This suddenly rings a bell; I remember now that NS4 seems to have a 'grid'
> system for laying out frames. It snaps to certain sizes, and adding a few
> pixels plus or minus won't get you a visible change. Sizing of frames can
> only happen in larger steps.

Here's a throrough description of the problem:

http://www.builder.com/Authoring/Tagmania/120699/index.html

HTH,

Michael Bernstein.

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




Re: [Zope] Zope Versus Enhydra Comparison article

2001-01-17 Thread Michael Bernstein

Ron Bickers wrote:
> 
> > Using Zope we knew that we would reach situations which may be
> > unresolvable in the short term, and could not make significant business
> > decisions with so many unknown factors and lack of any way to circumvent
> > problems.
> 
> What in the world does that mean?!?  Maybe it should read "We don't know how
> to use Zope or code in Python."

I can give you a personal example. When I was trying to get
LoginManager to display it's stored users in the local roles
security form, I couldn't fix it using what I knew, which
was DTML and ZClasses. I had asked for help on the lists,
and got some pointers in the general direction, but that was
all.

After a week of crawling around in Zope's source (and a lot
of whining), I found the parts I needed to duplicate for
PersistentUserSource.py, and I added them. It should not
have taken me a week, except that I don't really consider
myself a coder. The only thing that made it possible at all
was my extensive experience *using* zope, and my familiarity
with Tracebacks and a basic understanding of most of Zope's
underlying mechanisms. If I had been a real Zope/Python
coder, I probably would have figured it out in a day.

However, for a programmer who had to come into the Zope
environment 'cold', the problem would likely have seemed
intractable. They wouldn't have even known where to look,
and the fact that LoginManager is not an 'official' core
Zope product could have been a show-stopper.

(Why did I have to use LoginManager, you ask? Membership
requires it, and I needed to store user data in the ZODB
about NT authenticated users on a Solaris box. Gah).

So the problem, as I see it, is multiple dependencies that
may not be obvious. While over the long term, factoring
common functionality into separate products that other
products depend on makes more sense, and creates a *much*
more powerful framework, in the interim (waiting for things
to jell) it can frustrating as all get-out, and pretty easy
to get stuck.

Conversely, that things about Zope that are relatively
mature are a dream to use and leverage, so this is an
acceptable trade-off for me.

Cheers,

Michael Bernstein.

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




Re: [Zope] Collector Product ??

2001-01-13 Thread Michael Bernstein

Peter Bengtsson wrote:
> 
> I'm looking for a bug-tracking-software-system.
> Does DC give out their Collector (http://classic.zope.org:8080/Collector) Product 
>for free for us? Where can it be downloaded?
> Is there anybody out there who would care to share their product with me? ;)

The collector has been superseded by the Tracker. It's an
unsupported product, but you can get it through CVS:
http://www.zope.org//Members/klm/TrackerWiki/FrontPage

Here's another one, a bit less sophisticated, but easier to
set up and use:
http://www.zope.org/Members/shalabh/iTrack

HTH,

Michael Bernstein.

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




Re: [Zope] Newbie question: HTTP variables

2001-01-13 Thread Michael Bernstein

Dean & Deb Ekstrand wrote:
> 
> I'm trying to figure out Zope (on a time crunch, too), and I'm wondering how
> to do something.  How can I access HTTP variables in my DTML code?
> Specifically, I want to return code specific to the user's browser.  I know
> that HTTP has provisions for determing browser version, are those accessible
> in DTML and how?  If they are not accessible in DTML, is there a workaround
> (without oodles of javascript)?

these variables are part of the REQUEST namespace.
Specifically you can do

 to display the browswer
version. Creating conditional code is left as an excersize
for the student.

If you want to display a complete list of all HTTP REQUEST
variables, try this:



> Another quick question:  I see that Zope 2.3 will have "Script" objects.
> What's the closest I can come in Zope 2.2.5?

The Python Method product:
http://www.zope.org/Members/4am/PythonMethod

Or external methods:
http://www.zope.org/Documentation/How-To/ExternalMethods

HTH,

Michael Bernstein

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




Re: [Zope] First Project

2001-01-03 Thread Michael Bernstein

Koch Marc wrote:
> 
> Please let me ask your advice on how to realize the following:
> 
> I would like to build an application for handling development requests.
> These requests should be submitted by our end-users through our Intranet to
> my team. We then look at each new request and dispatch it to one or more
> development team for approval (or rejection). At this stage:
> - The end-user should be able to see that his request has been dispatched
> - The concerned development team(s) should see that there is a new request,
> they could look at it and accept it or reject it and give a comment
> When all the teams have replied, my team would add a summarized comment to
> the request and the end-user should be able to see this. At this point, the
> request handling for my team is at its end.
> 
> Requests should be submitted by a Web-Form and may contain an arbitrary file
> (eg. Word Document).
> The end-user and the development team should see only what they are
> concerned with.
> My team needs a global overview.

Check out the Tracker product:

http://www.zope.org/Members/klm/TrackerWiki/FrontPage

HTH,

Michael Bernstein.

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




Re: [Zope] tuples in DTML

2000-12-27 Thread Michael Bernstein

Max M wrote:
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Bernstein
> 
> >
> >  
> >
> 
> >Which (of course) displays the list as an single item along
> >with each of the strings:
> 
> >  ['list item 1', 'list item 2', 'list item 3']
> >  String 1
> >  String 2
> >  String 3
> 
> >Now, how do I iterate over the list in DTML?
> 
> 
> 
> blah blah  
> 
> 
> Something like the above ought to work.

Mmm, It doesn't seem quite right. If I do it that way, I'll
have to run the external method more than once, and it's a
relatively expensive method. I'm opening an HTTP connection
and processing the page to extract the data that is getting
put into the tuple.

What if I do:


 
  
   
  
 
 
 

Ok, this works!

Thanks for the help,

Michael Bernstein.

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




Re: [Zope] is it possible to import from Excel

2000-12-27 Thread Michael Bernstein

K H Subrahmanyan wrote:
> 
> Hello,
> 
> Now we have developed some database using gadfly in zope.
> Actually there are some datum which are there in Excel. I would like to know
> is it possible to import all that datum from Excel to zope database, instead
> of giving all the data to zope manually.
> 
> Actually all those data are the Emp. records. Currently they are
> maintaining it in Excel. Now they want to make it web based stuff. We have
> developed a tool for that.
> Since all that data are there in Excel I wanted some stuff to import that.
> Hoping your reply.

I seem to recall that once-upon-a-time DC had a tool/product
called Tabula for this purpose. Maybe they'll haul it out of
storage for a consulting engagement.

HTH,

Michael Bernstein.

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




Re: [Zope] tuples in DTML

2000-12-26 Thread Michael Bernstein

Michael Bernstein wrote:
> 
> Hi everybody,
> 
> I've been messing with some external methods and I've got
> one that returns a tuple. The tuple consists of a list and a
> few strings.
> 
> How do I access the tuple elements from DTML?

Ok, I've been messing with it some more and I should have
tried simply iterating over the tuple elements before:


  


Which (of course) displays the list as an single item along
with each of the strings:

  ['list item 1', 'list item 2', 'list item 3']
  String 1
  String 2
  String 3

Now, how do I iterate over the list in DTML?

Michael Bernstein.

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




[Zope] tuples in DTML

2000-12-26 Thread Michael Bernstein

Hi everybody,

I've been messing with some external methods and I've got
one that returns a tuple. The tuple consists of a list and a
few strings.

How do I access the tuple elements from DTML?

Cheers,

Michael Bernstein.

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




Re: [Zope] Editing the z2.py File

2000-12-22 Thread Michael Bernstein

Stephane Bortzmeyer wrote:
> 
> - do not make *one* mistake in the "root" method code or you will lose access to 
>your Zope completely (that's the big problem with all-database systems like Zope). 
>Even FTP access will fail, you will have to retrieve your ZODB from backups!

Umm, even if *everything* else fails, you can still manually
truncate the Data.fs file to remove the last transaction
(presumably the change you made to the access rule), and
you'll be back to normal.

That's one of the things that I really appreciate about
Zope, that it's practically (though not absolutely) immune
to unrecoverable data corruption.

HTH,

Michael Bernstein.

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




Re: [Zope] Help save my sanity (DTML-in string comparison)

2000-12-18 Thread Michael Bernstein

Darin Lee wrote:
> 
> Zopistas,
> 
> I am trying to build a simple, 2 tier, tree-style navigation structure for my site. 
>I have puzzled over the following code for hours, and it's just not working right. I 
>have two loops, one that goes through the Parents, and when the parent matches the 
>current folder, I go through the children (There are 2 scripts, one that resides one 
>level up and presents a simple list of objects to click on) The following code lives 
>in the child folders, and displays the parents and all of the HTML documents in the 
>current folder.
> 
> The output I am looking for resembles below.
> 
> [snip]
> 
> ¯--
> BTW, I have tried the NFGNav product, but It doesn't work in my application (I 
>suspect) because I am using transparent folders to organize things. I also want my 
>NAV to start farther down the heirarchy (level 2), not from the root.

Try ZNavigator, instead.

HTH,

Michael Berrnstein.

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




Re: [Zope] SiteAccess and Roles

2000-12-18 Thread Michael Bernstein

The Doctor What wrote:
> 
> * Michael Bernstein ([EMAIL PROTECTED]) [001215 10:05]:
> > The Doctor What wrote:
> > Ok, then problem may be in your SiteRoot. What are the
> > settings there?
> 
> Really?  I wouldnt't have suspected the SiteRoot. lesse
> 
> Interesting.  It now works, if I fill in the Base.  Before, I
> had *nothing* in the SiteRoot access.  Simply putting a Base in
> and bing-bang-boom, it works!
> 
> Thanks for the help.  Though the impression I got from the
> documentation is that this should have worked with the defaults
> 
> Perhaps I don't understand exactly what Base and Path in a SiteRoot
> actually do

Base replaces the portion of your URL comprised of the
protocol and fully qualified domain name:
'http://www.servername.com' becomes
'http://www.yourhostedsite.com'.

Path replaces the rest of the URL up to and including the
folder containing the SiteRoot: '/hosted_sites/site1/'
typically becomes '/'

So the object that would have been published as
'http://www.servername.com/hosted_sites/site1/', now becomes
'http://www.yourhostedsite.com/'.

Both of these settings affect such environment variables as
BASEx and URLx which construct URL fragments for use in
DTML.

The Access Rule only redirects requests from one object to
another by manipulating the stack, it doesn't affect the
REQUEST namespace.

You would generally be better off leaving the SiteRoot out,
rather than putting one in and leaving it's properties
blank.

Does this help?

Michael Bernstein.

P.S. If you want to see exactly what the SiteRoot is doing,
add a DEBUG method to your folder. the DEBUG method should
contain . View the method both with and
without the SiteRoot.

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




Re: [Zope] Fw: Zope.org feedback

2000-12-17 Thread Michael Bernstein

Bill Anderson wrote:
> 
> Bill Anderson wrote:
> ...
> > The archives show that Loren was using this term for this usage by
> > nearly a month. if nothing else, the timing of the application
> > coinciding with the introduction of the term by Loren is at best
> > suspicious. In fact, it occurs on the very day that Loren made the
> > announcement of the howto.
> 
> And according to the USPTO:
> 
> Federal registration is not required to establish rights in a trademark.
> Common law rights arise from actual use of a mark. Generally, the first
> to either use a mark in commerce or file an intent to use application
> with the Patent and Trademark Office has the ultimate right to use and
> registration.

Sorry, but 'breadcrumbs' as a description of various types
of web-navigation features has been in use quite a bit
longer than this. Try searching http://www.useit.com/ for
the term 'breadcrumbs' and you'll come up with some
documents dating to 1994.

So Loren does not 'win', except that this Charles Knerr
person has absolutely no claim on the term.

Michael Bernstein.

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




Re: [Zope] SiteAccess and Roles

2000-12-15 Thread Michael Bernstein

The Doctor What wrote:
> 
> * Michael Bernstein ([EMAIL PROTECTED]) [001214 01:06]:
> > I read your access rule, and it seems like you've got it set
> > up to ignore the gTLD, so that www.gerf.org and www.gerf.com
> > etc. get routed to the same object automatically. Is that
> > correct?
> 
> Yes.  I have several sites that use that feature, and none that
> don't.  It's actually really handy, as it's one line in my
> siteaccess rule vs. several in my apache config. :-)

Ok, then problem may be in your SiteRoot. What are the
settings there?

Michael Bernstein.

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




[Zope] Anothe Zwiki bug

2000-12-15 Thread Michael Bernstein

I've found that if you name a structured Zwiki folder with
an id that has a space in it, that the link on child pages
that is supposed to go to the root page of the folder (ie.
FrontPage) replaces the space with '%2520' instead of '%20',
which breaks the link.

HTH,

Michael Bernstein.

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




Re: [Zope] SiteAccess and Roles

2000-12-13 Thread Michael Bernstein

The Doctor What wrote:
> 
> I have site access running, but I apparently don't fully grok roles.
> 
> I have a directory layout like so:
> 
> /ZopeRoot
>   /site1
>   /site2
>   /site3
>  /user_acl(2)
>   /user_acl(1)
> 
> My site access rule is at:
> http://linuxasm.gerf.org:9673/siteid/view_source
> All the site[123] directories are SiteRooted and work fine.
> 

I read your access rule, and it seems like you've got it set
up to ignore the gTLD, so that www.gerf.org and www.gerf.com
etc. get routed to the same object automatically. Is that
correct?

Michael.

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




Re: [Zope] LoginManager broken?

2000-12-11 Thread Michael Bernstein

"Mayers, Philip J" wrote:
> 
> Thanks, I'll take a look.
> 
> Re: LoginManager - After a fast turnaround (confirming my ample faith in
> Open Source software) Magnus Heino pointed me in the right direction - the
> dtml methods and SQL objects need to be inside the UserSource folder, *not*
> the LoginManager folder as the Howto implies (or maybe I just can't
> read...). Can someone confirm that the SQL methods need to be inside the
> UserSource folder? (which is mildly annoying, but there we go...)
> 
> I'm still having some problems getting multiple roles working, but it's
> behaving itself for now. Now all I have to do is solve my LIMIT problem...

If you're having dificulties getting LoginManager to work
with the local roles management interface, maybe this
solution (which I only tested using LoginManger+Membership)
will help:

http://lists.zope.org/pipermail/zope-dev/2000-September/006953.html

I ahve no idea how this would work with SQL users, but
hopefully it'll give you a clue.

HTH,

Michael Bernstein.

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




Re: [Zope] ZClass with images

2000-12-10 Thread Michael Bernstein

Diego Rodrigo Neufert wrote:
> 
> Anyone know how to put some images in  ZClass? I have done things like
> putting ZClass with base class OFS:Image but with it I can only assing one
> Image do the object... I need to assign two or tree images do the object.

I've been thinking about something similar myself. I'd like
to create a ZClass/ZPatterns version of the Photo and
ZPhotoAlbum products (or at least a reasonable equivalent).

Specifically, I'd like to incorporate the functionality
that, upon instantiation of the object, creates the
neccesary sized versions and stores them. I'd like to use
ZPatterns to be able to switch the storage between the ZODB,
the file-system, or BLOBs in an RDBMS without altering the
rest of the application.

Any progress that you make would be very helpful to me.

Michael Bernstein.

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




Re: [Zope] authenticate user

2000-12-01 Thread Michael Bernstein

"Sven B." wrote:
> 
> hi,
> why this code isn't working anymore in zope 2.2.4
> 
> 
  
^

If this is an actual copy & paste from your code, I think
that the misspelling above might have something to do with
it.

HTH,

Michael Bernstein.

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




Re: [Zope] Re: DC and the PTK?

2000-11-30 Thread Michael Bernstein

Paul Everitt wrote:
> 
> I'll take the blame on this miscommunication.  I'm the one that told
> Gary not to take support contracts on PTK.
> 
> We have a nearly ironclad support policy: we don't support stuff that
> isn't official.  We won't support ZDiscussions, for instance.  If we had
> to support everything we made available, then we'd stop making as much
> stuff available.
> 
> Consulting, on the other hand, is a different story.  As Ethan noted, we
> use PTK stuff in our consulting engagements, because we are directly
> involved in the development of the solution and know where the bodies
> are buried. :^)

Ok, then. What is the difference (or the line) between
support and consultation? And on which side of it does a
plea of "Please help me make this work, I've got money"
fall? I've certainly been in the position of trying to get
something to work, and asking "How much to fix this?"
without even getting a response.

Michael Bernstein.

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




Re: [Zope] New Zope.org

2000-11-30 Thread Michael Bernstein

emf wrote:
> 
> Zopatistas!
> 
> Zope.org is finally living in its new home.
> 
> Right now, you may be getting zope.org through the old apache, so don't
> be surprised if it's a tad slow.  By late tomorrow, just about
> everybody's dns should have updated to the new IP address.
> 
> If you want to know, do a nslookup www.zope.org: you should get
> 63.102.49.33 as your answer.
> 
> When I finally wake up tomorrow, the first thing I'm going to do is
> start working on a write-up of what the new zope setup is all about.

Was this the 'stealth' project?

Michael Bernstein.

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




Re: [Zope] jcNTUserFolder on 2.2.x

2000-11-30 Thread Michael Bernstein

Toby Dickenson wrote:
> 
> On Mon, 20 Nov 2000 14:20:41 -0800, "Andy McKay"
> <[EMAIL PROTECTED]> wrote:
> 
> >Is there an updated version or product similar to jcNTUserFolder (allowing
> >NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have
> >to upgrade jcNTUserFolder?
>
> API changes in 2.2 (and future developments, like PTK) make custom
> user folders less attractive than they used to be. If you intend
> committing some time to this then I recommend something based on
> http://www.zope.org/Members/tsarna/LoginManager
> 
> The simplest change would be to transplant the authentication code out
> of (jc)NTUserFolder and into LoginManager methods. However that would
> still only run on NT.

Important:

After you get authentication working the way you want it,
you'll have to fix your LoginManager to integrate with the
existing local roles machinery. Here's a link to help you
out:
http://lists.zope.org/pipermail/zope-ptk/2000-September/001739.html

HTH,

Michael Bernstein.

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




Re: [Zope] FYI: Digital Creations secures $12M round of investment

2000-11-14 Thread Michael Bernstein

Paul Everitt wrote:
> 
> Hello Zope friends.  At long last we at Digital Creations are able to
> publicly say it: we've closed a $12M round of investment:

Congratulations, Paul. Vindication is sweet. Looking forward
to DC's continued development as a company.

Michael Bernstein.

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




Re: [Zope] Can't get to work in a sub-folder.

2000-11-12 Thread Michael Bernstein

[EMAIL PROTECTED] wrote:
> 
> Howdy Folks,
> 
> I'm trying to make use of the  gizmo and it only works in
> the root directory.
> 
> I'm trying to create a dynamic navigation display so users can click
> their way through the sub-directories of files. Kind of a
> "Zope Explorer".

Maybe this will help:

http://classic.zope.org:8080/Documentation/HowTo/DTML/treetag

Michael Bernstein.

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




Re: [Zope] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Michael Bernstein

Chris Withers wrote:
> 
> Hamish Lawson wrote:
> > Zope regards as a method a Zope Method? That would then give us Python
> > Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
> > Is it too late to add the option for Python Zope Method to the poll?
> 
> All too long an unwieldy... glad to see the -lets have died.
> Sad to see neither Python Block nor Python Op(eration) seem so be
> gettign there since they most accurately describe what these things are,
> IMVHO...

Thanks for the vote, Chris... :-)

If the poll gets re-run, I'd like to add 'Python Code Block'
as another contender.

Michael Bernstein.

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




Re: [Zope] siteaccess, hosting etc, sanity check

2000-10-31 Thread Michael Bernstein

Jonathan Cheyne wrote:
> 
> Ok, well I got some success by eliminating apache and using the site accesss
> example methods and an access rule.
> 
> but.
> 
> is this a lower performance solution than fronting zope with apache?

The short answer is: "Only in some special cases".

An example of such a 'special case' is if you want certain
static files to be served directly by apache, and not by
Zope. Or maybe you just like Apaches log-files better ;-)

If the stuff that Apache was going to be fronting for was
coming out of Zope anyway, then there is no difference.

You may want to keep Apache around for certain things, just
use IP hosting for your root folder (no Virtual hosting) and
have the Access Rules and SiteRoots take care of both
blue.com and red.com in sub-folders. that's what i'm doing
on the Zope I'm hosting at CodeIt.com.

HTH,

Michael Bernstein.

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




[Zope] Paul comments on the PythonLabs Move

2000-10-30 Thread Michael Bernstein

Check out his comments here:

http://weblogs.userland.com/zopeNewbies/discuss/msgReader$831

Cheers,

Michael Bernstein.

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




Re: [Zope] How to display PDF files

2000-10-30 Thread Michael Bernstein

Alan Johnston wrote:
> 
> At any rate, how do you get ZServer to
> send a 'raw' PDF file to the browser so that the browser's Acrobat plug-in
> can display it?  I tried creating 'File' and 'Image' objects.  That's
> obviously not it.

'File' should work. Are you naming the 'File' object with a
.pdf suffix?

HTH,

Michael Bernstein.

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




Re: [Zope] siteaccess, hosting etc, sanity check

2000-10-30 Thread Michael Bernstein

Jonathan Cheyne wrote:
>
> my various settings ...
> 
> NameVirtualHost 111.222.333.444
> 
> 
>   ServerName www.red.com
>   ProxyPass / http://www.blue.com:8080/red
>   ProxyPassReverse / http://www.blue.com:8080/red
> 
> 
> then in /red we have a siteroot with the following
> 
> title:
> base: http://www.red.com
> path: /

Jonathan,

Do you have an Access Rule set up in your root Zope Folder?

Michael Bernstein.

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




Re: [Zope] The Great Python (and Perl) Method Renaming Poll

2000-10-24 Thread Michael Bernstein

Michel Pelletier wrote:
> 
> We will be conducting a community poll to decide what to call Python
> (Perl, insert your language here) Methods.
> [snip]
> So, before the poll, we are calling for nominiations from the
> community.  Please send me an email containing one or more candidate
> names.  These names will be added to the list.  No pre-screening will be
> done, so please exercise some discretion if your favorite name is more
> tounge-in-cheek than practical (you never know what the masses will
> decide though!).
> 
> Later this week, I will create a web poll where you can vote for your
> favorite.

I would like to suggest that instead of a plurality vote, we
use a 'Borda count', also known as an 'preferential' or
'single-transferable' ballot. Those of you who followed the
recent ICANN election should be familiar with it.

It works like this:

All votes consist of ranking the availble choices according
to desireability (if there are six choices, you would number
them 1-6, each choice must be uniquely ranked, not all
choices must be ranked).

All voters first choices are tallied. If, at this point, one
choice has achieved over 50% of the vote, the vote is over.

If no choice has achieved 50%, the choice with the fewest
votes is removed, and the voters who voted for that choice
have their second choice counted and distributed. If at this
point one of the choices acheives 50%...etc. Lather, Rinse,
Repeat.

This method has the advantage of better representing peoples
true choice, since no one is tempted to vote for a choice
that they simply disapprove of less, because 'otherwise
they're throwing away their vote'.

In a five-way race for example, a plurality may consist of
25% of the vote, thereby ensuring that 75% of the voters
will be pissed off. With a Borda count though, the winner
could be everyone's second-favorite choice, thus better
representing what people want.

There's a few other wrinkles to this, such as situatuions
where not all choices have been ranked. If a voter has only
ranked four choices and a fifth runoff phase is neccessary,
their ballot is discarded, and the 50% mark is recalculated
for that phase to account for the reduced number of ballots.

Cheers,

Michael Bernstein.

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




Re: [Zope] Bypass ZODB and use File System

2000-10-19 Thread Michael Bernstein

Noah wrote:
>
> What we really want to do is to provide a second view to
> /var/www/htdocs for Apache. I understand that Apache won't
> serve up our dynamic content, but that's not important.
> Zope is just viewed as a better solution for managing our
> static documents. The problem we have in my organization is
> that there is a lot of resistance to my prototype Zope
> document management system due to the fact that everything is
> stored in ZODB. We think this risky -- possibly a data prison.

The way my organization does it, is to manage the content
within Zope, and to regularly run 'wget' on the server to
replicate it all to static files, which are then served by
Apache on another server. Doing that, plus regular backups
of the Data.fs file (you're already making regular backups
of your Apache based system, right?), and you should be
guarded against any but the most catastrophicly unlikely
disaster scenarios (you do have a disaster recovery plan,
right?).

wget is really a very easy way to get documents back out of
Zope, and if your system is designed to do this as a matter
of course (perhaps by using 'cron'), it should silence those
particular criticisms.

> Also people don't want to change from their current habits of
> editing files via NFS or Samba mounted directories. My original
> plan was to allow them some sort of syncronization process,
> but now I think that would be crazy.

Hmm. I guess it depends on what percentage of your users
want to keep doing this. You can certainly combine LocalFS
with the approach that I outlined above. I would make it a
special case. Keep the CMS server separate from the Apache
server, and only allow the mounted directories on the CMS
server. I've found that people appreciate being able to
manage their content from anywhere through a browser, and
they tend to gravitate toward that as a matter of course,
once it's there, if they're not forced to do it.

In short, give people options, and see which ones they
actually use.

HTH,

Michael Bernstein.

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




Re: [Zope] Determining permissions in a Product

2000-10-19 Thread Michael Bernstein

Chris Withers wrote:
> 
> When the dialog box pops up, hit cancel and see what authorization
> failed on.
> That should give you some clues as to what needs fixing.
> 
> Incidnetally, I think this is a bit of a security hole. You shouldn't
> get told what you're not allowed to see, especially if it's 'cos you got
> your password wrong. If you see what I mean ;-)

I see what you mean here, Chris, but wouldn't this come
under the heading of a 'security through obscurity' hole?
ie. you're saying that the system isn't obscure enough?

Michael.

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




Re: [Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Michael Bernstein

Chris Withers wrote:
> 
> Toby Dickenson wrote:
> > Those people were concerned that too many things were exposed via
> > ZPublisher also My interpretation was that the issue is one of
> > access control, not publishing protocol.
> 
> I think the issue is that you can't limit the visibility of objects
> right now.
> You can limit their access easily enough (or more tortuously if you
> don't want people to access the bits of a page on their own
> (standard_*,etc) via a complex web of proxy roles and required
> permissions) but there doesn't appear to be any easy way to say "right,
> I want this object exposed for reading and writing via FTP and reading
> via HTTP, while this one shouldn't be URL traversable but I'd like to
> edit it via WebDAV and this method is for use via XML-RPC but really
> shouldn't be visible anywhere else.)

It seems like this can be handled rather well by simply
adding a 'XML-RPC access', a 'SOAP access' and a 'WebDAV
access' set of permissions. we already have a 'FTP access'
permission  which works fine. Thse could then be matched
with appropriate 'view' permissions as well.

On a slightly different note, I think that the permissions
list should be viewable in two more ways: A view where
permissions are grouped into 'subjects', (for example all
the ones I just mentioned should go into a 'access protocol'
subject and possibly a 'view protocol' subject) and another
view where permissions are grouped according to the roles
that have them. These different views should all be on the
same tab, with hyperlinks to switch between them (sort of
like the 'local roles' screen is linked from 'security').

Michael Bernstein.

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




Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Michael Bernstein

Charlie Wilkinson wrote:
> 
> Michael Bernstein  <[EMAIL PROTECTED]> wrote:
> > > Wilkinson Charlie E wrote:
> > >
> > > It all began when I was a small child, but I'll skip ahead
> > > a bit
> >
> > I almost hate to say this, since your post is an interesting
> > one otherwise, but please don't send HTML email to the list.
> > Some of the people here don't use HTML-capable mail clients.
> 
> 
> 
> I'm not a dummy.

I didn't mean to imply that you were.

> [snip experience] 
>
> BUT I CAN'T SHUT OFF HTML IN OUTLOOK TO SAVE MY MISERABLE F*ING LIFE
> 
> [snip attempts to supress HTML]
> 
> My suspicion is that some well meaning but deranged
> Exchange SMTP gateway server is doing the conversion, as there's a meta
> tag that says the HTML generator is Exchange.  I've tried talking to
> the people who run the servers, but they are clueless and keep saying
> it's something I'm doing.
> [snip]
> 

Monday I'll check with our sysadmin and take a look at the
Exchange Management UI myself. If I can identify the correct
'knob', I'll let you know, so you can pass this information
along to your server admins.

Meanwhile, you could use a free web-mail account, and just
set the Reply-To or CC to your actual email address. I like
netaddress.com (no Reply-To, though).

Michael Bernstein.

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




Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Michael Bernstein

> Wilkinson Charlie E wrote:
> 
> It all began when I was a small child, but I'll skip ahead
> a bit 

I almost hate to say this, since your post is an interesting
one otherwise, but please don't send HTML email to the list.
Some of the people here don't use HTML-capable mail clients.

Thanks,

Michael Bernstein.

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




Re: [Zope] Can Free Software Manage Your Web Site?

2000-10-07 Thread Michael Bernstein

"Steven D. Majewski" wrote:
> 
> Inside magazine <http://www.inside.com/> has a feature on Zope:
>"Can Free Software Manage Your Web Site?"

Here's the direct link:
http://www.inside.com/story/Story_Cached/0,2770,10617_13_32_1,00.html

Michael Bernstein.

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




Re: [Zope] 'Offline' mailhost

2000-10-07 Thread Michael Bernstein

"Jan H. Haul" wrote:
> 
> Each of these will be around 42 KByte large.
> 
> Huh? Why that? you ask.
> Because in the header of each mail, the whole recipient list will
> be listed under To: or Cc:
> [snip]
> - privacy: You would not like to have "your" recipients end up on
> other people's mailing lists

What about using BCC: ?

Michael Bernstein.

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




Re: [Zope] sorting problem

2000-09-29 Thread Michael Bernstein

Tim Cook wrote:
> 
> Michael Bernstein wrote:
> >
> > Here's my problem: I want to sort a list of objects on a property that
> > not all items have. So I'm doing this:
> >
> > 
> >
> > The problem is that those items that have a blank someProperty are
> > listed first, when I want them at the bottom of the list. I don't want
> > to reverse the entire sort order, I just want blank values treated as
> > being larger than any other value.
> 
> Insert a chr(255) as the first character by default. It'll need
> to be trimmed off if the property becomes populated.

Sounds good, how do I do that?

Michael Bernstein.

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




[Zope] sorting problem

2000-09-28 Thread Michael Bernstein

Hello all,

Here's my problem: I want to sort a list of objects on a property that
not all items have. So I'm doing this:



The problem is that those items that have a blank someProperty are
listed first, when I want them at the bottom of the list. I don't want
to reverse the entire sort order, I just want blank values treated as
being larger than any other value.

Any suggestions?

Michael Bernstein.

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




[Zope] Re: [ZCommerce] looking for developers on a project !

2000-09-18 Thread Michael Bernstein

Jsacks wrote:
> 
> our company is looking to customize the current zope software into a
> particular e-commerce solution. if you would like to participate in
> this project please let us know. you can respond to this email or
> call 412-401-9510 thanks!

You know, you'd probably get better responses (quantity and quality) if
you stated a few things up front:

- Will the software resulting from this project be open-sourced?
- What kind of ecommerce solution is this going to be, and will it
  be generally useful for many different ecommerce sites?
- Who are the people already involved in this project?
- What sort of help do you need?
- What stage is the project at right now (requirements, architecture
  , detailed design, or implementation)?

Hoping for more details,

Michael Bernstein.

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




Re: [Zope] OT: Website design / spec / development resources

2000-08-27 Thread Michael Bernstein

"J. Atwood" wrote:
> 
> Hey Zopers,
> 
> I am looking for some good guidelines in designing, spec'ing and
> developing large complex websites. Anything like guidelines, steps,
> howtos, etc would be much appreciates. From theory to practice.

The first book on this subject that opened my eyes was
'Secrets of Successful Websites', which in particular offers
advice on the many pitfalls that a web project can face
(with case studies), and reccomended procedures for handling
and/or avoiding them. It's getting a bit dated (1996), but
still has a lot of valuable advice.

Two O'Reilly books that I have found very helpful are
'Information Architecture' and 'Designing Navigation for the
Web', both of which will help keep your sites well organized
and easily navigable by end users.

Another good book is 'Website Usability - The Practice of
Simplicity' which will help keep your sites users happy and
productive.

A recent book that I've found useful, though not as original
as some of the others I've mentioned, is 'Great Web
Architecture'.

I have other, more specific suggestions, but it would help
if you could say at least what types of sites you're
attempting to design.

BTW, I heartily concur with the recomendation made by Kapil:
'Philip and Alex's Guide to Website Publishing' is a
monumental tour-de-force, and should definitely be read by
anyone who wants to work in the web industry, even though I
think that some of his technical reccomendations are a
little close-minded (ie. 'Use Oracle and big Sun Iron').

I hope these help you as much as they did me.

Michael Bernstein.

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




[Zope] Accesing a new context from a manipulated string

2000-06-30 Thread Michael Bernstein

Here's my problem:

given a method itemURL(), that typically returns a site
relative URL such as '/about/', I need to change to the
appropriate directories context using .

In short I need to do the equivalent of .

The closest I've gotten so far is:



which generates a KeyError: /about/ in the traceback.

Can anyone help me truncate the extra '/'s off of this
string and pass it to the ?

Michael Bernstein.

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




Re: [Zope] WebObjects

2000-06-07 Thread Michael Bernstein

Chris Withers wrote:
> 
> Michael Bernstein wrote:
> > As I recall (from a WebObjects demonstartion I sat through a
> > long time ago), WO creates the most godawful mangled URLs
> > that I had ever seen. As a result, a WO site cannot be
> > spidered by search engines, or converted to a static copy
> > using wget.
> 
> Zope's not too hot on this either what with index_html instead of
> index.html the problem of "is /something' a 'file' or a 'folder' from
> wget's point of view?"

Wget would regard /something as a file. bur it would regard
/something/ as a default document in a folder.

> IIRC, it currently would download a zope folder object as a single file
> :(
> 
> I've also been bitten by this in Wiki's since links aren't generated
> with absolute_url and so I sometimes get
> /MyWikiFolder/OneWikiPage/AnotherWikiPage which throws up a nasty
> __getitem__ exception (particularly in Netscape, which seems to like
> appending / onto the end of FrontPage in the URL box...)

This sounds like a Wiki problem rather than a Zope problem.

As Zope will access /something and /something/ the same,
it's trivial to make sure that all URLs that link to an
object include a trailing /.

Wget assumes that when it crawls to a something/ location
that it is accessing the default file for the directory, so
it saves the resulting page as something/index.html .

Whatever webserver you use can be set to regard index.html
as the default file, so the link (which is still pointing to
/something/) will work just fine.

The only problem crops up with inline links that don't
conform to the /something/ format. All automatically
generated links (as in navigation bars) on the sites I
create end with a trailing /.

Cheers,

Michael Bernstein.

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




Re: [Zope] WebObjects

2000-06-07 Thread Michael Bernstein

Luciano Ramalho wrote:
> 
> [snip]
> The object-relational mapping mechanism WO uses, however, is very advanced and,
> in a basic level, easy to use too. Classes are written in Java by a case-like
> tool and automatically bound to tables. In fact, programmers rarely have any
> contact with SQL: all necessary queries are generated automatically by the IDE
> (which runs only on NT and MacOS X).
> [snip]

As I recall (from a WebObjects demonstartion I sat through a
long time ago), WO creates the most godawful mangled URLs
that I had ever seen. As a result, a WO site cannot be
spidered by search engines, or converted to a static copy
using wget.

HTH,

Michael Bernstein

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




Re: [Zope] Images and tag tag

2000-05-28 Thread Michael Bernstein

peter wrote:
> 
> I use the nifty Image object and an extra tag to it.
> like this
> 
> 
> But what I want to do is this:
>  ONMOUSEUP="document.bgColor='#FFCCFF'" SRC="myimage_gif" width=118
height=77
> border=0>
> 
> I have tried
> 
> This is not supported the tag tag. Only border, width, height and
alt can be
> used.

Try the ActiveImage product:
http://www.zope.org/Members/admin/ActiveImage

I think it'll do what you want.

HTH,

Michael Bernstein.

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




Re: [Zope] ANN: Perl For Zope

2000-05-26 Thread Michael Bernstein

Oleg Broytmann wrote:
> 
> On Thu, 25 May 2000, Kevin Dangoor wrote:
> > People who are big fans of python aren't forced to use those Products, but I
> 
>Very soon we'll be forced, 'cause most Products will be in Perl (yse,
> I've read the FAQ and saw "no Perl Products"; it's temporary, mark you).

'Perl Products'? Perhaps not. 'ZClass Products' that are
built with Perl Methods? Almost certainly yes.



Michael Bernstein.

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




Re: [Zope] ANN: Perl For Zope

2000-05-26 Thread Michael Bernstein

Chris McDonough wrote:
>
> Sheesh, it's like we'd recommended Microsoft in here or something.  :-)

In you hadn't noticed, ActiveState already has dealings
'with the dark side'.

Integrating Visual Python into MS Visual Studio:
http://www.activestate.com/Corporate/Media_Center/News/Press959117519.html

A binary only release of Python:
http://www.activestate.com/Products/ActivePython.html

I won't bother putting in a Yoda quote about the dark side
being easier, not stronger... ;-)

Michael Bernstein.

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




[Zope] Re: [Zope-Moz] Good news for Zope/Mozilla efforts!

2000-05-24 Thread Michael Bernstein

Paul Everitt wrote:
> 
> David was going to check to see if the embedded Python could import C
> extensions.  If it could, I know of a little object publishing
> environment that could run in Mozilla. :^)

Holy $#*! That would make it possible to replace Frontier on
the desktop!

Michael Bernstein.

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




Re: [Zope] Fw: ZTopics and Canned Queries

2000-05-20 Thread Michael Bernstein

Shalabh Chaturvedi wrote:

> What I want to do is create: (creator : creatorName)
> And use http://url/FilterCreator?creatorName=shalabh
>
> Currently ZTopic does not allow me to create an object like above as it tries
> to evaluate the query at creation time.
> 
> I have modified my local copy of ZTopics to do what I need. Now I have an extra
> checkbox that allows creation of 'parameterized' ZTopics. When it is checked,
> caching is turned off and REQUEST is also looked up during construction of the
> query at run time.
> 
> Does anyone else find this useful? I know this product is unsupported but is it
> possible (or worth it) to submit this as a patch?
> Are there other products that might achive the same (any kind of 'search
> objects' or 'canned queries')?

This sounds interesting. How would this end up being
different from doing a ZCatalog search, though?

In any case, You probably want to submit a patch to Amos
Latteier ([EMAIL PROTECTED]).

HTH,

Michael Bernstein.

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