incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <brond...@users.sf.net>
Subject [allura:tickets] #6716 __json__ should return plain dicts
Date Mon, 21 Oct 2013 16:42:06 GMT
- **Size**:  --> 1



---

** [tickets:#6716] __json__ should return plain dicts**

**Status:** open
**Labels:** cleanup 
**Created:** Fri Sep 27, 2013 07:39 PM UTC by Dave Brondsema
**Last Updated:** Fri Oct 04, 2013 07:38 PM UTC
**Owner:** nobody

All `__json__` methods should return "plain" data structures.  A particular example is that
lists and dicts shouldn't be ming instrumented containers.  Then it'll always be safe to modify
the results without side effects (i.e. changing the database).

Some sort of helper function seems like it would be useful.  It should preserve certain types
(e.g. datetime, int, float, etc) since those aren't any risk and are converted to json just
fine by TurboGears


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message