Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
"When I refresh the list of groups from each server, I need to find a way to keep the list of messages in the groups the user has subscribed to.

This is not a problem. As I mentioned in my previous reply, there is no need for you to physically delete the object, instead

  • You can either mark it as inactive,
  • or move it to another collection, which contains all news groups that the user once subscribed, but no longer exists.

Either way, you would still be able to preserve the messages in that group.

"Also, you tell me not to create a new list of objects, but then you tell me that copying message lists (and other properties) from the old list to the new list is a good solution. Which is it?"

Hm... That does not sound like what I suggested. But it could well be my fault, as I probably didn't explain myself well, or I probably didn't understand your entire situation well.

But is it not true, that the list of articles under an object can be re-hooked to a different object, without copying the entire list? If it is not, you have to look at this again.

Also, is it not true that, in a tree structure, when you reposition a node, you could choose to keep the entire subtree under it untouched (follows it to where it goes)? If that sounds like something you need, you may want to think about it.

Well, I may still not understand your entire situation well, but take my suggestions, if they fit in your situation, otherwise discard them or save them for next time. If we can discuss this face to face, it would surely be much easier for us to understand each other better, well...

In reply to Re: Re: Re: Refreshing Objects by pg
in thread OT: Refreshing Objects by elusion

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-11-28 22:57 GMT
Find Nodes?
    Voting Booth?

    No recent polls found