[Zope] Re: Re:[Zope] ZFormulator

2000-10-26 Thread Andy McKay

There was a problem with the ODBC adapter under 2.2.0 where the permissions
werent applied properly. There was a patch that was then incorporated into
later releases 2.2.1 onwards.

- Old Message 

In case anyone else didnt read my thread there is an apparently known but
not seemingly well documented problem with ODBC in Zope 2.2. The solution is
here:

Index: RDB.py
===
RCS file: /cvs-repository/Zope2/lib/python/Shared/DC/ZRDB/RDB.py,v
retrieving revision 1.24.32.1
retrieving revision 1.24.32.2
diff -c -r1.24.32.1 -r1.24.32.2
*** RDB.py 2000/07/12 17:38:03 1.24.32.1
--- RDB.py 2000/07/17 15:03:55 1.24.32.2
***
*** 85,92 
  __doc__='''Class for reading RDB files


! $Id: RDB.py,v 1.24.32.1 2000/07/12 17:38:03 brian Exp $'''
! __version__='$Revision: 1.24.32.1 $'[11:-2]

  import regex, regsub
  from string import split, strip, lower, upper, atof, atoi, atol, find,
join
--- 85,92 
  __doc__='''Class for reading RDB files


! $Id: RDB.py,v 1.24.32.2 2000/07/17 15:03:55 brian Exp $'''
! __version__='$Revision: 1.24.32.2 $'[11:-2]

  import regex, regsub
  from string import split, strip, lower, upper, atof, atoi, atol, find,
join
***
*** 123,128 
--- 123,132 
  """Class for reading RDB files
  """
  _index=None
+
+ # We need to allow access to not-explicitly-protected
+ # individual record objects contained in the result.
+ __allow_access_to_unprotected_subobjects__=1

  def __init__(self,file,brains=NoBrains, parent=None, zbrains=None):


--
 Andy McKay, Developer, ActiveState
 http://www.ActiveState.com
 Programming for the People



___
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 )


- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 11:50 PM
Subject: Re:[Zope] ZFormulator


Hi,
we have had a similar problem with ODBC adapter under
Zope 2.2.0 and we couldn't fix it. But under 2.2.2 we
didn't have that problem again.
  Arno
  [EMAIL PROTECTED]


> Hi Martijn, and Zope Fans,
>
> I'm using ZFormulator and having problems with permissions
> on Zope v.2. The sign-on dialog pops-up when a user
> attempts to edit a form, but the correct name and password
> are rejected. Has anyone found a little detail that needs
> tweking to get past this one?
>
>



___
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] ZFormulator

2000-10-25 Thread administrator

Hi,
we have had a similar problem with ODBC adapter under
Zope 2.2.0 and we couldn't fix it. But under 2.2.2 we
didn't have that problem again.
  Arno
  [EMAIL PROTECTED]


> Hi Martijn, and Zope Fans,
>
> I'm using ZFormulator and having problems with permissions
> on Zope v.2. The sign-on dialog pops-up when a user
> attempts to edit a form, but the correct name and password
> are rejected. Has anyone found a little detail that needs
> tweking to get past this one?
>
>



Re: [Zope] ZFormulator -- how to make an SQL insert?

2000-09-26 Thread Martijn Faassen

Mike Renfro wrote:
> I looked in the archives for anything concerning this, and came up
> empty. I have zformulator set up with postgres, and it appears to work
> fine, except that I've not found the zen to make it actually do an SQL
> insert -- I know the GetSQL method will extract the proper code, but
> am I missing something trivial that'll let me actually execute the SQL
> code? Thanks.

Hm, I've been sadly neglecting ZFormulator for a long time. I will
have some time to work with it again next month, though.

I'm surprised it actually works with Zope 2.2; I had some bug reports.

You cannot do an actual SQL insert with ZFormulator yet, though it
wouldn't be too hard to put some code around it to do. Right now
ZFormulator only shows the SQL statement. I believe I had some patches
contributed that do enable this, which I've been neglecting as well. :(

Regards,

Martijn


___
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 )