• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / ZODB / 24342988816 / 1
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: 6.3
DEFAULT BRANCH: master
Ran 13 Apr 2026 12:22PM UTC
Files 116
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Apr 2026 12:19PM UTC coverage: 83.803% (+0.02%) from 83.781%
24342988816.1

Pull #421

github

perrinjerome
Add class_factory parameter to DB and ZConfig class-factory option

DB.__init__() opens a connection to verify the root object exists,
and that connection is returned to the pool for future reuse.
Connections capture the classFactory reference at creation time
(in Connection.__init__ via ObjectReader), so setting db.classFactory
after DB.__init__() does not apply to connections already in the pool.

This is a problem for Zope, which overrides DB.classFactory after
construction to provide graceful handling of broken/uninstalled objects.
The first connection handed out after startup may silently use the
wrong class factory.

Add a class_factory parameter to DB.__init__() that is set before any
connection is opened, and a corresponding class-factory option to the
ZConfig database configuration schema. This allows frameworks like
Zope to pass the class factory at construction time.
Pull Request #421: Add class_factory parameter to DB and ZConfig class-factory option

2445 of 3546 branches covered (68.95%)

13375 of 15960 relevant lines covered (83.8%)

0.84 hits per line

Source Files on job 24342988816.1
  • Tree
  • List 116
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24342988816
  • 2e5c09d0 on github
  • Prev Job for on perrinjerome/classFactory (#21562672041.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc